summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-09 18:10:15 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-09 18:10:15 +0000
commitad69522f5e6b57d5350a46ebda16dbe091d0e4b6 (patch)
tree1580e46b57d69a004ab7bafb3f19590605890684 /games-fps/red-blue-quake2
parentNew version 'n cleanup (diff)
downloadhistorical-ad69522f5e6b57d5350a46ebda16dbe091d0e4b6.tar.gz
historical-ad69522f5e6b57d5350a46ebda16dbe091d0e4b6.tar.bz2
historical-ad69522f5e6b57d5350a46ebda16dbe091d0e4b6.zip
games-fps uNF uNF uNF
Diffstat (limited to 'games-fps/red-blue-quake2')
-rw-r--r--games-fps/red-blue-quake2/ChangeLog8
-rw-r--r--games-fps/red-blue-quake2/Manifest4
-rw-r--r--games-fps/red-blue-quake2/files/0.1-gentoo.patch63
-rw-r--r--games-fps/red-blue-quake2/files/digest-red-blue-quake2-0.12
-rw-r--r--games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild54
5 files changed, 131 insertions, 0 deletions
diff --git a/games-fps/red-blue-quake2/ChangeLog b/games-fps/red-blue-quake2/ChangeLog
new file mode 100644
index 000000000000..1f23c66085ec
--- /dev/null
+++ b/games-fps/red-blue-quake2/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for app-games/red-blue-quake2
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/red-blue-quake2/ChangeLog,v 1.1 2003/09/09 18:10:14 vapier Exp $
+
+*red-blue-quake2-0.1 (26 Jul 2003)
+
+ 26 Jul 2003; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me.
diff --git a/games-fps/red-blue-quake2/Manifest b/games-fps/red-blue-quake2/Manifest
new file mode 100644
index 000000000000..986e1a719509
--- /dev/null
+++ b/games-fps/red-blue-quake2/Manifest
@@ -0,0 +1,4 @@
+MD5 86c6814acf8cf8b24f67557e5f96fb1e files/0.1-gentoo.patch 2304
+MD5 ac16b4e5cb958cca657192c316e60ec5 files/digest-red-blue-quake2-0.1 133
+MD5 a2f27f34d7dd4c3f0a6295ba3943e1fb ChangeLog 363
+MD5 a4b2459caf256d86560423f9a1bd4d67 red-blue-quake2-0.1.ebuild 1462
diff --git a/games-fps/red-blue-quake2/files/0.1-gentoo.patch b/games-fps/red-blue-quake2/files/0.1-gentoo.patch
new file mode 100644
index 000000000000..e43013a1a8b2
--- /dev/null
+++ b/games-fps/red-blue-quake2/files/0.1-gentoo.patch
@@ -0,0 +1,63 @@
+diff -ur orig/quake2-3.21/linux/Makefile work-mywork/quake2-3.21/linux/Makefile
+--- orig/quake2-3.21/linux/Makefile 2001-12-29 20:37:22.000000000 -0500
++++ work-mywork/quake2-3.21/linux/Makefile 2003-07-17 22:14:50.000000000 -0400
+@@ -54,7 +54,7 @@
+ RELEASE_CFLAGS=$(BASE_CFLAGS) -O6 -ffast-math -funroll-loops \
+ -fomit-frame-pointer -fexpensive-optimizations
+ else
+-RELEASE_CFLAGS=$(BASE_CFLAGS) -g -mpentiumpro -O6 -ffast-math -funroll-loops \
++RELEASE_CFLAGS=$(BASE_CFLAGS) -g $(GENTOO_CFLAGS) -DGENTOO_DATADIR=\\\"$(GENTOO_DATADIR)\\\" -O6 -ffast-math -funroll-loops \
+ -fomit-frame-pointer -fexpensive-optimizations
+ endif
+
+diff -ur orig/quake2-3.21/linux/sys_linux.c work-mywork/quake2-3.21/linux/sys_linux.c
+--- orig/quake2-3.21/linux/sys_linux.c 2001-12-22 18:45:58.000000000 -0500
++++ work-mywork/quake2-3.21/linux/sys_linux.c 2003-07-17 22:34:11.000000000 -0400
+@@ -220,7 +220,7 @@
+ char curpath[MAX_OSPATH];
+ char *path;
+ #ifdef __i386__
+- const char *gamename = "gamei386.so";
++ const char *gamename = "GENTOO_DIR/gamei386.so";
+ #elif defined __alpha__
+ const char *gamename = "gameaxp.so";
+ #else
+@@ -250,6 +250,14 @@
+ {
+ Com_Printf ("LoadLibrary (%s)\n",name);
+ break;
++ } else {
++ sprintf (name, "%s", gamename);
++ game_library = dlopen (name, RTLD_LAZY );
++ if (game_library)
++ {
++ Com_Printf ("LoadLibrary (%s)\n",name);
++ break;
++ }
+ }
+ }
+
+diff -ur orig/quake2-3.21/qcommon/files.c work-mywork/quake2-3.21/qcommon/files.c
+--- orig/quake2-3.21/qcommon/files.c 2001-12-22 16:32:26.000000000 -0500
++++ work-mywork/quake2-3.21/qcommon/files.c 2003-07-17 22:34:29.000000000 -0400
+@@ -865,7 +865,7 @@
+ //
+ // start up with baseq2 by default
+ //
+- FS_AddGameDirectory (va("%s/"BASEDIRNAME, fs_basedir->string) );
++ FS_AddGameDirectory (va(BASEDIRNAME) );
+
+ // any set gamedirs will be freed up to here
+ fs_base_searchpaths = fs_searchpaths;
+diff -ur orig/quake2-3.21/qcommon/qcommon.h work-mywork/quake2-3.21/qcommon/qcommon.h
+--- orig/quake2-3.21/qcommon/qcommon.h 2001-12-22 16:32:26.000000000 -0500
++++ work-mywork/quake2-3.21/qcommon/qcommon.h 2003-07-17 21:20:03.000000000 -0400
+@@ -25,7 +25,7 @@
+
+ #define VERSION 3.21
+
+-#define BASEDIRNAME "baseq2"
++#define BASEDIRNAME GENTOO_DATADIR
+
+ #ifdef WIN32
+
diff --git a/games-fps/red-blue-quake2/files/digest-red-blue-quake2-0.1 b/games-fps/red-blue-quake2/files/digest-red-blue-quake2-0.1
new file mode 100644
index 000000000000..7dd7369aada1
--- /dev/null
+++ b/games-fps/red-blue-quake2/files/digest-red-blue-quake2-0.1
@@ -0,0 +1,2 @@
+MD5 3ac9ac6a833b9c049a9f763c3137b86f q2source-3.21.zip 1477764
+MD5 b80542d7977ecaa36799c479a6557069 red-blue-quake2-0.1.tar.gz 34874
diff --git a/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild b/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild
new file mode 100644
index 000000000000..788bea5a7533
--- /dev/null
+++ b/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild,v 1.1 2003/09/09 18:10:14 vapier Exp $
+
+inherit games eutils
+
+DESCRIPTION="red-blue Quake II ! play quake2 w/3d glasses !"
+HOMEPAGE="http://www.jfedor.org/red-blue-quake2/"
+SRC_URI="ftp://ftp.idsoftware.com/idstuff/source/q2source-3.21.zip
+ ftp://ftp.algx.net/idsoftware/source/q2source-3.21.zip
+ http://ftp.gentoo.skynet.be/pub/ftp.idsoftware.com/source/q2source-3.21.zip
+ http://www.jfedor.org/red-blue-quake2/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+
+DEPEND="virtual/x11"
+
+S=${WORKDIR}/quake2-3.21/linux
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/${PV}-gentoo.patch
+ cd quake2-3.21/linux
+ sed -i "s:GENTOO_DIR:${GAMES_LIBDIR}/${PN}:" sys_linux.c
+ sed -i "s:/etc/quake2.conf:${GAMES_SYSCONFDIR}/${PN}.conf:" sys_linux.c vid_so.c
+}
+
+src_compile() {
+ mkdir -p releasei386-glibc/ref_soft
+ make \
+ GENTOO_CFLAGS="${CFLAGS}" \
+ GENTOO_DATADIR=${GAMES_DATADIR}/quake2-data/baseq2/ \
+ build_release || die
+}
+
+src_install() {
+ cd release*
+
+ exeinto ${GAMES_LIBDIR}/${PN}
+ doexe gamei386.so ref_softx.so
+ exeinto ${GAMES_LIBDIR}/${PN}/ctf
+ doexe ctf/gamei386.so
+ newgamesbin quake2 red-blue-quake2
+
+ dodir ${GAMES_DATADIR}/quake2-data
+
+ insinto ${GAMES_SYSCONFDIR}
+ echo ${GAMES_LIBDIR}/${PN} > ${PN}.conf
+ doins ${PN}.conf
+
+ prepgamesdirs
+}