aboutsummaryrefslogtreecommitdiff
path: root/games/rtcw
diff options
context:
space:
mode:
authorNik Clayton <nik@FreeBSD.org>2002-03-02 22:40:25 +0000
committerNik Clayton <nik@FreeBSD.org>2002-03-02 22:40:25 +0000
commit890c808240d2b41dce6f5a2c8fb13ca966644630 (patch)
tree061363e2d39cdaf37dcfd9b9dbc5ac93b07000f8 /games/rtcw
parentd0ff1198e78be2abf6c942b19893b498bcdb8011 (diff)
downloadports-890c808240d2b41dce6f5a2c8fb13ca966644630.tar.gz
ports-890c808240d2b41dce6f5a2c8fb13ca966644630.zip
Notes
Diffstat (limited to 'games/rtcw')
-rw-r--r--games/rtcw/Makefile60
-rw-r--r--games/rtcw/distinfo1
-rw-r--r--games/rtcw/pkg-comment1
-rw-r--r--games/rtcw/pkg-descr6
-rw-r--r--games/rtcw/pkg-message9
-rw-r--r--games/rtcw/pkg-plist21
6 files changed, 98 insertions, 0 deletions
diff --git a/games/rtcw/Makefile b/games/rtcw/Makefile
new file mode 100644
index 000000000000..63967c5dea32
--- /dev/null
+++ b/games/rtcw/Makefile
@@ -0,0 +1,60 @@
+# New ports collection makefile for: Return to Castle Wolfenstein
+# Date created: Sun Jun 3 00:52:38 EDT 2001
+# Whom: nik@freebsd.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= rtcw
+PORTVERSION= 1.1b
+CATEGORIES= games linux
+MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/wolf/linux/
+DISTNAME= wolf-linux-${PORTVERSION}.x86
+EXTRACT_SUFX= .run
+
+MAINTAINER= nik@FreeBSD.org
+
+ONLY_FOR_ARCHS= i386
+USE_LINUX_PREFIX= yes
+NO_CDROM= "Size; the data set is much too big"
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+RTCWDIR= usr/games/rtcw
+PLIST_SUB+= RTCWDIR="${RTCWDIR}"
+INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755
+
+do-extract:
+ @${RM} -rf ${WRKDIR}
+ @${MKDIR} ${WRKDIR}
+ @cd ${WRKDIR} && tail +175 ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \
+ ${TAR} zxvf - >/dev/null
+
+pre-patch:
+# remove trailing ^M
+ @find -E ${WRKSRC} -type f \
+ -iregex ".*\.(bat|cfg|gam|htm|html|inf|ini|lst|sc|scr|txt|url)" \
+ -exec ${PERL} -pi -ne 's!\r\n!\n!' {} 1>/dev/null 2>&1 \;
+
+do-install:
+ ${INSTALL_DIR} ${PREFIX}/${RTCWDIR}
+.for file in CHANGES INSTALL QUICKSTART WolfMP.xpm WolfSP.xpm
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/${RTCWDIR}
+.endfor
+.for file in openurl.sh
+ ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/${RTCWDIR}
+.endfor
+.for file in wolf.x86 wolfded.x86 wolfsp.x86
+ ${INSTALL} -c -m 500 ${WRKSRC}/bin/x86/${file} ${PREFIX}/${RTCWDIR}
+.endfor
+ ${INSTALL_DIR} ${PREFIX}/${RTCWDIR}/main
+.for file in cgame.mp.i386.so cgamei386.so mp_pakmaps0.pk3 qagame.mp.i386.so qagamei386.so rotate.cfg ui.mp.i386.so uii386.so
+ ${INSTALL_DATA} ${WRKSRC}/main/${file} ${PREFIX}/${RTCWDIR}/main
+.endfor
+ ${INSTALL_DIR} ${PREFIX}/${RTCWDIR}/main/scripts
+ ${INSTALL_DATA} ${WRKSRC}/main/scripts/translation.cfg ${PREFIX}/${RTCWDIR}/main/scripts
+
+# XXX Should really install the Docs/ directory as well
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/games/rtcw/distinfo b/games/rtcw/distinfo
new file mode 100644
index 000000000000..d793a0a472bd
--- /dev/null
+++ b/games/rtcw/distinfo
@@ -0,0 +1 @@
+MD5 (wolf-linux-1.1b.x86.run) = 3e720adc70c278e5cfb3776038d6ec7a
diff --git a/games/rtcw/pkg-comment b/games/rtcw/pkg-comment
new file mode 100644
index 000000000000..d5a8f3ac6237
--- /dev/null
+++ b/games/rtcw/pkg-comment
@@ -0,0 +1 @@
+Return to Castle Wolfenstein for Linux
diff --git a/games/rtcw/pkg-descr b/games/rtcw/pkg-descr
new file mode 100644
index 000000000000..cffc0a084eea
--- /dev/null
+++ b/games/rtcw/pkg-descr
@@ -0,0 +1,6 @@
+This package contains most of the items you'll need to run
+Return to Castle Wolfenstein for Linux under FreeBSD. You
+still need to install some files from the retail CD. See the
+INSTALL file, and the rtcw-paks port for an easy way to do this.
+
+- Nik Clayton <nik@FreeBSD.org>
diff --git a/games/rtcw/pkg-message b/games/rtcw/pkg-message
new file mode 100644
index 000000000000..659fd2b02c24
--- /dev/null
+++ b/games/rtcw/pkg-message
@@ -0,0 +1,9 @@
+*WARNING* *WARNING* *WARNING* *WARNING* *WARNING* *WARNING*
+------------------------------------------------------------
+There is a bug in RTCW server regarding server log placement.
+Temporary workaround for this problem is to run RTCW server in
+a non-root environment. You may create a separate account for
+this or use an existing one as long as it does not have super-
+user privileges and manually do a recursive change in ownership
+to RTCW server and any mods you install accordingly.
+------------------------------------------------------------
diff --git a/games/rtcw/pkg-plist b/games/rtcw/pkg-plist
new file mode 100644
index 000000000000..8b4cf6933080
--- /dev/null
+++ b/games/rtcw/pkg-plist
@@ -0,0 +1,21 @@
+%%RTCWDIR%%/CHANGES
+%%RTCWDIR%%/INSTALL
+%%RTCWDIR%%/QUICKSTART
+%%RTCWDIR%%/WolfMP.xpm
+%%RTCWDIR%%/WolfSP.xpm
+%%RTCWDIR%%/main/cgame.mp.i386.so
+%%RTCWDIR%%/main/cgamei386.so
+%%RTCWDIR%%/main/mp_pakmaps0.pk3
+%%RTCWDIR%%/main/qagame.mp.i386.so
+%%RTCWDIR%%/main/qagamei386.so
+%%RTCWDIR%%/main/rotate.cfg
+%%RTCWDIR%%/main/scripts/translation.cfg
+%%RTCWDIR%%/main/ui.mp.i386.so
+%%RTCWDIR%%/main/uii386.so
+%%RTCWDIR%%/openurl.sh
+%%RTCWDIR%%/wolf.x86
+%%RTCWDIR%%/wolfded.x86
+%%RTCWDIR%%/wolfsp.x86
+@unexec rmdir %D/%%RTCWDIR%%/main/scripts 2>/dev/null || true
+@unexec rmdir %D/%%RTCWDIR%%/main 2>/dev/null || true
+@unexec rmdir %D/%%RTCWDIR%%/ 2>/dev/null || echo "If you are permanently removing this port, you should do a ``rm -Rf ${PKG_PREFIX}/%%RTCWDIR%%/`` to remove any configuration files, *.pk3 files, and mods left." | fmt