diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-09 18:10:15 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-09 18:10:15 +0000 |
commit | c22ea1f9962983b3583d00085024413d77102212 (patch) | |
tree | acd80fa59d92f27b0609b3d58893ef500cd09925 /games-fps/aaquake2 | |
parent | New version 'n cleanup (diff) | |
download | gentoo-2-c22ea1f9962983b3583d00085024413d77102212.tar.gz gentoo-2-c22ea1f9962983b3583d00085024413d77102212.tar.bz2 gentoo-2-c22ea1f9962983b3583d00085024413d77102212.zip |
games-fps uNF uNF uNF
Diffstat (limited to 'games-fps/aaquake2')
-rw-r--r-- | games-fps/aaquake2/ChangeLog | 8 | ||||
-rw-r--r-- | games-fps/aaquake2/Manifest | 4 | ||||
-rw-r--r-- | games-fps/aaquake2/aaquake2-0.1.ebuild | 57 | ||||
-rw-r--r-- | games-fps/aaquake2/files/0.1-gentoo.patch | 94 | ||||
-rw-r--r-- | games-fps/aaquake2/files/digest-aaquake2-0.1 | 2 |
5 files changed, 165 insertions, 0 deletions
diff --git a/games-fps/aaquake2/ChangeLog b/games-fps/aaquake2/ChangeLog new file mode 100644 index 000000000000..749b2530f25a --- /dev/null +++ b/games-fps/aaquake2/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-games/aaquake2 +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/aaquake2/ChangeLog,v 1.1 2003/09/09 18:10:14 vapier Exp $ + +*aaquake2-0.1 (17 Jul 2003) + + 17 Jul 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by me. diff --git a/games-fps/aaquake2/Manifest b/games-fps/aaquake2/Manifest new file mode 100644 index 000000000000..671a5d3a11ac --- /dev/null +++ b/games-fps/aaquake2/Manifest @@ -0,0 +1,4 @@ +MD5 3704e9e7f7fb3fe2bc76025575bfcb7b files/digest-aaquake2-0.1 135 +MD5 6b4f3f4f340a0982351384061f9ee8fa files/0.1-gentoo.patch 3309 +MD5 76d925dcbd2e782ce10b64eaa28a7fce aaquake2-0.1.ebuild 1535 +MD5 7a35ec14ffdf14c7ecf63e700a175325 ChangeLog 342 diff --git a/games-fps/aaquake2/aaquake2-0.1.ebuild b/games-fps/aaquake2/aaquake2-0.1.ebuild new file mode 100644 index 000000000000..9e7b3edf4876 --- /dev/null +++ b/games-fps/aaquake2/aaquake2-0.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/aaquake2/aaquake2-0.1.ebuild,v 1.1 2003/09/09 18:10:14 vapier Exp $ + +inherit games eutils + +DESCRIPTION="text mode Quake II" +HOMEPAGE="http://www.jfedor.org/aaquake2/" +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/aaquake2/quake2-ref_softaa-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" + +DEPEND="media-libs/aalib" + +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_softaa.so + dosym ref_softaa.so ${GAMES_LIBDIR}/${PN}/ref_softx.so + dosym ref_softaa.so ${GAMES_LIBDIR}/${PN}/ref_soft.so + exeinto ${GAMES_LIBDIR}/${PN}/ctf + doexe ctf/gamei386.so + + newgamesbin quake2 aaquake2 + + dodir ${GAMES_DATADIR}/quake2-data + + insinto ${GAMES_SYSCONFDIR} + echo ${GAMES_LIBDIR}/${PN} > ${PN}.conf + doins ${PN}.conf + + prepgamesdirs +} diff --git a/games-fps/aaquake2/files/0.1-gentoo.patch b/games-fps/aaquake2/files/0.1-gentoo.patch new file mode 100644 index 000000000000..0c02710e89f6 --- /dev/null +++ b/games-fps/aaquake2/files/0.1-gentoo.patch @@ -0,0 +1,94 @@ +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 + +@@ -92,7 +92,7 @@ + ############################################################################# + + ifeq ($(ARCH),axp) +-TARGETS=$(BUILDDIR)/q2ded \ ++TARGETS=\ + $(BUILDDIR)/game$(ARCH).$(SHLIBEXT) \ + $(BUILDDIR)/ctf/game$(ARCH).$(SHLIBEXT) \ + # $(BUILDDIR)/xatrix/game$(ARCH).$(SHLIBEXT) \ +@@ -100,11 +100,7 @@ + else + TARGETS=$(BUILDDIR)/quake2 \ + $(BUILDDIR)/game$(ARCH).$(SHLIBEXT) \ +- $(BUILDDIR)/ref_soft.$(SHLIBEXT) \ +- $(BUILDDIR)/ref_softx.$(SHLIBEXT) \ + $(BUILDDIR)/ref_softaa.$(SHLIBEXT) \ +- $(BUILDDIR)/ref_gl.$(SHLIBEXT) \ +- $(BUILDDIR)/ref_glx.$(SHLIBEXT) \ + $(BUILDDIR)/ctf/game$(ARCH).$(SHLIBEXT) \ + # $(BUILDDIR)/xatrix/game$(ARCH).$(SHLIBEXT) \ + # $(BUILDDIR)/rogue/game$(ARCH).$(SHLIBEXT) +@@ -125,9 +121,6 @@ + build_release: + @-mkdir $(BUILD_RELEASE_DIR) \ + $(BUILD_RELEASE_DIR)/client \ +- $(BUILD_RELEASE_DIR)/ded \ +- $(BUILD_RELEASE_DIR)/ref_soft \ +- $(BUILD_RELEASE_DIR)/ref_gl \ + $(BUILD_RELEASE_DIR)/game \ + $(BUILD_RELEASE_DIR)/ctf \ + # $(BUILD_RELEASE_DIR)/xatrix \ +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/aaquake2/files/digest-aaquake2-0.1 b/games-fps/aaquake2/files/digest-aaquake2-0.1 new file mode 100644 index 000000000000..ce25dadff841 --- /dev/null +++ b/games-fps/aaquake2/files/digest-aaquake2-0.1 @@ -0,0 +1,2 @@ +MD5 3ac9ac6a833b9c049a9f763c3137b86f q2source-3.21.zip 1477764 +MD5 2f9df6fca3b06d380f21f644105a30e7 quake2-ref_softaa-0.1.tar.gz 12931 |