aboutsummaryrefslogtreecommitdiff
path: root/games/quake2lnx
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2005-03-21 12:22:46 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2005-03-21 12:22:46 +0000
commit8bffff3818caf53ddabc2975bca6c85d1771bd5d (patch)
tree02900e67054134cd5154c0ba2cff8a50ebfff218 /games/quake2lnx
parent7137206ce6b1de480385821d0b4c145c2433b4a9 (diff)
downloadports-8bffff3818caf53ddabc2975bca6c85d1771bd5d.tar.gz
ports-8bffff3818caf53ddabc2975bca6c85d1771bd5d.zip
Notes
Diffstat (limited to 'games/quake2lnx')
-rw-r--r--games/quake2lnx/Makefile19
-rw-r--r--games/quake2lnx/distinfo2
-rw-r--r--games/quake2lnx/pkg-plist3
3 files changed, 19 insertions, 5 deletions
diff --git a/games/quake2lnx/Makefile b/games/quake2lnx/Makefile
index 1abbe9793d04..2c3655b24197 100644
--- a/games/quake2lnx/Makefile
+++ b/games/quake2lnx/Makefile
@@ -7,6 +7,7 @@
PORTNAME= quake2lnx
PORTVERSION= 0.16.2
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.icculus.org/quake2/files/:icc \
ftp://ftp.idsoftware.com/idstuff/quake2/:id
@@ -20,9 +21,13 @@ DISTFILES+= maxpak.pak:icc
DISTFILES+= pak${i}.pak:icc
. endfor
.endif
-.if defined(WITH_SHAREWARE_DATA) || defined(WITH_MANUAL)
-DISTFILES+= q2-314-demo-x86.exe:id
+.if defined(WITH_SHAREWARE_DATA) || defined(WITH_MANUAL) || defined(WITH_CTF_MAPS)
EXTRACT_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
+. if defined(WITH_CTF_MAPS)
+DISTFILES+= q2-3.20-x86-full-ctf.exe:id
+. else
+DISTFILES+= q2-314-demo-x86.exe:id
+. endif
.endif
.if defined(WITH_XATRIX)
DISTFILES+= source/xatrixsrc320.shar.Z:id
@@ -267,6 +272,9 @@ pre-everything::
.if !defined(WITH_CTF)
@${ECHO_MSG} "Define WITH_CTF to build Capture The Flag mod"
.endif
+.if !defined(WITH_CTF_MAPS)
+ @${ECHO_MSG} "Define WITH_CTF_MAPS to install maps for CTF mod"
+.endif
.if !defined(WITH_XATRIX)
@${ECHO_MSG} "Define WITH_XATRIX to install \"The Reckoning\" (Xatrix) mission pack .so"
.endif
@@ -329,7 +337,7 @@ do-install:
.for tgt in ${EXE_TARGETS}
${INSTALL_PROGRAM} ${TGTDIR}/${tgt} ${PREFIX}/bin
.endfor
- @${MKDIR} ${DATADIR}/baseq2
+ @${MKDIR} ${DATADIR}/baseq2 ${DATADIR}/ctf
.for tgt in ${REF_TARGETS}
${INSTALL_PROGRAM} ${TGTDIR}/ref_${tgt}.so ${DATADIR}
.endfor
@@ -343,9 +351,12 @@ do-install:
. endfor
.endif
.if defined(WITH_CTF)
- @${MKDIR} ${DATADIR}/ctf
${INSTALL_PROGRAM} ${TGTDIR}/ctf/game${ARCH}.so ${DATADIR}/ctf
.endif
+.if defined(WITH_CTF_MAPS)
+ ${UNZIP_CMD} -oj -d ${DATADIR}/ctf \
+ ${DISTDIR}/${DIST_SUBDIR}/q2-3.20-x86-full-ctf.exe ctf/pak0.pak
+.endif
.if defined(WITH_SHAREWARE_DATA)
@${MKDIR} ${DATADIR}/baseq2/players
${UNZIP_CMD} -oj -d ${DATADIR}/baseq2/players/female \
diff --git a/games/quake2lnx/distinfo b/games/quake2lnx/distinfo
index 33db03259c20..f5d889a4b568 100644
--- a/games/quake2lnx/distinfo
+++ b/games/quake2lnx/distinfo
@@ -20,6 +20,8 @@ MD5 (quake2lnx/pak19.pak) = 070a4d00b93a2a427ca92adee2736000
SIZE (quake2lnx/pak19.pak) = 648896
MD5 (quake2lnx/q2-314-demo-x86.exe) = 4d1cd4618e80a38db59304132ea0856c
SIZE (quake2lnx/q2-314-demo-x86.exe) = 39015499
+MD5 (quake2lnx/q2-3.20-x86-full-ctf.exe) = 490557d4a90ff346a175d865a2bade87
+SIZE (quake2lnx/q2-3.20-x86-full-ctf.exe) = 19267584
MD5 (quake2lnx/source/xatrixsrc320.shar.Z) = 41fc4ecc4f25c068e7d1f488bd4a1e1a
SIZE (quake2lnx/source/xatrixsrc320.shar.Z) = 455917
MD5 (quake2lnx/source/roguesrc320.shar.Z) = 7d5e052839c9e629bad0a6570aa70554
diff --git a/games/quake2lnx/pkg-plist b/games/quake2lnx/pkg-plist
index 066afc155f83..d5e4340ca0b8 100644
--- a/games/quake2lnx/pkg-plist
+++ b/games/quake2lnx/pkg-plist
@@ -85,7 +85,8 @@
%%SHAREWARE%%@dirrm %%DATADIR%%/baseq2/players
@dirrm %%DATADIR%%/baseq2
%%CTF%%%%DATADIR%%/ctf/game%%ARCH%%.so
-%%CTF%%@dirrm %%DATADIR%%/ctf
+%%CTFMAPS%%%%DATADIR%%/ctf/pak0.pak
+@dirrm %%DATADIR%%/ctf
%%XATRIX%%%%DATADIR%%/xatrix/game%%ARCH%%.so
%%XATRIX%%@dirrm %%DATADIR%%/xatrix
%%ROGUE%%%%DATADIR%%/rogue/game%%ARCH%%.so