aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2013-10-23 08:19:37 +0800
committernemysis <nemysis@FreeBSD.org>2013-10-23 08:19:37 +0800
commit258e215c2c3b2f51183f57fb2eb0c70bd7d7e707 (patch)
tree7fdde80845350db1da4e74bae145167aea8a0543 /games
parent90b210ecd5ce0c1ca56353fb4311cc3f06e10409 (diff)
downloadfreebsd-ports-gnome-258e215c2c3b2f51183f57fb2eb0c70bd7d7e707.tar.gz
freebsd-ports-gnome-258e215c2c3b2f51183f57fb2eb0c70bd7d7e707.tar.zst
freebsd-ports-gnome-258e215c2c3b2f51183f57fb2eb0c70bd7d7e707.zip
- Change maintainer email to @FreeBSD.org
- Use the new format for LIB_DEPENDS - Support STAGEDIR and add OPTIONS_SUB Approved by: pawel / wg (mentors, implicit)
Diffstat (limited to 'games')
-rw-r--r--games/palomino/Makefile33
-rw-r--r--games/palomino/pkg-plist2
2 files changed, 15 insertions, 20 deletions
diff --git a/games/palomino/Makefile b/games/palomino/Makefile
index c1caf7e1073a..4b2fa2411bb8 100644
--- a/games/palomino/Makefile
+++ b/games/palomino/Makefile
@@ -11,7 +11,7 @@ DISTFILES= ${PORTNAME}_src_${PORTVERSION}.txz \
${PORTNAME}_data_sounds_${SOUNDS_VER}.tar.bz2 \
${PORTNAME}_data_terrain_${TERRAIN_VER}.tar.bz2
-MAINTAINER= nemysis@gmx.ch
+MAINTAINER= nemysis@FreeBSD.org
COMMENT= Action flight simulation computer program using OSG
LICENSE= GPLv2
@@ -20,8 +20,8 @@ LIB_DEPENDS= osg:${PORTSDIR}/graphics/osg
USE_BZIP2= yes
USE_XZ= yes
-USE_GL= gl
USES= cmake
+USE_GL= gl
USE_LUA= 5.1
LUA_COMPS= lua:build
@@ -32,33 +32,28 @@ TERRAIN_VER= 20080206
WRKSRC= ${WRKDIR}/${PORTNAME}
-OPTIONS_DEFINE= SDL PLIB GUI
-OPTIONS_DEFAULT= SDL GUI
+OPTIONS_DEFINE= GUI PLIB SDL
+OPTIONS_DEFAULT= GUI SDL
-SDL_DESC= SDL support for input and sound
PLIB_DESC= Enable sound support through plib
GUI_DESC= Enable FLTK GUI
+OPTIONS_SUB= yes
+
+GUI_LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk
+PLIB_BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib
+
PORTDOCS= *
DESKTOP_ENTRIES= "Palomino" "${COMMENT}" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" false
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSDL}
USE_SDL+= sdl mixer
.endif
-.if ${PORT_OPTIONS:MPLIB}
-BUILD_DEPENDS+= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib
-.endif
-
-.if ${PORT_OPTIONS:MGUI}
-LIB_DEPENDS+= fltk:${PORTSDIR}/x11-toolkits/fltk
-.endif
-
post-patch:
@${FIND} ${WRKSRC}/CMakeModules -type f -print0 | ${XARGS} -0 \
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g'
@@ -91,13 +86,13 @@ post-patch:
@${REINPLACE_CMD} -e 's|doc/html/|${DOCSDIR}/|' ${WRKSRC}/src/gui/gui.cc
post-install:
- @${MKDIR} ${DATADIR}
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} "data scripts" ${DATADIR})
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} "data scripts" ${STAGEDIR}${DATADIR})
# docs are used from within the game, so this is unconditional
- @${MKDIR} ${DOCSDIR}
- @(cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${DOCSDIR})
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @(cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
${LN} -sf ${DOCSDIR}/images/palominoLogo.png \
- ${PREFIX}/share/pixmaps/${PORTNAME}.png
+ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
.include <bsd.port.mk>
diff --git a/games/palomino/pkg-plist b/games/palomino/pkg-plist
index 2f648065d86a..4219e3dafe90 100644
--- a/games/palomino/pkg-plist
+++ b/games/palomino/pkg-plist
@@ -1,5 +1,4 @@
bin/palomino
-share/pixmaps/palomino.png
%%DATADIR%%/data/fonts/README.txt
%%DATADIR%%/data/fonts/arial.ttf
%%DATADIR%%/data/fonts/masque.ttf
@@ -440,6 +439,7 @@ share/pixmaps/palomino.png
%%DATADIR%%/scripts/timer.lua
%%DATADIR%%/scripts/views.lua
%%DATADIR%%/scripts/weapons.lua
+share/pixmaps/palomino.png
@dirrm %%DATADIR%%/scripts
@dirrm %%DATADIR%%/data/textures
@dirrm %%DATADIR%%/data/terrain