aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-05-10 00:11:11 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-05-10 00:11:11 +0800
commitf5619806464de51af8749929c09d926441ea0c1b (patch)
treedc5d0e54378b03883fef580a6e628bd6a042a73f /games
parent952c4508504c8729b43e701c96fe51927ae16a0e (diff)
downloadfreebsd-ports-gnome-f5619806464de51af8749929c09d926441ea0c1b.tar.gz
freebsd-ports-gnome-f5619806464de51af8749929c09d926441ea0c1b.tar.zst
freebsd-ports-gnome-f5619806464de51af8749929c09d926441ea0c1b.zip
- Enable all options by default to follow upstream and produce fully functional package
- Add description for MNG option - Add X11 option - Simplify docs installation - Add LICENSE_FILE
Diffstat (limited to 'games')
-rw-r--r--games/stratagus/Makefile33
1 files changed, 19 insertions, 14 deletions
diff --git a/games/stratagus/Makefile b/games/stratagus/Makefile
index 518d46993518..807238c2445c 100644
--- a/games/stratagus/Makefile
+++ b/games/stratagus/Makefile
@@ -3,7 +3,7 @@
PORTNAME= stratagus
PORTVERSION= 2.2.7
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= http://launchpadlibrarian.net/113005346/
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
@@ -12,14 +12,12 @@ MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Free cross-platform real-time strategy gaming engine
LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
libtolua++-${LUA_VER}.so:${PORTSDIR}/lang/tolua++
-OPTIONS_DEFINE= MIKMOD MNG THEORA VORBIS DOCS
-OPTIONS_DEFAULT= VORBIS
-
-USE_GL= glu
+USE_GL= gl glu
USE_SDL= sdl
USE_SQLITE= 3
USES= cmake:outsource lua:51 pkgconfig
@@ -29,13 +27,19 @@ CMAKE_ARGS= -DGAMEDIR:STRING="bin" \
-DTOLUA++_LIBRARY:STRING="${LUA_LIBDIR}/libtolua++.so"
PORTDOCS= *
-PLIST_FILES= bin/png2stratagus bin/stratagus sbin/metaserver \
- man/man6/stratagus.6.gz
+PLIST_FILES= bin/png2stratagus \
+ bin/stratagus \
+ man/man6/stratagus.6.gz \
+ sbin/metaserver
+
+OPTIONS_DEFINE= MIKMOD MNG THEORA VORBIS X11 DOCS
+OPTIONS_DEFAULT=MIKMOD MNG THEORA VORBIS X11
MIKMOD_LIB_DEPENDS= libmikmod.so:${PORTSDIR}/audio/libmikmod
MIKMOD_CMAKE_ON= -DWITH_MIKMOD:BOOL=ON
MIKMOD_CMAKE_OFF= -DWITH_MIKMOD:BOOL=OFF
+MNG_DESC= MNG image library support
MNG_LIB_DEPENDS= libmng.so:${PORTSDIR}/graphics/libmng
MNG_CMAKE_ON= -DWITH_MNG:BOOL=ON
MNG_CMAKE_OFF= -DWITH_MNG:BOOL=OFF
@@ -48,13 +52,14 @@ VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
VORBIS_CMAKE_ON= -DWITH_OGGVORBIS:BOOL=ON
VORBIS_CMAKE_OFF= -DWITH_OGGVORBIS:BOOL=OFF
+X11_DESC= X11 clipboard pasting support
+X11_USE= XORG=x11
+X11_CMAKE_ON= -DWITH_X11:BOOL=ON
+X11_CMAKE_OFF= -DWITH_X11:BOOL=OFF
+
post-install:
- (cd ${WRKSRC}/doc && ${INSTALL_DATA} stratagus.6 ${STAGEDIR}${MAN6PREFIX}/man/man6)
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
- (cd ${WRKSRC}/doc && ${INSTALL_DATA} [a-z]*.html *.txt ${STAGEDIR}${DOCSDIR})
- @${MKDIR} ${STAGEDIR}${DOCSDIR}/graphics
- (cd ${WRKSRC}/doc/graphics && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}/graphics)
- @${MKDIR} ${STAGEDIR}${DOCSDIR}/scripts
- (cd ${WRKSRC}/doc/scripts && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}/scripts)
+ ${INSTALL_DATA} ${WRKSRC}/doc/stratagus.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
+ cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "[a-z]*.html *.txt graphics scripts" \
+ ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>