diff options
Diffstat (limited to 'games-fps/red-blue-quake2')
-rw-r--r-- | games-fps/red-blue-quake2/Manifest | 9 | ||||
-rw-r--r-- | games-fps/red-blue-quake2/files/0.1-gentoo.patch | 63 | ||||
-rw-r--r-- | games-fps/red-blue-quake2/files/red-blue-quake2-0.1-gcc41.patch | 39 | ||||
-rw-r--r-- | games-fps/red-blue-quake2/files/red-blue-quake2-0.1-ldflags.patch | 92 | ||||
-rw-r--r-- | games-fps/red-blue-quake2/metadata.xml | 8 | ||||
-rw-r--r-- | games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild | 57 |
6 files changed, 268 insertions, 0 deletions
diff --git a/games-fps/red-blue-quake2/Manifest b/games-fps/red-blue-quake2/Manifest new file mode 100644 index 000000000000..1b0ad649981f --- /dev/null +++ b/games-fps/red-blue-quake2/Manifest @@ -0,0 +1,9 @@ +AUX 0.1-gentoo.patch 1964 SHA256 8a0468695631516ae96b8e90c74559bcc2c9a74ca6e533c0f61cab8dd9b2b63a SHA512 87b7d3a355a57940b1ce2be3e30ff5053aa83af2e53018f1ea00556dba67cbb1767729867eabf062faf1a08eb2ca601176dbccd6c9585160edb2e3477b22fa5a WHIRLPOOL 3662dde99eb7265bb09d37ba2366d010a0f8ec4cc55f9dade21e20f23a0f5bd690162771064ab36f755d593461ebcb29c7e3ad00d89abd89913c96ea8329d878 +AUX red-blue-quake2-0.1-gcc41.patch 895 SHA256 38417bf227a473c8d0553f9aa14c3468d793b3cf87a50a265b6067f0cacf3dbd SHA512 9cb57a27bc5e8e7123c40a55625f4e227d5c81e179de3119441d7447de7701c9f6e8fc76a24e1b6c21bb92eff142aed24ffed2da39cb5bf2f87eaf8600b210bc WHIRLPOOL 2376f49a46c4097e3fbdfa520c032211d111ed726d77cfbacce97a3a26b5ba7eea4b89236d46f3003d9b0212cb7ef9ffcc346db976280f907070133b1ca4b0df +AUX red-blue-quake2-0.1-ldflags.patch 3382 SHA256 83ff9c4b5e609ecbd81c05d9bd781833da4337d704df5797fe2b80754eeebe96 SHA512 a49ab8462322740fcfef70c6bff16df9b164cfa0cace00bdf366e10db1d0fc13770d97f9aa8dcf1f92d1555d7d978ce7f947d58bc3d030fd2c1be0983e74470a WHIRLPOOL adee56412f439e140fd09a4bdd2468dc0a5075379bb00030006b26b00af48979948b375dcabfd0d5c31feca662aa4408a90cab78a4bbd901e989fa4989141843 +DIST q2source-3.21.zip 1477764 SHA256 c9200316de189638d0d997a0092f36b85f2c3f9e4ebe30f4b1c356745ad676ca SHA512 eb3fcf3327272b7472a044336be4d73111f5b9f50b4916609996ecb690555654990c1f86e63cd6e7d4a30844e66d3eca2e428e29a598bce52e953c326caf9752 WHIRLPOOL 7b372c99d97e4bf807b07d93726cba748116e21c9e5f3348e0571632742a2574cc395e762e7e30a529fe5d45a82e3f047605cc4d788fb1e67d0ee9a615d8af34 +DIST red-blue-quake2-0.1.tar.gz 34874 SHA256 65a0f2552f537e494f05f573e54faff7cf08d22276307e6c69eb314c2f3dac17 SHA512 4123fb1cceb788068c5cd525e3e03cce8a993ecdd0d86c3c154426689a7893b6d33cddeafbb53761a27473a050829545e7fc802f1236f4dc60161103ad259da5 WHIRLPOOL 6726177a08f7bf6dca239cb117a49cfbf3f54cb9a85849f055297e111193dcc0eab27973db3f62a3263bf4aeb083ed6c6864b120b145640e028f635224800548 +EBUILD red-blue-quake2-0.1.ebuild 1311 SHA256 5db397625ac2fd6272cc82c0bef00e74b8165c4f54b7ed0a98015e3c9ba9754a SHA512 9ab80dc705773d81734a9c626a75ed44c083dc61d145d85c0f10b630c159f4e4d2c9ae4ab2d9e53690a4f07e501da454b7cab77af201b106c9bee3e13960ac6a WHIRLPOOL bf52d69a945bd793bab062b2ab33770e6c01b11fbafa99a1b4d617198e3871a9d52fc3cc23a2496c62bb52f22b7799f49da66f1fc61c9b3c8647c700e01aac51 +MISC ChangeLog 3033 SHA256 5954fa55a87583a89855fb243f29a7147a87f1aa7a886bfc50cac80459941ce7 SHA512 f869cdf6469087c3eb587b73b869e115993456b206fd7132dc757998233bc1277683a38454cf122ed7eef8396d6c7aa39b916036fd212284f252ef1edd23f119 WHIRLPOOL e43ed80e07344bee1749f128b9d2661f83c4c2ce063eb147806cd284c808baaae9bb970c4dedf01e29a786a7ab075a73df15f55102a3b71e361e644784bba1b2 +MISC ChangeLog-2015 1321 SHA256 8bfefd370018d03342c8c55a5cedea782066439a8a99af3983ed5e9f045d35cf SHA512 12962fe50236ac1c719446b83abf7e14d085bf826bfdaf734b828a8afd5d32b78d7e3d1414f31bd86ab741e91e780cd098587931a1fac4675d512c9815ffa7c0 WHIRLPOOL 62b2efffb4ed1f8c5c48c50df634b8272ef7f4f7189cbaf2c60932e0693b240caf99d71ebe7bba18a2c628c4b8adc2932ac09185ec55d7070e0ed64fb87e28db +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 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..fd13df9bcb45 --- /dev/null +++ b/games-fps/red-blue-quake2/files/0.1-gentoo.patch @@ -0,0 +1,63 @@ +diff -ur Makefile.old Makefile +--- Makefile 2001-12-29 20:37:22.000000000 -0500 ++++ 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 sys_linux.c.old sys_linux.c +--- sys_linux.c.old 2001-12-22 18:45:58.000000000 -0500 ++++ 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 ../qcommon/files.c ../qcommon/files.c +--- ../qcommon/files.c 2001-12-22 16:32:26.000000000 -0500 ++++ ../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 ../qcommon/qcommon.h ../qcommon/qcommon.h +--- ../qcommon/qcommon.h 2001-12-22 16:32:26.000000000 -0500 ++++ ../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/red-blue-quake2-0.1-gcc41.patch b/games-fps/red-blue-quake2/files/red-blue-quake2-0.1-gcc41.patch new file mode 100644 index 000000000000..1f933d33537e --- /dev/null +++ b/games-fps/red-blue-quake2/files/red-blue-quake2-0.1-gcc41.patch @@ -0,0 +1,39 @@ +--- ../game/g_local.h.old 2006-05-07 00:27:45.000000000 +0200 ++++ ../game/g_local.h 2006-05-07 00:28:06.000000000 +0200 +@@ -458,11 +458,6 @@ + extern int sm_meat_index;
+ extern int snd_fry;
+
+-extern int jacket_armor_index;
+-extern int combat_armor_index;
+-extern int body_armor_index;
+-
+-
+ // means of death
+ #define MOD_UNKNOWN 0
+ #define MOD_BLASTER 1
+--- ../ctf/g_local.h.old 2006-05-07 00:36:21.000000000 +0200 ++++ ../ctf/g_local.h 2006-05-07 00:36:38.000000000 +0200 +@@ -466,11 +466,6 @@ + extern int sm_meat_index;
+ extern int snd_fry;
+
+-extern int jacket_armor_index;
+-extern int combat_armor_index;
+-extern int body_armor_index;
+-
+-
+ // means of death
+ #define MOD_UNKNOWN 0
+ #define MOD_BLASTER 1
+@@ -556,10 +556,6 @@ +
+ extern cvar_t *sv_maplist;
+
+-//ZOID
+-extern qboolean is_quad;
+-//ZOID
+-
+ #define world (&g_edicts[0])
+
+ // item spawnflags
diff --git a/games-fps/red-blue-quake2/files/red-blue-quake2-0.1-ldflags.patch b/games-fps/red-blue-quake2/files/red-blue-quake2-0.1-ldflags.patch new file mode 100644 index 000000000000..58beb0f3cec5 --- /dev/null +++ b/games-fps/red-blue-quake2/files/red-blue-quake2-0.1-ldflags.patch @@ -0,0 +1,92 @@ +--- Makefile.old 2010-10-18 09:09:48.000000000 +0200 ++++ Makefile 2010-10-18 09:15:59.000000000 +0200 +@@ -59,7 +59,7 @@ + endif + + DEBUG_CFLAGS=$(BASE_CFLAGS) -g +-LDFLAGS=-ldl -lm ++LDLIBS=-ldl -lm + SVGALDFLAGS=-lvga -lm + XLDFLAGS=-L/usr/X11R6/lib -lX11 -lXext -lXxf86dga + XCFLAGS= +@@ -195,7 +195,7 @@ + endif + + $(BUILDDIR)/quake2 : $(QUAKE2_OBJS) $(QUAKE2_AS_OBJS) +- $(CC) $(CFLAGS) -o $@ $(QUAKE2_OBJS) $(QUAKE2_AS_OBJS) $(LDFLAGS) ++ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(QUAKE2_OBJS) $(QUAKE2_AS_OBJS) $(LDLIBS) + + $(BUILDDIR)/client/cl_cin.o : $(CLIENT_DIR)/cl_cin.c + $(DO_CC) +@@ -374,7 +374,7 @@ + $(BUILDDIR)/ded/cd_null.o + + $(BUILDDIR)/q2ded : $(Q2DED_OBJS) +- $(CC) $(CFLAGS) -o $@ $(Q2DED_OBJS) $(LDFLAGS) ++ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(Q2DED_OBJS) $(LDLIBS) + + $(BUILDDIR)/ded/cmd.o : $(COMMON_DIR)/cmd.c + $(DO_DED_CC) +@@ -503,7 +503,7 @@ + $(BUILDDIR)/game/m_flash.o + + $(BUILDDIR)/game$(ARCH).$(SHLIBEXT) : $(GAME_OBJS) +- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS) ++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS) + + $(BUILDDIR)/game/g_ai.o : $(GAME_DIR)/g_ai.c + $(DO_SHLIB_CC) +@@ -682,7 +682,7 @@ + $(BUILDDIR)/ctf/q_shared.o + + $(BUILDDIR)/ctf/game$(ARCH).$(SHLIBEXT) : $(CTF_OBJS) +- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(CTF_OBJS) ++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(CTF_OBJS) + + $(BUILDDIR)/ctf/g_ai.o : $(CTF_DIR)/g_ai.c + $(DO_SHLIB_CC) +@@ -821,7 +821,7 @@ + $(BUILDDIR)/xatrix/q_shared.o + + $(BUILDDIR)/xatrix/game$(ARCH).$(SHLIBEXT) : $(XATRIX_OBJS) +- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(XATRIX_OBJS) ++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(XATRIX_OBJS) + + $(BUILDDIR)/xatrix/g_ai.o : $(XATRIX_DIR)/g_ai.c + $(DO_SHLIB_CC) +@@ -1048,7 +1048,7 @@ + $(BUILDDIR)/rogue/q_shared.o + + $(BUILDDIR)/rogue/game$(ARCH).$(SHLIBEXT) : $(ROGUE_OBJS) +- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(ROGUE_OBJS) ++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(ROGUE_OBJS) + + $(BUILDDIR)/rogue/dm_ball.o : $(ROGUE_DIR)/dm_ball.c + $(DO_SHLIB_CC) +@@ -1287,11 +1287,11 @@ + $(BUILDDIR)/ref_soft/rw_x11.o + + $(BUILDDIR)/ref_soft.$(SHLIBEXT) : $(REF_SOFT_OBJS) $(REF_SOFT_SVGA_OBJS) +- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -Xlinker -Map -Xlinker map.out -o $@ $(REF_SOFT_OBJS) \ ++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -Xlinker -Map -Xlinker map.out -o $@ $(REF_SOFT_OBJS) \ + $(REF_SOFT_SVGA_OBJS) $(SVGALDFLAGS) + + $(BUILDDIR)/ref_softx.$(SHLIBEXT) : $(REF_SOFT_OBJS) $(REF_SOFT_X11_OBJS) +- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_SOFT_OBJS) \ ++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_SOFT_OBJS) \ + $(REF_SOFT_X11_OBJS) $(XLDFLAGS) + + $(BUILDDIR)/ref_soft/r_aclip.o : $(REF_SOFT_DIR)/r_aclip.c +@@ -1431,10 +1431,10 @@ + $(BUILDDIR)/ref_gl/gl_glx.o + + $(BUILDDIR)/ref_gl.$(SHLIBEXT) : $(REF_GL_OBJS) $(REF_GL_FXMESA_OBJS) +- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_GL_OBJS) $(REF_GL_FXMESA_OBJS) $(GLLDFLAGS) ++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_GL_OBJS) $(REF_GL_FXMESA_OBJS) $(GLLDFLAGS) + + $(BUILDDIR)/ref_glx.$(SHLIBEXT) : $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) +- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) $(GLXLDFLAGS) ++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) $(GLXLDFLAGS) + + $(BUILDDIR)/ref_gl/gl_draw.o : $(REF_GL_DIR)/gl_draw.c + $(DO_GL_SHLIB_CC) diff --git a/games-fps/red-blue-quake2/metadata.xml b/games-fps/red-blue-quake2/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-fps/red-blue-quake2/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> 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..5b4150c6250e --- /dev/null +++ b/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="red-blue Quake II ! play quake2 w/3d glasses !" +HOMEPAGE="http://www.jfedor.org/red-blue-quake2/" +SRC_URI="mirror://idsoftware/source/q2source-3.21.zip + http://www.jfedor.org/red-blue-quake2/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="" + +RDEPEND="x11-libs/libX11" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/quake2-3.21/linux + +src_prepare() { + epatch "${FILESDIR}"/${PV}-gentoo.patch \ + "${FILESDIR}/${P}"-gcc41.patch \ + "${FILESDIR}/${P}"-ldflags.patch + sed -i \ + -e "s:GENTOO_DIR:$(games_get_libdir)/${PN}:" \ + sys_linux.c || die + sed -i \ + -e "s:/etc/quake2.conf:${GAMES_SYSCONFDIR}/${PN}.conf:" \ + sys_linux.c vid_so.c || die + echo "$(games_get_libdir)"/${PN} > "${T}"/${PN}.conf || die +} + +src_compile() { + mkdir -p releasei386-glibc/ref_soft + emake \ + GENTOO_CFLAGS="${CFLAGS}" \ + GENTOO_DATADIR="${GAMES_DATADIR}"/quake2/baseq2/ \ + build_release +} + +src_install() { + cd release* + + exeinto "$(games_get_libdir)"/${PN} + doexe gamei386.so ref_softx.so + exeinto "$(games_get_libdir)"/${PN}/ctf + doexe ctf/gamei386.so + newgamesbin quake2 red-blue-quake2 + + insinto "${GAMES_SYSCONFDIR}" + doins "${T}"/${PN}.conf + + prepgamesdirs +} |