freebsd-ports/games/neverball/Makefile

77 lines
2 KiB
Makefile
Raw Normal View History

# $FreeBSD$
PORTNAME= neverball
2009-09-29 00:32:53 +02:00
PORTVERSION= 1.5.4
PORTREVISION= 9
CATEGORIES= games
2009-02-07 00:51:06 +01:00
MASTER_SITES= http://offload1.icculus.org:9090/neverball/ \
http://offload2.icculus.org:9090/neverball/ \
http://mirror.amdmi3.ru/distfiles/
2009-03-19 16:14:33 +01:00
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Tilt the floor to guide a ball through an obstacle course
LICENSE= GPLv2
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
libjpeg.so:${PORTSDIR}/graphics/jpeg \
libvorbis.so:${PORTSDIR}/audio/libvorbis \
libphysfs.so:${PORTSDIR}/devel/physfs
USES= gmake
USE_GL= gl
2009-09-14 14:48:48 +02:00
USE_SDL= sdl ttf
2009-02-07 00:51:06 +01:00
MAKE_ENV+= ENABLE_WII=0
2013-09-14 05:06:04 +02:00
USE_XORG= x11
2009-04-07 00:48:23 +02:00
PORTDOCS= CHANGES COPYING README
PORTDATA= *
2009-02-07 00:51:06 +01:00
OPTIONS_DEFINE= DOCS NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
2009-02-07 00:51:06 +01:00
MAKE_ENV+= ENABLE_NLS=1
LOCALE_DIRS= ca de es fi fr lv nn
PLIST_SUB+= NLS=""
.else
MAKE_ENV+= ENABLE_NLS=0
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
2009-09-14 14:48:48 +02:00
@${REINPLACE_CMD} -e 's|./data|${DATADIR}/data|g; \
s|./locale|${PREFIX}/share/locale|g; \
s|sdl-config|${SDL_CONFIG}|g; \
s| -O2| ${CFLAGS}|g; \
s|%%LOCALBASE%%|${LOCALBASE}|g; \
s|%%ICONV_LIB%%|${ICONV_LIB}|' \
${WRKSRC}/Makefile
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}/data
cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR}/
${INSTALL_MAN} ${WRKSRC}/dist/*.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/
2009-02-07 00:51:06 +01:00
.for f in neverball neverputt
${INSTALL_DATA} ${WRKSRC}/dist/${f}.desktop \
${STAGEDIR}${PREFIX}/share/applications/
${INSTALL_DATA} ${WRKSRC}/dist/${f}_512.png \
${STAGEDIR}${PREFIX}/share/pixmaps/${f}.png
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin/
.endfor
.if ${PORT_OPTIONS:MNLS}
2009-02-07 00:51:06 +01:00
. for ii in ${LOCALE_DIRS}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${ii}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/locale/${ii}/LC_MESSAGES/*.mo \
${STAGEDIR}${PREFIX}/share/locale/${ii}/LC_MESSAGES/
2009-02-07 00:51:06 +01:00
. endfor
2004-07-04 05:22:09 +02:00
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
.endfor
2004-07-04 05:22:09 +02:00
.include <bsd.port.mk>