aboutsummaryrefslogtreecommitdiff
path: root/games/linux-quake3
diff options
context:
space:
mode:
authorDanilo Egea Gondolfo <danilo@FreeBSD.org>2013-11-18 20:11:56 +0000
committerDanilo Egea Gondolfo <danilo@FreeBSD.org>2013-11-18 20:11:56 +0000
commit54a419b98951dbcbe9737e26c1205641747831f6 (patch)
tree2f0b19cae606a5f6f01ae447f807b892b25f482a /games/linux-quake3
parent9cf15914e10c14b1c61d4f2df6c6b3f75caa11a5 (diff)
- Use OPTIONS_SUB
- Add stage support
Notes
Notes: svn path=/head/; revision=334259
Diffstat (limited to 'games/linux-quake3')
-rw-r--r--games/linux-quake3/Makefile45
1 files changed, 14 insertions, 31 deletions
diff --git a/games/linux-quake3/Makefile b/games/linux-quake3/Makefile
index 25a01862bb52..c3e9dbdcbd52 100644
--- a/games/linux-quake3/Makefile
+++ b/games/linux-quake3/Makefile
@@ -27,19 +27,20 @@ OPTIONS_MULTI_TYPE= CLIENT DEDICATED SMP
OPTIONS_DEFINE= PUNKBUSTER DOCS
OPTIONS_DEFAULT= CLIENT DEDICATED PUNKBUSTER SMP
+OPTIONS_SUB= yes
+
CLIENT_DESC= Install client
DEDICATED_DESC= Install dedicated server
PUNKBUSTER_DESC= Install PunkBuster
SMP_DESC= Install SMP (threaded) client
-PLIST_SUB+= LIBDIR="${LIBDIR:S/${PREFIX}\///}"
+PLIST_SUB+= LIBDIR="libexec/${PKGNAMEPREFIX}${PORTNAME}"
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
LIBDIR= ${PREFIX}/libexec/${PKGNAMEPREFIX}${PORTNAME}
Q3DATAFILE= linuxq3apoint-1.32b-3.x86.run
Q3PATCHFILE= quake3-${PORTVERSION}.zip
-NO_STAGE= yes
do-extract:
@${MKDIR} ${WRKDIR}
@cd ${WRKDIR} && ${TAIL} +356 ${_DISTDIR}/${Q3DATAFILE} | \
@@ -58,29 +59,14 @@ post-extract:
.if ${PORT_OPTIONS:MDEDICATED}
PROGS+= q3ded
-PLIST_SUB+= DEDICATED=""
-.else
-PLIST_SUB+= DEDICATED="@comment "
.endif
.if ${PORT_OPTIONS:MCLIENT}
PROGS+= quake3.x86
-PLIST_SUB+= CLIENT=""
-.else
-PLIST_SUB+= CLIENT="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MPUNKBUSTER}
-PLIST_SUB+= PUNKBUSTER=""
-.else
-PLIST_SUB+= PUNKBUSTER="@comment "
.endif
.if ${PORT_OPTIONS:MSMP}
PROGS+= quake3-smp.x86
-PLIST_SUB+= SMP=""
-.else
-PLIST_SUB+= SMP="@comment "
.endif
do-build:
@@ -91,23 +77,20 @@ do-build:
.endfor
do-install:
- @${MKDIR} ${LIBDIR}
+ @${MKDIR} ${STAGEDIR}${LIBDIR}
.for f in ${PROGS}
- @${INSTALL_PROGRAM} ${WRKSRC}/bin/Linux/x86/${f} ${LIBDIR}/${f:R}
- @${INSTALL_SCRIPT} ${WRKDIR}/${f:R} ${PREFIX}/bin/linux-${f:R}
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/Linux/x86/${f} ${STAGEDIR}${LIBDIR}/${f:R}
+ ${INSTALL_SCRIPT} ${WRKDIR}/${f:R} ${STAGEDIR}${PREFIX}/bin/linux-${f:R}
.endfor
+ @${MKDIR} ${STAGEDIR}${DATADIR}
.if ${PORT_OPTIONS:MPUNKBUSTER}
- @${CP} -Rp ${WRKSRC}/pb ${DATADIR}
- @${RM} ${DATADIR}/pb/PB_EULA.txt
-.endif
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/README-linux.txt ${DOCSDIR}
- @${CP} -Rp ${WRKSRC}/Docs/LinuxFAQ ${DOCSDIR}
-. if ${PORT_OPTIONS:MPUNKBUSTER}
- @${CP} -Rp ${WRKSRC}/Docs/PunkBuster ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/pb/PB_EULA.txt ${DOCSDIR}/PunkBuster
-. endif
+ @${CP} -Rp ${WRKSRC}/pb ${STAGEDIR}${DATADIR}
+ @${RM} ${STAGEDIR}${DATADIR}/pb/PB_EULA.txt
.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README-linux.txt ${STAGEDIR}${DOCSDIR}
+ ${CP} -Rp ${WRKSRC}/Docs/LinuxFAQ ${STAGEDIR}${DOCSDIR}
+ ${CP} -Rp ${WRKSRC}/Docs/PunkBuster ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/pb/PB_EULA.txt ${STAGEDIR}${DOCSDIR}/PunkBuster
.include <bsd.port.mk>