summaryrefslogtreecommitdiff
path: root/games/q3-paks/Makefile
diff options
context:
space:
mode:
authorNik Clayton <nik@FreeBSD.org>2002-03-02 22:17:36 +0000
committerNik Clayton <nik@FreeBSD.org>2002-03-02 22:17:36 +0000
commit4e639dae272756d12c3c15e2e5d496fefd8fd491 (patch)
tree99751b1b690c31409c8a0fec9c1d4e23b07e3ae2 /games/q3-paks/Makefile
parentAnother patchset from Carlos Fernando Assis Paniago <pan@cnpm.embrapa.br> (diff)
Encapsulate the various .pk3 files required from the original CD in to the
package system. Sponsored by: Multiplay UK (www.multiplay.co.uk)
Notes
Notes: svn path=/head/; revision=55417
Diffstat (limited to 'games/q3-paks/Makefile')
-rw-r--r--games/q3-paks/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/games/q3-paks/Makefile b/games/q3-paks/Makefile
new file mode 100644
index 000000000000..9f703334b8cc
--- /dev/null
+++ b/games/q3-paks/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: Quake 3 paks
+# Date created: 1st March 2003
+# Whom: nik@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= q3-paks
+PORTVERSION= 1.0
+CATEGORIES= games linux
+MASTER_SITES= #
+DISTFILES= pak0.pk3
+DIST_SUBDIR= q3-paks
+IGNOREFILES= ${ALLFILES}
+
+MAINTAINER= nik@FreeBSD.org
+
+# Make this a BUILD_ rather than a RUN_DEPEND so that it can create the
+# directory hierarchy for us.
+RUN_DEPENDS= ${LOCALBASE}/usr/games/quake3/q3ded:${PORTSDIR}/games/q3server
+
+ONLY_FOR_ARCHS= i386
+USE_LINUX_PREFIX= yes
+EXTRACT_ONLY= # Don't extract anything
+STRIP=
+
+GAMEDIR= ${PREFIX}/usr/games/quake3/
+
+.include <bsd.port.pre.mk>
+
+.for file in ${DISTFILES}
+.if !exists(${DISTDIR}/rtcw-paks/${file})
+IGNORE=You must manually copy all the .pk3 files from the baseq3/ directory of an installed version of the game to the ${DISTDIR}/q3-paks directory and then run make again.
+.endif
+.endfor
+
+# Do nothing for the build. Don't set NO_BUILD because of the earlier
+# BUILD_DEPENDS
+do-build:
+
+do-install:
+ ${MKDIR} ${GAMEDIR}/baseq3
+.for file in ${DISTFILES}
+ ${INSTALL_DATA} ${DISTDIR}/q3-paks/${file} ${GAMEDIR}/baseq3
+.endfor
+
+.include <bsd.port.post.mk>