diff options
Diffstat (limited to 'games-fps/prboom')
-rw-r--r-- | games-fps/prboom/ChangeLog | 14 | ||||
-rw-r--r-- | games-fps/prboom/Manifest | 5 | ||||
-rw-r--r-- | games-fps/prboom/files/2.2.3-nvidia-test.c | 3 | ||||
-rw-r--r-- | games-fps/prboom/files/2.2.3-nvidia.patch | 28 | ||||
-rw-r--r-- | games-fps/prboom/files/digest-prboom-2.2.3 | 2 | ||||
-rw-r--r-- | games-fps/prboom/prboom-2.2.3.ebuild | 48 |
6 files changed, 100 insertions, 0 deletions
diff --git a/games-fps/prboom/ChangeLog b/games-fps/prboom/ChangeLog new file mode 100644 index 000000000000..845c32b99954 --- /dev/null +++ b/games-fps/prboom/ChangeLog @@ -0,0 +1,14 @@ +# ChangeLog for app-games/prboom +# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/prboom/ChangeLog,v 1.1 2003/09/09 18:10:14 vapier Exp $ + + 08 Sep 2003; Michael Sterrett <msterret@gentoo.org> prboom-2.2.3.ebuild: + massage the DEPEND lines around; add media-libs/smpeg which config checks for. + +*prboom-2.2.3 (24 Oct 2002) + + 27 Jun 2003; Mike Frysinger <vapier@gentoo.org> : + Added an nvidia test/patch so that it'll work on NVidia GL #19025. + + 24 Oct 2002; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by Dirk-Jan Heijs <heijs@phys.rug.nl>. diff --git a/games-fps/prboom/Manifest b/games-fps/prboom/Manifest new file mode 100644 index 000000000000..e7862862a877 --- /dev/null +++ b/games-fps/prboom/Manifest @@ -0,0 +1,5 @@ +MD5 c043e11c6f548be9de5791b9f2624657 ChangeLog 651 +MD5 c5d085638eba69a9751971c727dbd787 prboom-2.2.3.ebuild 1145 +MD5 c5d65c7c0192bf7be43c89cbe080a626 files/digest-prboom-2.2.3 122 +MD5 6baf3ffdd34dfe4b85618dd603616a80 files/2.2.3-nvidia-test.c 90 +MD5 26c3203b01da274d7823401db192c07c files/2.2.3-nvidia.patch 944 diff --git a/games-fps/prboom/files/2.2.3-nvidia-test.c b/games-fps/prboom/files/2.2.3-nvidia-test.c new file mode 100644 index 000000000000..f9e4bd700f8a --- /dev/null +++ b/games-fps/prboom/files/2.2.3-nvidia-test.c @@ -0,0 +1,3 @@ +#include <SDL/SDL_opengl.h> +PFNGLCOLORTABLEEXTPROC glColorTableEXT; +int main(){return 0;} diff --git a/games-fps/prboom/files/2.2.3-nvidia.patch b/games-fps/prboom/files/2.2.3-nvidia.patch new file mode 100644 index 000000000000..1fe78112b26a --- /dev/null +++ b/games-fps/prboom/files/2.2.3-nvidia.patch @@ -0,0 +1,28 @@ +--- src/gl_main.c.orig 2002-07-27 12:34:42.000000000 -0400 ++++ src/gl_main.c 2003-06-28 01:10:25.000000000 -0400 +@@ -273,6 +273,7 @@ + + if (strcasecmp(extension, "GL_EXT_texture_filter_anisotropic") == 0) + gl_texture_filter_anisotropic = true; ++/* + else if (strcasecmp(extension, "GL_EXT_paletted_texture") == 0) { + if (gl_use_paletted_texture) { + gl_paletted_texture = true; +@@ -286,7 +287,7 @@ + glColorTableEXT = SDL_GL_GetProcAddress("glColorTableEXT"); + lprintf(LO_INFO,"using GL_EXT_shared_texture_palette\n",glGetString(GL_VENDOR)); + } +- ++*/ + extension = p; + } while (*extension != '\0'); + +--- src/gl_intern.h.orig 2003-06-28 01:13:38.000000000 -0400 ++++ src/gl_intern.h 2003-06-28 01:13:43.000000000 -0400 +@@ -114,5 +114,5 @@ + #define min(a,b) ((a)<(b)?(a):(b)) + #endif + +-PFNGLCOLORTABLEEXTPROC glColorTableEXT; ++//PFNGLCOLORTABLEEXTPROC glColorTableEXT; + #endif // _GL_INTERN_H diff --git a/games-fps/prboom/files/digest-prboom-2.2.3 b/games-fps/prboom/files/digest-prboom-2.2.3 new file mode 100644 index 000000000000..52a418cfb43a --- /dev/null +++ b/games-fps/prboom/files/digest-prboom-2.2.3 @@ -0,0 +1,2 @@ +MD5 91873942bbb7f0ee476b27b6baa62159 prboom-2.2.3.tar.gz 994824 +MD5 66851d7cecbc7845d612e7073c1355ad doom1.wad.gz 1765820 diff --git a/games-fps/prboom/prboom-2.2.3.ebuild b/games-fps/prboom/prboom-2.2.3.ebuild new file mode 100644 index 000000000000..9bfb98615ac9 --- /dev/null +++ b/games-fps/prboom/prboom-2.2.3.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/prboom/prboom-2.2.3.ebuild,v 1.1 2003/09/09 18:10:14 vapier Exp $ + +inherit games eutils + +DESCRIPTION="Port of ID's doom to SDL and OpenGL" +HOMEPAGE="http://prboom.sourceforge.net/" +SRC_URI="mirror://sourceforge/prboom/${P}.tar.gz + http://www.lbjhs.net/~jessh/lsdldoom/doom1.wad.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="opengl" + +DEPEND="virtual/x11 + >=media-libs/libsdl-1.1.3 + media-libs/sdl-mixer + media-libs/sdl-net + media-libs/smpeg + opengl? ( virtual/opengl )" + +src_unpack() { + unpack ${A} + cd ${S} + ebegin "Detecting NVidia GL/prboom bug" + gcc ${FILESDIR}/${PV}-nvidia-test.c 2> /dev/null + eend $? "NVidia GL/prboom bug found ;(" + epatch ${FILESDIR}/${PV}-nvidia.patch +} + +src_compile() { + egamesconf `use_enable opengl gl` || die + emake || die +} + +src_install() { + dogamesbin src/prboom{,-game-server} + + insinto ${GAMES_DATADIR}/doom/ + doins ../doom1.wad data/*.wad + + doman doc/*.{5,6} + dodoc AUTHORS ChangeLog NEWS README TODO doc/README.* doc/*.txt + + prepgamesdirs +} |