aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authornik <nik@FreeBSD.org>2002-03-03 18:22:01 +0800
committernik <nik@FreeBSD.org>2002-03-03 18:22:01 +0800
commit3da1f49aa08928e385434ba00468ea0e2ff07dab (patch)
treed26bdda8c77ae7ca585093d0a48eb4cdf176e38c /games
parent357b743824b72d656e1469a98727b7169f18a44e (diff)
downloadfreebsd-ports-gnome-3da1f49aa08928e385434ba00468ea0e2ff07dab.tar.gz
freebsd-ports-gnome-3da1f49aa08928e385434ba00468ea0e2ff07dab.tar.zst
freebsd-ports-gnome-3da1f49aa08928e385434ba00468ea0e2ff07dab.zip
Wrap the pak files for SV:EF in the ports framework.
Sponsored by: Multiplay UK (www.multiplay.co.uk)
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/stvef-paks/Makefile54
-rw-r--r--games/stvef-paks/pkg-comment1
-rw-r--r--games/stvef-paks/pkg-descr4
-rw-r--r--games/stvef-paks/pkg-plist5
5 files changed, 65 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 27982da75a07..4f99bba14bbd 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -254,6 +254,7 @@
SUBDIR += speyes
SUBDIR += spider
SUBDIR += starlanes
+ SUBDIR += stvef-paks
SUBDIR += stvef-server
SUBDIR += sxsame
SUBDIR += tank
diff --git a/games/stvef-paks/Makefile b/games/stvef-paks/Makefile
new file mode 100644
index 000000000000..ccb525c8a1f6
--- /dev/null
+++ b/games/stvef-paks/Makefile
@@ -0,0 +1,54 @@
+# New ports collection makefile for: Star Trek Voyager: Elite Force paks
+# Date created: Sat Jul 15 14:27:16 SAST 2000
+# Whom: nik@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= stvef-paks
+PORTVERSION= 1.0
+CATEGORIES= games linux
+MASTER_SITES= #
+DISTFILES= pak0.pk3
+DIST_SUBDIR= stvef
+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.
+BUILD_DEPENDS= ${PREFIX}/usr/games/stvef/linuxstvefded_1.2-static:${PORTSDIR}/games/stvef-server
+
+ONLY_FOR_ARCHS= i386
+USE_LINUX_PREFIX= yes
+EXTRACT_ONLY= # Don't extract anything
+STRIP=
+
+GAMEDIR= ${PREFIX}/usr/games/stvef/
+
+.include <bsd.port.pre.mk>
+
+# The only file we *must* have (I think) is pak0.pk3
+.if !exists(${DISTDIR}/stvef/pak0.pk3)
+IGNORE=You must manually copy all the files from the BaseEF directory of the original CD-ROM (or an installed version of the game) to the ${DISTDIR}/stvef directory and then run make again.
+.endif
+
+# Abuse the build target to generate ${PLIST}. We can't have a fixed
+# ${PLIST}, because the contents of the stvef directory will depend on which
+# .pk3 files they copy over, and the patch level of the install they copied
+# them from. So assume that the user knows what they're doing, and blindly
+# install everything (including non-.pk3 files, which might be necessary).
+do-build:
+ ${RM} -f ${PLIST}
+ for file in ${DISTDIR}/stvef/*; do \
+ b=`basename $$file`; \
+ ${ECHO} usr/games/stvef/baseEF/$$b >> ${PLIST}; \
+ done
+
+do-install:
+ ${MKDIR} ${GAMEDIR}/baseEF
+ for file in ${DISTDIR}/stvef/*; do \
+ ${INSTALL_DATA} $$file ${GAMEDIR}/baseEF; \
+ done
+
+.include <bsd.port.post.mk>
diff --git a/games/stvef-paks/pkg-comment b/games/stvef-paks/pkg-comment
new file mode 100644
index 000000000000..280d789f3beb
--- /dev/null
+++ b/games/stvef-paks/pkg-comment
@@ -0,0 +1 @@
+Star Trek Voyager: Elite Forces dedicated server for Linux .pk3 files
diff --git a/games/stvef-paks/pkg-descr b/games/stvef-paks/pkg-descr
new file mode 100644
index 000000000000..4e144d9215aa
--- /dev/null
+++ b/games/stvef-paks/pkg-descr
@@ -0,0 +1,4 @@
+Star Trek Voyager: Elite Forces dedicated server for Linux, .pk3 files
+
+This port encapsulates the .pk3 files for STV:EF that are used to complete
+the installation of the dedicated server.
diff --git a/games/stvef-paks/pkg-plist b/games/stvef-paks/pkg-plist
new file mode 100644
index 000000000000..a133f1f2662f
--- /dev/null
+++ b/games/stvef-paks/pkg-plist
@@ -0,0 +1,5 @@
+usr/games/stvef/baseEF/efconfig.cfg
+usr/games/stvef/baseEF/hmconfig.cfg
+usr/games/stvef/baseEF/pak0.pk3
+usr/games/stvef/baseEF/pak1.pk3
+usr/games/stvef/baseEF/pak2.pk3