aboutsummaryrefslogtreecommitdiffstats
path: root/games/quake2-data/Makefile
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2005-10-17 06:31:37 +0800
committeredwin <edwin@FreeBSD.org>2005-10-17 06:31:37 +0800
commitd6ae1867642c49a6aeeeac6e3357d0932065ad0b (patch)
tree1081897b6c6a227aa216ee997fdf65132db9e459 /games/quake2-data/Makefile
parentd00eca5e9d837429011670af0d67432c601efb4e (diff)
downloadfreebsd-ports-gnome-d6ae1867642c49a6aeeeac6e3357d0932065ad0b.tar.gz
freebsd-ports-gnome-d6ae1867642c49a6aeeeac6e3357d0932065ad0b.tar.zst
freebsd-ports-gnome-d6ae1867642c49a6aeeeac6e3357d0932065ad0b.zip
[NEW PORT] games/quake2-data - Quake II data files
Quake II data files. This port installs the data files needed to run Quake II. It installs the updates and Capture The Flag mod data. You still need to have a legitimate copy of the game in order to obtain the .pak files. Otherwise you can use the shareware version of the game data. PR: 8 7179 Submitted by: Alejandro Pulver <alejandro@varnet.biz>
Diffstat (limited to 'games/quake2-data/Makefile')
-rw-r--r--games/quake2-data/Makefile107
1 files changed, 107 insertions, 0 deletions
diff --git a/games/quake2-data/Makefile b/games/quake2-data/Makefile
new file mode 100644
index 000000000000..40d658e8c526
--- /dev/null
+++ b/games/quake2-data/Makefile
@@ -0,0 +1,107 @@
+# New ports collection makefile for: quake2-data
+# Date created: 28 Sep 2005
+# Whom: Alejandro Pulver <alejandro@varnet.biz>
+#
+# $FreeBSD$
+#
+
+PORTNAME= data
+PORTVERSION= 3.20
+CATEGORIES= games
+MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/quake2/
+DISTFILES= ${Q2FULL}
+DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
+
+MAINTAINER= alejandro@varnet.biz
+COMMENT= Quake II data files
+
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+
+OPTIONS= CTF "Install the Capture The Flag mod data" on \
+ SHAREWARE "Install demo version game data" off
+
+LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
+
+Q2FULL= q2-3.20-x86-full.exe
+Q2DEMO= q2-314-demo-x86.exe
+Q2CTF= ctf/q2ctf150.zip
+
+.include "Makefile.include"
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_CTF) && !defined(WITH_SHAREWARE)
+DISTFILES+= ${Q2CTF}
+PLIST_SUB+= CTF=""
+.else
+PLIST_SUB+= CTF="@comment "
+.endif
+
+.if defined(WITH_SHAREWARE)
+PLIST_SUB+= FULL="@comment " \
+ SHAREWARE=""
+.else
+PLIST_SUB+= FULL="" \
+ SHAREWARE="@comment "
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
+.endif
+
+.if defined(WITH_SHAREWARE) || !defined(NOPORTDOCS)
+DISTFILES+= ${Q2DEMO}
+.endif
+
+do-extract:
+ @${MKDIR} ${WRKDIR}
+ @${UNZIP_CMD} -q -d ${WRKDIR} \
+ ${DISTDIR}/${DIST_SUBDIR}/${Q2FULL} \
+ baseq2/* -x *.dll
+.if defined(WITH_SHAREWARE)
+ @${RM} ${WRKDIR}/baseq2/pak[^0].pak
+.endif
+.if defined(WITH_CTF) && defined(WITHOUT_SHAREWARE)
+ @${UNZIP_CMD} -aq -d ${WRKDIR}/ctf \
+ ${DISTDIR}/${DIST_SUBDIR}/${Q2CTF} \
+ -x *.dll *.ico
+.endif
+.if !defined(NOPORTDOCS)
+ @${UNZIP_CMD} -ajq -d ${WRKDIR}/DOCS \
+ ${DISTDIR}/${DIST_SUBDIR}/${Q2DEMO} \
+ Install/Data/DOCS/*
+.endif
+.if defined(WITH_SHAREWARE)
+ @${UNZIP_CMD} -jq -d ${WRKDIR}/baseq2 \
+ ${DISTDIR}/${DIST_SUBDIR}/${Q2DEMO} \
+ Install/Data/baseq2/pak0.pak
+.endif
+
+do-install:
+ @${MKDIR} ${DATADIR}
+ @${CP} -R ${WRKSRC}/baseq2 ${DATADIR}
+.if defined(WITHOUT_SHAREWARE)
+ @${MKDIR} ${DATADIR}/rogue ${DATADIR}/xatrix
+.endif
+.if defined(WITH_CTF) && defined(WITHOUT_SHAREWARE)
+ @${MKDIR} ${DATADIR}/ctf
+. for f in *.cfg *.pak
+ @${INSTALL_DATA} ${WRKSRC}/ctf/${f} ${DATADIR}/ctf
+. endfor
+.endif
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${CP} -R ${WRKSRC}/DOCS ${DOCSDIR}/manual
+. if defined(WITH_CTF) && defined(WITHOUT_SHAREWARE)
+ @${MKDIR} ${DOCSDIR}/ctf
+ @${INSTALL_DATA} ${WRKSRC}/ctf/*.txt ${DOCSDIR}/ctf
+. endif
+.endif
+
+post-install:
+.if defined(WITHOUT_SHAREWARE)
+ @${ECHO_CMD}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_CMD}
+.endif
+
+.include <bsd.port.post.mk>