2003-10-28 04:02:53 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= neverball
|
2009-09-29 00:32:53 +02:00
|
|
|
PORTVERSION= 1.5.4
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 9
|
2003-10-28 04:02:53 +01:00
|
|
|
CATEGORIES= games
|
2009-02-07 00:51:06 +01:00
|
|
|
MASTER_SITES= http://offload1.icculus.org:9090/neverball/ \
|
2009-03-31 19:05:17 +02:00
|
|
|
http://offload2.icculus.org:9090/neverball/ \
|
2009-07-28 18:34:36 +02:00
|
|
|
http://mirror.amdmi3.ru/distfiles/
|
2003-10-28 04:02:53 +01:00
|
|
|
|
2009-03-19 16:14:33 +01:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2003-10-28 04:02:53 +01:00
|
|
|
COMMENT= Tilt the floor to guide a ball through an obstacle course
|
|
|
|
|
2014-01-11 01:50:39 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-11-08 00:14:50 +01:00
|
|
|
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
|
|
|
|
libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
|
|
libvorbis.so:${PORTSDIR}/audio/libvorbis \
|
|
|
|
libphysfs.so:${PORTSDIR}/devel/physfs
|
2003-11-07 07:25:59 +01:00
|
|
|
|
2013-11-08 00:14:50 +01:00
|
|
|
USES= gmake
|
2007-05-19 22:36:56 +02:00
|
|
|
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
|
2003-10-28 04:02:53 +01:00
|
|
|
|
2009-04-07 00:48:23 +02:00
|
|
|
PORTDOCS= CHANGES COPYING README
|
2013-11-08 00:14:50 +01:00
|
|
|
PORTDATA= *
|
2009-02-07 00:51:06 +01:00
|
|
|
|
2013-11-08 00:14:50 +01:00
|
|
|
OPTIONS_DEFINE= DOCS NLS
|
|
|
|
|
2013-04-30 00:27:05 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-04-24 20:10:30 +02:00
|
|
|
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
|
2003-10-28 04:02:53 +01:00
|
|
|
|
|
|
|
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; \
|
2013-09-04 20:06:07 +02:00
|
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g; \
|
|
|
|
s|%%ICONV_LIB%%|${ICONV_LIB}|' \
|
2008-03-13 03:59:04 +01:00
|
|
|
${WRKSRC}/Makefile
|
2003-10-28 04:02:53 +01:00
|
|
|
|
|
|
|
do-install:
|
2013-11-08 00:14:50 +01:00
|
|
|
@${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
|
2013-11-08 00:14:50 +01:00
|
|
|
${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/
|
2003-10-28 04:02:53 +01:00
|
|
|
.endfor
|
2013-04-30 00:27:05 +02:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2009-02-07 00:51:06 +01:00
|
|
|
. for ii in ${LOCALE_DIRS}
|
2013-11-08 00:14:50 +01:00
|
|
|
@${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
|
2013-11-08 00:14:50 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.for i in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
|
|
|
|
.endfor
|
2004-07-04 05:22:09 +02:00
|
|
|
|
2003-10-28 04:02:53 +01:00
|
|
|
.include <bsd.port.mk>
|