[Lunar-commits] <moonbase> quake2-yamagi: new quake2 engine

Paul Bredbury brebs at lunar-linux.org
Wed Jan 12 12:58:56 CET 2011


commit d86b3e18e5532cdbca9efb6bccd36313866cbcdb
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Wed Jan 12 18:58:56 2011 +0700

    quake2-yamagi: new quake2 engine
---
 games/quake2-yamagi/BUILD   |   33 +++++++++++++++++++++++++++++++++
 games/quake2-yamagi/DEPENDS |    1 +
 games/quake2-yamagi/DETAILS |   21 +++++++++++++++++++++
 3 files changed, 55 insertions(+), 0 deletions(-)

diff --git a/games/quake2-yamagi/BUILD b/games/quake2-yamagi/BUILD
new file mode 100644
index 0000000..cdbfe7c
--- /dev/null
+++ b/games/quake2-yamagi/BUILD
@@ -0,0 +1,33 @@
+(
+
+  # Set default basedir
+  sed -i -e 's:"basedir", ".":"basedir", "/usr/share/games/quake2":' src/common/files.c &&
+
+  # Use yamagi.cfg in ~/.quake2/baseq2/
+  sed -i -e 's:config\.cfg:yamagi\.cfg:' src/common/common.c src/client/cl_main.c &&
+
+  # Add libdir to search path, to find /usr/lib/yamagi/baseq2/game.so
+  sed -i -e '/FS_AddGameDirectory(va(\"%s\/\" BASEDIRNAME, fs_basedir/a\    FS_AddGameDirectory(va(\"%s\/\" BASEDIRNAME, \"/usr/lib/yamagi\"));' src/common/files.c &&
+
+  # Use libdir, to find /usr/lib/yamagi/ref_gl.so
+  sed -i -e 's:path = Cvar_Get ("basedir", ".", CVAR_NOSET)->string;:path = "/usr/lib/yamagi";:' src/posix/vid/refresh.c &&
+  
+  # Turn debugging on
+  #sed -i -e 's:"fs_debug", "0":"fs_debug", "1":' src/common/files.c &&
+
+  make &&
+  prepare_install &&
+  mkdir -p /usr/games /usr/lib/yamagi/{baseq2,ctf} /usr/share/games/quake2/baseq2 &&
+  install -m755 release/q2ded /usr/games/yamagi-ded &&
+  install -m755 release/quake2 /usr/games/yamagi &&
+
+  # Maybe useful:
+  # See http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/quake2-icculus/files/ - quake2-icculus-0.16.1-gentoo-paths.patch
+  # http://deponie.yamagi.org/quake2/debs/source/yamagi-quake2_2.11-1.diff.gz
+  install -m755 release/ref_gl.so /usr/lib/yamagi/ &&
+
+  install -m755 release/baseq2/game.so /usr/lib/yamagi/baseq2/ &&
+  install -m755 release/ctf/game.so /usr/lib/yamagi/ctf/ &&
+  install -m644 icon/Quake2.png /usr/share/icons/yamagi.png
+
+) > $C_FIFO 2>&1
diff --git a/games/quake2-yamagi/DEPENDS b/games/quake2-yamagi/DEPENDS
new file mode 100644
index 0000000..c05e67b
--- /dev/null
+++ b/games/quake2-yamagi/DEPENDS
@@ -0,0 +1 @@
+depends SDL
diff --git a/games/quake2-yamagi/DETAILS b/games/quake2-yamagi/DETAILS
new file mode 100644
index 0000000..b64ad6c
--- /dev/null
+++ b/games/quake2-yamagi/DETAILS
@@ -0,0 +1,21 @@
+          MODULE=quake2-yamagi
+             MOD=quake2
+         # Version 3.00.RC1 hangs
+         VERSION=2.11
+          SOURCE=$MOD-$VERSION.tar.bz2
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MOD-$VERSION
+      SOURCE_URL=http://deponie.yamagi.org/quake2
+      SOURCE_VFY=sha1:9a53932386dbc558092db3d38ff3266c65712845
+        WEB_SITE=http://www.yamagi.org/quake2/
+         ENTERED=20110110
+         UPDATED=20110110
+           SHORT="Quake 2 engine"
+
+cat << EOF
+This is an enhanced client for iD Software's legendary Quake II. It
+focuses on single-player gaming and co-operative gaming, rather than
+classic multiplayer. This client is based upon Icculus Quake II, but
+has a vast amount of improvements. Hundreds of type errors were fixed,
+and a lot of bugs in gameplay. Some broken features were repaired, and
+some map quirks added.
+EOF


More information about the Lunar-commits mailing list