mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
- Update to 0.8.1
- Switch to options helpers
This commit is contained in:
parent
78ce32f3ea
commit
5cf79d08ff
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396447
@ -2,8 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= xonotic
|
||||
PORTVERSION= 0.8.0
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 0.8.1
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://nl.dl.xonotic.org/ \
|
||||
http://mirror.bitmissile.com/xonotic/releases/
|
||||
@ -32,43 +31,33 @@ USE_GCC= yes
|
||||
|
||||
PORTDATA= *
|
||||
|
||||
OPTIONS_MULTI= COMPONENTS
|
||||
OPTIONS_MULTI_COMPONENTS=CLIENT DEDICATED ENCRYPTION
|
||||
OPTIONS_DEFAULT=CLIENT DEDICATED ENCRYPTION
|
||||
OPTIONS_DEFINE= ENCRYPTION
|
||||
OPTIONS_MULTI= COMPONENTS
|
||||
OPTIONS_MULTI_COMPONENTS=CLIENT DEDICATED
|
||||
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 \
|
||||
CLIENT_DESC= Build client
|
||||
CLIENT_LIB_DEPENDS= libmodplug.so:${PORTSDIR}/audio/libmodplug \
|
||||
libtheora.so:${PORTSDIR}/multimedia/libtheora \
|
||||
libvorbis.so:${PORTSDIR}/audio/libvorbis \
|
||||
libogg.so:${PORTSDIR}/audio/libogg
|
||||
CLIENT_USE= SDL=sdl
|
||||
CLIENT_ALL_TARGET= sdl-release
|
||||
CLIENT_PLIST_FILES= bin/${PORTNAME} share/pixmaps/${PORTNAME}.ico
|
||||
CLIENT_DESKTOP_ENTRIES= "Xonotic" \
|
||||
"" \
|
||||
"${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
|
||||
"${PORTNAME}" \
|
||||
"Game;Shooter;" \
|
||||
""
|
||||
|
||||
DEDICATED_DESC= Build dedicated server
|
||||
DEDICATED_ALL_TARGET= sv-release
|
||||
DEDICATED_PLIST_FILES= bin/${PORTNAME}-dedicated
|
||||
|
||||
ENCRYPTION_DESC= Build encryption (required for stats submission)
|
||||
ENCRYPTION_LIB_DEPENDS= libd0_rijndael.so:${PORTSDIR}/security/d0_blind_id
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MCLIENT}
|
||||
USE_SDL= sdl
|
||||
ALL_TARGET+= sdl-release
|
||||
PLIST_FILES+= bin/${PORTNAME}
|
||||
|
||||
DESKTOP_ENTRIES="Xonotic" \
|
||||
"${COMMENT}" \
|
||||
"${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
|
||||
"${PORTNAME}" \
|
||||
"Game;Shooter;" \
|
||||
""
|
||||
|
||||
PLIST_FILES+= share/pixmaps/${PORTNAME}.ico
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MDEDICATED}
|
||||
ALL_TARGET+= sv-release
|
||||
PLIST_FILES+= bin/${PORTNAME}-dedicated
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},' \
|
||||
${BUILD_WRKSRC}/${MAKEFILE} ${BUILD_WRKSRC}/makefile.inc
|
||||
@ -77,21 +66,21 @@ post-patch:
|
||||
@${ECHO_CMD} >> ${BUILD_WRKSRC}/prvm_offsets.h # silence 'no newline' warnings
|
||||
|
||||
do-install:
|
||||
.if ${PORT_OPTIONS:MCLIENT}
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/data
|
||||
${INSTALL_DATA} ${WRKSRC}/data/*.pk3 ${STAGEDIR}${DATADIR}/data/
|
||||
|
||||
do-install-CLIENT-on:
|
||||
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/darkplaces-sdl ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
||||
${INSTALL_DATA} ${WRKSRC}/misc/logos/icons_ico/xonotic.ico ${STAGEDIR}${PREFIX}/share/pixmaps/
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MDEDICATED}
|
||||
|
||||
do-install-DEDICATED-on:
|
||||
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/darkplaces-dedicated ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-dedicated
|
||||
cd ${WRKSRC} && ${COPYTREE_SHARE} "server" ${STAGEDIR}${DATADIR}/
|
||||
# Fixup lost +x permissions on scripts after COPYTREE_SHARE
|
||||
${FIND} ${STAGEDIR}${DATADIR}/server -type f -name *.sh -o -name rcon*.pl | \
|
||||
${XARGS} ${CHMOD} +x
|
||||
.endif
|
||||
${MKDIR} ${STAGEDIR}${DATADIR}/data
|
||||
${INSTALL_DATA} ${WRKSRC}/data/*.pk3 ${STAGEDIR}${DATADIR}/data/
|
||||
.if ${PORT_OPTIONS:MENCRYPTION}
|
||||
|
||||
do-install-ENCRYPTION-on:
|
||||
${INSTALL_DATA} ${WRKSRC}/key_0.d0pk ${STAGEDIR}${DATADIR}/
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (xonotic-0.8.0.zip) = 0a87c808827a8b234f2324b468ecb643aa48a6fd43322a29e616610dca316370
|
||||
SIZE (xonotic-0.8.0.zip) = 999151784
|
||||
SHA256 (xonotic-0.8.1.zip) = be8bcc41e2993a2f26d4d04c65a7eab810443bd98b11b45e482ffdbbf284c46f
|
||||
SIZE (xonotic-0.8.1.zip) = 984854761
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- source/darkplaces/BSDmakefile.orig 2015-01-17 02:24:24.000000000 +0300
|
||||
+++ source/darkplaces/BSDmakefile 2015-01-17 02:26:51.000000000 +0300
|
||||
@@ -158,7 +158,7 @@
|
||||
--- source/darkplaces/BSDmakefile.orig 2015-08-25 12:10:24 UTC
|
||||
+++ source/darkplaces/BSDmakefile
|
||||
@@ -158,7 +158,7 @@ LIB_SOUND=$(LIB_SND_BSD)
|
||||
|
||||
CFLAGS_MAKEDEP=-MD
|
||||
.ifdef DP_FS_BASEDIR
|
||||
|
Loading…
Reference in New Issue
Block a user