aboutsummaryrefslogtreecommitdiff
path: root/games/xonotic
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2014-03-26 23:23:27 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2014-03-26 23:23:27 +0000
commit02eb5982000aa53a19cf90fa39ef12d13f1949e7 (patch)
tree3293f7f576ee2d850596d53f4021d5fbf3ca1f58 /games/xonotic
parent331389df3f541e2a4c73af724c766c72874476fd (diff)
downloadports-02eb5982000aa53a19cf90fa39ef12d13f1949e7.tar.gz
ports-02eb5982000aa53a19cf90fa39ef12d13f1949e7.zip
Notes
Diffstat (limited to 'games/xonotic')
-rw-r--r--games/xonotic/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/games/xonotic/Makefile b/games/xonotic/Makefile
index db3f594e1edb..d2aea28705f1 100644
--- a/games/xonotic/Makefile
+++ b/games/xonotic/Makefile
@@ -3,7 +3,7 @@
PORTNAME= xonotic
PORTVERSION= 0.7.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= http://nl.dl.xonotic.org/ \
http://mirror.bitmissile.com/xonotic/releases/
@@ -32,17 +32,20 @@ USE_GCC= yes
PORTDATA= *
OPTIONS_MULTI= COMPONENTS
-OPTIONS_MULTI_COMPONENTS=CLIENT DEDICATED
-OPTIONS_DEFAULT=CLIENT DEDICATED
+OPTIONS_MULTI_COMPONENTS=CLIENT DEDICATED ENCRYPTION
+OPTIONS_DEFAULT=CLIENT DEDICATED ENCRYPTION
CLIENT_DESC= Build client
DEDICATED_DESC= Build dedicated server
+ENCRYPTION_DESC=Build encryption (required for stats submission)
CLIENT_LIB_DEPENDS+= libmodplug.so:${PORTSDIR}/audio/libmodplug \
libtheora.so:${PORTSDIR}/multimedia/libtheora \
libvorbis.so:${PORTSDIR}/audio/libvorbis \
libogg.so:${PORTSDIR}/audio/libogg
+ENCRYPTION_LIB_DEPENDS= libd0_rijndael.so:${PORTSDIR}/security/d0_blind_id
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCLIENT}
@@ -84,6 +87,9 @@ do-install:
${FIND} ${STAGEDIR}${DATADIR}/server -type f -name *.sh -o -name rcon*.pl | \
${XARGS} ${CHMOD} +x
.endif
+.if ${PORT_OPTIONS:MENCRYPTION}
+ ${INSTALL_DATA} ${WRKDIR}/Xonotic/key_0.d0pk ${STAGEDIR}${PREFIX}/share/${PORTNAME}
+.endif
${MKDIR} ${STAGEDIR}${DATADIR}/data
${INSTALL_DATA} ${WRKDIR}/Xonotic/data/*.pk3 ${STAGEDIR}${DATADIR}/data/