summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2006-07-29 01:42:01 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2006-07-29 01:42:01 +0000
commit028458c3c7251e4799f21eceed3c79b57a352b94 (patch)
tree45c477c29885e8a8e20d74e53cab9801f1e96dd0 /games
parent- Update to version 1.69. (diff)
This package contains Quake 4 for Linux (Demo version) by id Software.
WWW: http://www.quake4game.com/
Notes
Notes: svn path=/head/; revision=169018
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/linux-quake4-demo/Makefile52
-rw-r--r--games/linux-quake4-demo/distinfo3
-rw-r--r--games/linux-quake4-demo/files/run.sh.in4
-rw-r--r--games/linux-quake4-demo/pkg-descr3
-rw-r--r--games/linux-quake4-demo/pkg-plist14
6 files changed, 77 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 60d555b22006..9c9963101fae 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -386,6 +386,7 @@
SUBDIR += linux-nwserver
SUBDIR += linux-quake3-demo
SUBDIR += linux-quake4
+ SUBDIR += linux-quake4-demo
SUBDIR += linux-spheresofchaos-demo
SUBDIR += linux-steam
SUBDIR += linux-ut
diff --git a/games/linux-quake4-demo/Makefile b/games/linux-quake4-demo/Makefile
new file mode 100644
index 000000000000..5907480f922c
--- /dev/null
+++ b/games/linux-quake4-demo/Makefile
@@ -0,0 +1,52 @@
+# New ports collection makefile for: linux-quake4-demo
+# Date created: 19 Jul 2006
+# Whom: alepulver
+#
+# $FreeBSD$
+#
+
+PORTNAME= quake4
+PORTVERSION= 1.0
+CATEGORIES= games linux
+MASTER_SITES= ${MASTER_SITE_IDSOFTWARE:S|$|quake4/linux/|} \
+ ${MASTER_SITE_GENTOO:S|$|distfiles/|}
+PKGNAMEPREFIX= linux-
+PKGNAMESUFFIX= -demo
+DISTNAME= ${PORTNAME}-${PKGNAMEPREFIX}${PORTVERSION}${PKGNAMESUFFIX}.x86
+EXTRACT_SUFX= .run
+
+MAINTAINER= alepulver@FreeBSD.org
+COMMENT= Quake 4 for Linux Demo
+
+RUN_DEPENDS= ${LINUXBASE}/usr/lib/libSDL-1.2.so.0:${PORTSDIR}/devel/linux-sdl12
+
+ONLY_FOR_ARCHS= i386 amd64
+USE_LINUX= yes
+NO_WRKSUBDIR= yes
+
+Q4DIR= lib/${PORTNAME}${PKGNAMESUFFIX}
+PLIST_SUB= Q4DIR="${Q4DIR}"
+
+do-extract:
+ @${RM} -rf ${WRKDIR}
+ @${MKDIR} ${WRKDIR}
+ @cd ${WRKDIR} && ${TAIL} +376 ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \
+ ${TAR} zxf -
+
+do-build:
+.for FILE in quake4 q4ded
+ @${SED} \
+ -e 's|@Q4DIR@|${PREFIX}/${Q4DIR}|' \
+ -e 's|@APP@|${FILE}.x86|' \
+ ${FILESDIR}/run.sh.in > ${WRKSRC}/${FILE}.sh
+.endfor
+
+do-install:
+ ${MKDIR} ${PREFIX}/${Q4DIR}/q4base
+.for FILE in quake4 q4ded
+ ${INSTALL_SCRIPT} ${WRKSRC}/${FILE}.sh ${PREFIX}/bin/${FILE}-demo
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/FreeBSD/x86/${FILE}.x86 ${PREFIX}/${Q4DIR}
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/q4base/* ${PREFIX}/${Q4DIR}/q4base
+
+.include <bsd.port.mk>
diff --git a/games/linux-quake4-demo/distinfo b/games/linux-quake4-demo/distinfo
new file mode 100644
index 000000000000..ac4f4c25560a
--- /dev/null
+++ b/games/linux-quake4-demo/distinfo
@@ -0,0 +1,3 @@
+MD5 (quake4-linux-1.0-demo.x86.run) = 98ebbb835cc71ea29062cd2b4a139a46
+SHA256 (quake4-linux-1.0-demo.x86.run) = 69e69e8cb22dd1496bcc98dc63f244d35c516c2e770aba64c72275827814bc73
+SIZE (quake4-linux-1.0-demo.x86.run) = 337276597
diff --git a/games/linux-quake4-demo/files/run.sh.in b/games/linux-quake4-demo/files/run.sh.in
new file mode 100644
index 000000000000..64fd225b0e5f
--- /dev/null
+++ b/games/linux-quake4-demo/files/run.sh.in
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+cd @Q4DIR@ || exit 1
+exec @Q4DIR@/@APP@ "$@"
diff --git a/games/linux-quake4-demo/pkg-descr b/games/linux-quake4-demo/pkg-descr
new file mode 100644
index 000000000000..1d6708075447
--- /dev/null
+++ b/games/linux-quake4-demo/pkg-descr
@@ -0,0 +1,3 @@
+This package contains Quake 4 for Linux (Demo version) by id Software.
+
+WWW: http://www.quake4game.com/
diff --git a/games/linux-quake4-demo/pkg-plist b/games/linux-quake4-demo/pkg-plist
new file mode 100644
index 000000000000..9449b3629552
--- /dev/null
+++ b/games/linux-quake4-demo/pkg-plist
@@ -0,0 +1,14 @@
+bin/q4ded-demo
+bin/quake4-demo
+%%Q4DIR%%/q4ded.x86
+%%Q4DIR%%/quake4.x86
+%%Q4DIR%%/q4base/game000.pk4
+%%Q4DIR%%/q4base/game100.pk4
+%%Q4DIR%%/q4base/mapcycle.scriptcfg
+%%Q4DIR%%/q4base/pak001.pk4
+%%Q4DIR%%/q4base/zpak_english.pk4
+%%Q4DIR%%/q4base/zpak_french.pk4
+%%Q4DIR%%/q4base/zpak_italian.pk4
+%%Q4DIR%%/q4base/zpak_spanish.pk4
+@dirrm %%Q4DIR%%/q4base
+@dirrm %%Q4DIR%%