aboutsummaryrefslogtreecommitdiff
path: root/games/palomino
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2013-10-23 00:19:37 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2013-10-23 00:19:37 +0000
commit78179f0ed875188a4349d0d176e5e42f12a64567 (patch)
tree7fdde80845350db1da4e74bae145167aea8a0543 /games/palomino
parentc751b9ee7e46d32cab267dfd024bb9b09dfa98a4 (diff)
downloadports-78179f0ed875188a4349d0d176e5e42f12a64567.tar.gz
ports-78179f0ed875188a4349d0d176e5e42f12a64567.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)
Notes
Notes: svn path=/head/; revision=331340
Diffstat (limited to 'games/palomino')
-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