mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
- Support staging
- Rework OPTIONS - Use new LIB_DEPENDS syntax - Add DESKTOP_ENTRIES
This commit is contained in:
parent
e9d90b8f69
commit
55d9fc0fee
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=330593
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
PORTNAME= nexuiz
|
PORTNAME= nexuiz
|
||||||
PORTVERSION= 2.5.2
|
PORTVERSION= 2.5.2
|
||||||
PORTREVISION= 12
|
PORTREVISION= 13
|
||||||
CATEGORIES= games
|
CATEGORIES= games
|
||||||
MASTER_SITES= SF/${PORTNAME}/NexuizRelease/Nexuiz%20${PORTVERSION} \
|
MASTER_SITES= SF/${PORTNAME}/NexuizRelease/Nexuiz%20${PORTVERSION} \
|
||||||
SF/${PORTNAME}/mappack/nexmappack_r2:mappack
|
SF/${PORTNAME}/mappack/nexmappack_r2:mappack
|
||||||
@ -13,8 +13,8 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|||||||
MAINTAINER= amdmi3@FreeBSD.org
|
MAINTAINER= amdmi3@FreeBSD.org
|
||||||
COMMENT= Fast-paced, chaotic, and intense multiplayer first person shooter
|
COMMENT= Fast-paced, chaotic, and intense multiplayer first person shooter
|
||||||
|
|
||||||
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \
|
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
|
||||||
jpeg:${PORTSDIR}/graphics/jpeg
|
libjpeg.so:${PORTSDIR}/graphics/jpeg
|
||||||
|
|
||||||
LICENSE= GPLv2
|
LICENSE= GPLv2
|
||||||
|
|
||||||
@ -29,61 +29,68 @@ MAKE_ARGS= DP_FS_BASEDIR="${DATADIR}" CC="${CC}" \
|
|||||||
OPTIM_RELEASE="${CFLAGS} -fno-strict-aliasing -funroll-loops" \
|
OPTIM_RELEASE="${CFLAGS} -fno-strict-aliasing -funroll-loops" \
|
||||||
STRIP="${STRIP_CMD}"
|
STRIP="${STRIP_CMD}"
|
||||||
MAKE_JOBS_UNSAFE=yes
|
MAKE_JOBS_UNSAFE=yes
|
||||||
ALL_TARGET= #
|
ALL_TARGET= # empty
|
||||||
|
|
||||||
|
PORTDATA= *
|
||||||
|
|
||||||
OPTIONS_DEFINE= MAPPACK
|
OPTIONS_DEFINE= MAPPACK
|
||||||
OPTIONS_MULTI= FLAVOR
|
OPTIONS_MULTI= COMPONENTS
|
||||||
OPTIONS_MULTI_FLAVOR= CLIENT SDL_CLIENT SERVER
|
OPTIONS_MULTI_COMPONENTS=CLIENT SDL_CLIENT DEDICATED
|
||||||
CLIENT_DESC= Build GLX client
|
OPTIONS_DEFAULT=MAPPACK CLIENT SDL_CLIENT DEDICATED
|
||||||
SDL_CLIENT_DESC= Build SDL client
|
|
||||||
SERVER_DESC= Build dedicated server
|
|
||||||
MAPPACK_DESC= Install community map pack
|
MAPPACK_DESC= Install community map pack
|
||||||
FLAVOR_DESC= Executable Selection
|
CLIENT_DESC= Build GLX client
|
||||||
|
SDL_CLIENT_DESC=Build SDL client
|
||||||
|
DEDICATED_DESC= Build dedicated server
|
||||||
|
|
||||||
OPTIONS_DEFAULT= CLIENT SDL_CLIENT SERVER MAPPAC
|
CLIENT_LIB_DEPENDS= libmodplug.so:${PORTSDIR}/audio/libmodplug \
|
||||||
|
libpng.so:${PORTSDIR}/graphics/png \
|
||||||
|
libtheora.so:${PORTSDIR}/multimedia/libtheora
|
||||||
|
SDL_CLIENT_LIB_DEPENDS= ${CLIENT_LIB_DEPENDS}
|
||||||
|
MAPPACK_DISTFILES= nexmappack_r2${EXTRACT_SUFX}:mappack
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MMAPPACK}
|
|
||||||
DISTFILES+= nexmappack_r2${EXTRACT_SUFX}:mappack
|
|
||||||
PLIST_SUB+= MAPPACK=""
|
|
||||||
.else
|
|
||||||
PLIST_SUB+= MAPPACK="@comment "
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MCLIENT} || ${PORT_OPTIONS:MSDL_CLIENT}
|
|
||||||
LIB_DEPENDS+= modplug:${PORTSDIR}/audio/libmodplug \
|
|
||||||
png15:${PORTSDIR}/graphics/png \
|
|
||||||
theora:${PORTSDIR}/multimedia/libtheora
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MCLIENT}
|
.if ${PORT_OPTIONS:MCLIENT}
|
||||||
USE_GL= glut
|
USE_GL= glut
|
||||||
USE_XORG= x11 xpm xxf86vm xxf86dga xext
|
USE_XORG= x11 xpm xxf86vm xxf86dga xext
|
||||||
ALL_TARGET+= cl-release
|
ALL_TARGET+= cl-release
|
||||||
PLIST_SUB+= CLIENT=""
|
PLIST_FILES+= bin/${PORTNAME}-glx
|
||||||
.else
|
|
||||||
PLIST_SUB+= CLIENT="@comment "
|
DESKTOP_ENTRIES="Nexuiz" \
|
||||||
|
"${COMMENT}" \
|
||||||
|
"${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
|
||||||
|
"${PORTNAME}-glx" \
|
||||||
|
"Game;Shooter;" \
|
||||||
|
""
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MSDL_CLIENT}
|
.if ${PORT_OPTIONS:MSDL_CLIENT}
|
||||||
USE_SDL= sdl
|
USE_SDL= sdl
|
||||||
ALL_TARGET+= sdl-release
|
ALL_TARGET+= sdl-release
|
||||||
PLIST_SUB+= SDL_CLIENT=""
|
PLIST_FILES+= bin/${PORTNAME}-sdl
|
||||||
.else
|
|
||||||
PLIST_SUB+= SDL_CLIENT="@comment "
|
# override of DESKTOP_ENTRIES for GLX client is intented
|
||||||
|
DESKTOP_ENTRIES="Nexuiz" \
|
||||||
|
"${COMMENT}" \
|
||||||
|
"${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
|
||||||
|
"${PORTNAME}-sdl" \
|
||||||
|
"Game;Shooter;" \
|
||||||
|
""
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MSERVER}
|
.if ${PORT_OPTIONS:MCLIENT} || ${PORT_OPTIONS:MSDL_CLIENT}
|
||||||
|
PLIST_FILES+= share/pixmaps/${PORTNAME}.ico
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if ${PORT_OPTIONS:MDEDICATED}
|
||||||
ALL_TARGET+= sv-release
|
ALL_TARGET+= sv-release
|
||||||
PLIST_SUB+= SERVER=""
|
PLIST_FILES+= bin/${PORTNAME}-dedicated
|
||||||
.else
|
|
||||||
PLIST_SUB+= SERVER="@comment "
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-extract:
|
post-extract:
|
||||||
@${EXTRACT_CMD} ${WRKDIR}/Nexuiz/sources/enginesource20091001.zip \
|
@${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
|
||||||
|
${WRKDIR}/Nexuiz/sources/enginesource20091001.zip \
|
||||||
-d ${WRKDIR}/Nexuiz/sources
|
-d ${WRKDIR}/Nexuiz/sources
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@ -96,20 +103,25 @@ post-patch:
|
|||||||
${WRKSRC}/image_png.c
|
${WRKSRC}/image_png.c
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${SH} -c '${FIND} ${WRKSRC} -name "darkplaces-*[^vpj]" | \
|
.if ${PORT_OPTIONS:MCLIENT}
|
||||||
while read f ; do ${INSTALL_PROGRAM} $${f} \
|
${INSTALL_PROGRAM} ${WRKDIR}/Nexuiz/sources/darkplaces/darkplaces-glx ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-glx
|
||||||
${PREFIX}/bin/${PORTNAME}-$${f##*-} ; done'
|
|
||||||
@${MKDIR} ${DATADIR}/data ${DATADIR}/havoc
|
|
||||||
${INSTALL_DATA} ${WRKDIR}/Nexuiz/data/*.pk3 ${DATADIR}/data
|
|
||||||
${INSTALL_DATA} ${WRKDIR}/Nexuiz/havoc/*.pk3 ${DATADIR}/havoc
|
|
||||||
.if ${PORT_OPTIONS:MMAPPACK}
|
|
||||||
${INSTALL_DATA} ${WRKDIR}/data/*.pk3 ${DATADIR}/data
|
|
||||||
.endif
|
.endif
|
||||||
.if ${PORT_OPTIONS:MSERVER}
|
.if ${PORT_OPTIONS:MSDL_CLIENT}
|
||||||
cd ${WRKDIR}/Nexuiz && ${COPYTREE_SHARE} server ${DATADIR}
|
${INSTALL_PROGRAM} ${WRKDIR}/Nexuiz/sources/darkplaces/darkplaces-sdl ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-sdl
|
||||||
|
.endif
|
||||||
|
.if ${PORT_OPTIONS:MCLIENT} || ${PORT_OPTIONS:MSDL_CLIENT}
|
||||||
|
${INSTALL_DATA} ${WRKDIR}/Nexuiz/sources/darkplaces/nexuiz.ico ${STAGEDIR}${PREFIX}/share/pixmaps
|
||||||
|
.endif
|
||||||
|
.if ${PORT_OPTIONS:MDEDICATED}
|
||||||
|
${INSTALL_PROGRAM} ${WRKDIR}/Nexuiz/sources/darkplaces/darkplaces-dedicated ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-dedicated
|
||||||
|
cd ${WRKDIR}/Nexuiz && ${COPYTREE_SHARE} "server" ${STAGEDIR}${DATADIR}
|
||||||
# Fixup lost +x permissions on scripts after COPYTREE_SHARE
|
# Fixup lost +x permissions on scripts after COPYTREE_SHARE
|
||||||
${FIND} ${DATADIR}/server -type f -name *.sh -o -name rcon*.pl | \
|
${FIND} ${STAGEDIR}${DATADIR}/server -type f -name *.sh -o -name rcon*.pl | \
|
||||||
${XARGS} ${CHMOD} +x
|
${XARGS} ${CHMOD} +x
|
||||||
.endif
|
.endif
|
||||||
|
cd ${WRKDIR}/Nexuiz && ${COPYTREE_SHARE} "data havoc" ${STAGEDIR}${DATADIR}
|
||||||
|
.if ${PORT_OPTIONS:MMAPPACK}
|
||||||
|
${INSTALL_DATA} ${WRKDIR}/data/*.pk3 ${STAGEDIR}${DATADIR}/data
|
||||||
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -1,70 +0,0 @@
|
|||||||
%%CLIENT%%bin/nexuiz-glx
|
|
||||||
%%SDL_CLIENT%%bin/nexuiz-sdl
|
|
||||||
%%SERVER%%bin/nexuiz-dedicated
|
|
||||||
%%DATADIR%%/data/common-spog.pk3
|
|
||||||
%%DATADIR%%/data/data20091001.pk3
|
|
||||||
%%DATADIR%%/havoc/data20091001havoc.pk3
|
|
||||||
@dirrm %%DATADIR%%/havoc
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/79drdm5_beta2_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/79drgc2_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/CMP1-dm6_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/HandsOfGod_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/acid3dm5_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/af3hex_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/ame7q3dm3_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/ame7q3tny1_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/apocalyptica_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/bal3dm3_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/bal3dm5_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/batcula_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/chronic_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/cttourney1_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/distonic_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/dubneoc_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/geo-core_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/hal_palindrome_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/ikzdm1_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/jaxtourney2_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/klzegypt_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/ktsdm4_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/mIKEctf2_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/map-gleeb_geocomp3_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/mappack.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/monolith_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/pukka3dm2_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/puma3tourney4_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/q3skoredm1_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/qbeast_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/qdolphin_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/quimera_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/quintdm3_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/redm04_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/storm3dm3_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/straledm5_nex.pk3
|
|
||||||
%%MAPPACK%%%%DATADIR%%/data/zpdm01_nex.pk3
|
|
||||||
%%SERVER%%%%DATADIR%%/server/rcon2irc/echo-rcon.pl
|
|
||||||
%%SERVER%%%%DATADIR%%/server/rcon2irc/fastest_lap.pl
|
|
||||||
%%SERVER%%%%DATADIR%%/server/rcon2irc/irc_nick_change.pl
|
|
||||||
%%SERVER%%%%DATADIR%%/server/rcon2irc/joinmessage.pl
|
|
||||||
%%SERVER%%%%DATADIR%%/server/rcon2irc/joinsparts.pl
|
|
||||||
%%SERVER%%%%DATADIR%%/server/rcon2irc/ping-pl.pl
|
|
||||||
%%SERVER%%%%DATADIR%%/server/rcon2irc/raw.pl
|
|
||||||
%%SERVER%%%%DATADIR%%/server/rcon2irc/rbiserver.pl
|
|
||||||
%%SERVER%%%%DATADIR%%/server/rcon2irc/rcon2irc-example.conf
|
|
||||||
%%SERVER%%%%DATADIR%%/server/rcon2irc/rcon2irc.pl
|
|
||||||
%%SERVER%%%%DATADIR%%/server/rcon2irc/rcon2irc.txt
|
|
||||||
%%SERVER%%%%DATADIR%%/server/rcon2irc/suggestmap.pl
|
|
||||||
%%SERVER%%@dirrm %%DATADIR%%/server/rcon2irc
|
|
||||||
%%SERVER%%%%DATADIR%%/server/help.cfg
|
|
||||||
%%SERVER%%%%DATADIR%%/server/rcon.pl
|
|
||||||
%%SERVER%%%%DATADIR%%/server/readme.txt
|
|
||||||
%%SERVER%%%%DATADIR%%/server/server.cfg
|
|
||||||
%%SERVER%%%%DATADIR%%/server/server_havoc_linux.sh
|
|
||||||
%%SERVER%%%%DATADIR%%/server/server_havoc_mac.sh
|
|
||||||
%%SERVER%%%%DATADIR%%/server/server_havoc_windows.bat
|
|
||||||
%%SERVER%%%%DATADIR%%/server/server_linux.sh
|
|
||||||
%%SERVER%%%%DATADIR%%/server/server_mac.sh
|
|
||||||
%%SERVER%%%%DATADIR%%/server/server_windows.bat
|
|
||||||
%%SERVER%%@dirrm %%DATADIR%%/server
|
|
||||||
@dirrm %%DATADIR%%/data
|
|
||||||
@dirrm %%DATADIR%%
|
|
Loading…
Reference in New Issue
Block a user