diff options
Diffstat (limited to 'games-fps/anaglyph-stereo-quake')
10 files changed, 156 insertions, 0 deletions
diff --git a/games-fps/anaglyph-stereo-quake/ChangeLog b/games-fps/anaglyph-stereo-quake/ChangeLog new file mode 100644 index 000000000000..dbb7a6db2fbb --- /dev/null +++ b/games-fps/anaglyph-stereo-quake/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-games/anaglyph-stereo-quake +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/anaglyph-stereo-quake/ChangeLog,v 1.1 2003/09/09 18:10:14 vapier Exp $ + +*anaglyph-stereo-quake-130100 (03 Aug 2003) + + 03 Aug 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by me. diff --git a/games-fps/anaglyph-stereo-quake/Manifest b/games-fps/anaglyph-stereo-quake/Manifest new file mode 100644 index 000000000000..f62c59018a01 --- /dev/null +++ b/games-fps/anaglyph-stereo-quake/Manifest @@ -0,0 +1,9 @@ +MD5 0365f55856a86aed2e24e3d9413b5bab anaglyph-stereo-quake-130100.ebuild 1310 +MD5 4ae3cb08e2ab3eab15f24a971c944f50 files/digest-anaglyph-stereo-quake-130100 70 +MD5 a4c6edf40c5ddec35cc9cc9b5e408482 files/makefile-path-fixes.patch 928 +MD5 d08883d204c323fd9dab8043be9c1a1e files/makefile-gcc2-cflags.patch 380 +MD5 d08883d204c323fd9dab8043be9c1a1e files/makefile-gcc3-cflags.patch 380 +MD5 9000dc321339d8c50a21d7a4dca3e285 files/makefile-onlyglx.patch 464 +MD5 4609964e62cdec31ee47cebf59f8fde4 files/stupid-dosformat.patch 749 +MD5 2cdc759b378cdf4dea66f3d85e1e0263 files/fix-sys_printf.patch 271 +MD5 c9aee2a9c184a8fa08eb115503846192 ChangeLog 384 diff --git a/games-fps/anaglyph-stereo-quake/anaglyph-stereo-quake-130100.ebuild b/games-fps/anaglyph-stereo-quake/anaglyph-stereo-quake-130100.ebuild new file mode 100644 index 000000000000..3580eb83759f --- /dev/null +++ b/games-fps/anaglyph-stereo-quake/anaglyph-stereo-quake-130100.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/anaglyph-stereo-quake/anaglyph-stereo-quake-130100.ebuild,v 1.1 2003/09/09 18:10:14 vapier Exp $ + +inherit games gcc eutils + +DESCRIPTION="play Quake in 3D with red - blue glasses" +HOMEPAGE="http://home.iprimus.com.au/crbean/" +SRC_URI="http://home.iprimus.com.au/crbean/zip/3dGLQuake_SRC_${PV}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" + +DEPEND="virtual/x11 + virtual/opengl" + +S=${WORKDIR}/WinQuake + +src_unpack() { + unpack ${A} + + cd ${S} + mv GLQUAKE.H glquake.h + mv GL_DRAW.C gl_draw.c + mv GL_RMAIN.C gl_rmain.c + epatch ${FILESDIR}/stupid-dosformat.patch + + epatch ${FILESDIR}/fix-sys_printf.patch + + mv Makefile{.linuxi386,} + epatch ${FILESDIR}/makefile-path-fixes.patch + + [ `gcc-major-version` -eq 3 ] \ + && epatch ${FILESDIR}/makefile-gcc3-cflags.patch \ + || epatch ${FILESDIR}/makefile-gcc2-cflags.patch + sed -i "s:GENTOO_CFLAGS:${CFLAGS} -DGL_EXT_SHARED=1:" Makefile + + epatch ${FILESDIR}/makefile-onlyglx.patch +} + +src_compile() { + make build_release || die "failed to build WinQuake" +} + +src_install() { + newgamesbin release*/bin/glquake.glx anaglyph-stereo-quake + dodoc ${WORKDIR}/readme.id.txt + dohtml ${WORKDIR}/3dquake.html + prepgamesdirs +} diff --git a/games-fps/anaglyph-stereo-quake/files/digest-anaglyph-stereo-quake-130100 b/games-fps/anaglyph-stereo-quake/files/digest-anaglyph-stereo-quake-130100 new file mode 100644 index 000000000000..067c889a11de --- /dev/null +++ b/games-fps/anaglyph-stereo-quake/files/digest-anaglyph-stereo-quake-130100 @@ -0,0 +1 @@ +MD5 3aadfe00325fe3a3b30c5bb2a6724433 3dGLQuake_SRC_130100.zip 1828997 diff --git a/games-fps/anaglyph-stereo-quake/files/fix-sys_printf.patch b/games-fps/anaglyph-stereo-quake/files/fix-sys_printf.patch new file mode 100644 index 000000000000..29567e010a34 --- /dev/null +++ b/games-fps/anaglyph-stereo-quake/files/fix-sys_printf.patch @@ -0,0 +1,11 @@ +--- sys_linux.c.orig 2003-08-03 02:48:17.018368253 -0400 ++++ sys_linux.c 2003-08-03 02:48:30.852868976 -0400 +@@ -86,7 +86,7 @@ + void Sys_Printf (char *fmt, ...) + { + va_list argptr; +- char text[1024]; ++ char text[2048]; + unsigned char *p; + + va_start (argptr,fmt); diff --git a/games-fps/anaglyph-stereo-quake/files/makefile-gcc2-cflags.patch b/games-fps/anaglyph-stereo-quake/files/makefile-gcc2-cflags.patch new file mode 100644 index 000000000000..76c9cbf5c876 --- /dev/null +++ b/games-fps/anaglyph-stereo-quake/files/makefile-gcc2-cflags.patch @@ -0,0 +1,7 @@ +--- WinQuake/Makefile.orig 2003-07-14 15:13:27.000000000 -0400 ++++ WinQuake/Makefile 2003-07-14 15:17:10.000000000 -0400 +@@ -39,3 +39,3 @@ + BASE_CFLAGS=-Dstricmp=strcasecmp +-RELEASE_CFLAGS=$(BASE_CFLAGS) -g -mpentiumpro -O6 -ffast-math -funroll-loops \ ++RELEASE_CFLAGS=$(BASE_CFLAGS) GENTOO_CFLAGS -O6 -ffast-math -funroll-loops \ + -fomit-frame-pointer -fexpensive-optimizations diff --git a/games-fps/anaglyph-stereo-quake/files/makefile-gcc3-cflags.patch b/games-fps/anaglyph-stereo-quake/files/makefile-gcc3-cflags.patch new file mode 100644 index 000000000000..76c9cbf5c876 --- /dev/null +++ b/games-fps/anaglyph-stereo-quake/files/makefile-gcc3-cflags.patch @@ -0,0 +1,7 @@ +--- WinQuake/Makefile.orig 2003-07-14 15:13:27.000000000 -0400 ++++ WinQuake/Makefile 2003-07-14 15:17:10.000000000 -0400 +@@ -39,3 +39,3 @@ + BASE_CFLAGS=-Dstricmp=strcasecmp +-RELEASE_CFLAGS=$(BASE_CFLAGS) -g -mpentiumpro -O6 -ffast-math -funroll-loops \ ++RELEASE_CFLAGS=$(BASE_CFLAGS) GENTOO_CFLAGS -O6 -ffast-math -funroll-loops \ + -fomit-frame-pointer -fexpensive-optimizations diff --git a/games-fps/anaglyph-stereo-quake/files/makefile-onlyglx.patch b/games-fps/anaglyph-stereo-quake/files/makefile-onlyglx.patch new file mode 100644 index 000000000000..06cbda385cd8 --- /dev/null +++ b/games-fps/anaglyph-stereo-quake/files/makefile-onlyglx.patch @@ -0,0 +1,16 @@ +--- Makefile.orig 2003-08-03 02:28:18.169946734 -0400 ++++ Makefile 2003-08-03 02:28:27.530255744 -0400 +@@ -64,11 +64,8 @@ + # SETUP AND BUILD + ############################################################################# + +-TARGETS=$(BUILDDIR)/bin/squake \ +- $(BUILDDIR)/bin/glquake \ +- $(BUILDDIR)/bin/glquake.glx \ +- $(BUILDDIR)/bin/glquake.3dfxgl \ +- $(BUILDDIR)/bin/quake.x11 ++TARGETS=\ ++ $(BUILDDIR)/bin/glquake.glx + # $(BUILDDIR)/bin/unixded + + build_debug: diff --git a/games-fps/anaglyph-stereo-quake/files/makefile-path-fixes.patch b/games-fps/anaglyph-stereo-quake/files/makefile-path-fixes.patch new file mode 100644 index 000000000000..8632b6455171 --- /dev/null +++ b/games-fps/anaglyph-stereo-quake/files/makefile-path-fixes.patch @@ -0,0 +1,22 @@ +--- WinQuake/Makefile.orig 2003-07-14 15:13:27.000000000 -0400 ++++ WinQuake/Makefile 2003-07-14 15:17:10.000000000 -0400 +@@ -27,4 +27,4 @@ + +-MOUNT_DIR=/grog/Projects/WinQuake +-MASTER_DIR=/grog/Projects/QuakeMaster ++MOUNT_DIR=../WinQuake ++MASTER_DIR=../QuakeMaster + MESA_DIR=/usr/local/src/Mesa-2.6 +@@ -35,3 +35,3 @@ + +-EGCS=/usr/local/egcs-1.1.2/bin/gcc ++EGCS=gcc + CC=$(EGCS) +@@ -47,5 +47,5 @@ + +-MESAGLLDFLAGS=-L/usr/X11/lib -L/usr/local/lib -L$(MESA_DIR)/lib -lMesaGL -lglide2x -lX11 -lXext -ldl ++MESAGLLDFLAGS=-L/usr/X11R6/lib -L/usr/local/lib -L$(MESA_DIR)/lib -lMesaGL -lglide2x -lX11 -lXext -ldl + TDFXGLLDFLAGS=-L$(TDFXGL_DIR)/release$(ARCH)$(GLIBC) -l3dfxgl -lglide2x -ldl +-GLLDFLAGS=-L/usr/X11/lib -L/usr/local/lib -lGL -lX11 -lXext -ldl -lXxf86dga -lXxf86vm -lm ++GLLDFLAGS=-L/usr/X11R6/lib -L/usr/local/lib -lGL -lX11 -lXext -ldl -lXxf86dga -lXxf86vm -lm + GLCFLAGS=-DGLQUAKE -I$(MESA_DIR)/include -I/usr/include/glide diff --git a/games-fps/anaglyph-stereo-quake/files/stupid-dosformat.patch b/games-fps/anaglyph-stereo-quake/files/stupid-dosformat.patch new file mode 100644 index 000000000000..2c64d2d1ab88 --- /dev/null +++ b/games-fps/anaglyph-stereo-quake/files/stupid-dosformat.patch @@ -0,0 +1,24 @@ +--- glquake.h.orig 2003-08-03 02:34:01.725881488 -0400 ++++ glquake.h 2003-08-03 02:34:18.788798979 -0400 +@@ -260,4 +260,3 @@ +
+ void GL_DisableMultitexture(void);
+ void GL_EnableMultitexture(void);
+- +\ No newline at end of file +--- gl_draw.c.orig 2003-08-03 02:34:06.243065434 -0400 ++++ gl_draw.c 2003-08-03 02:34:20.535483431 -0400 +@@ -1302,4 +1302,3 @@ + currenttexture = cnttextures[target-TEXTURE0_SGIS];
+ oldtarget = target;
+ }
+- +\ No newline at end of file +--- gl_rmain.c.orig 2003-08-03 02:34:11.115185259 -0400 ++++ gl_rmain.c 2003-08-03 02:34:22.106199673 -0400 +@@ -1268,4 +1268,3 @@ + Con_Printf ("%3i ms %4i wpoly %4i epoly\n", (int)((time2-time1)*1000), c_brush_polys, c_alias_polys);
+ }
+ }
+- +\ No newline at end of file |