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 | ad69522f5e6b57d5350a46ebda16dbe091d0e4b6 (patch) | |
tree | 1580e46b57d69a004ab7bafb3f19590605890684 /games-fps/nprquake-sdl | |
parent | New version 'n cleanup (diff) | |
download | historical-ad69522f5e6b57d5350a46ebda16dbe091d0e4b6.tar.gz historical-ad69522f5e6b57d5350a46ebda16dbe091d0e4b6.tar.bz2 historical-ad69522f5e6b57d5350a46ebda16dbe091d0e4b6.zip |
games-fps uNF uNF uNF
Diffstat (limited to 'games-fps/nprquake-sdl')
-rw-r--r-- | games-fps/nprquake-sdl/ChangeLog | 8 | ||||
-rw-r--r-- | games-fps/nprquake-sdl/Manifest | 4 | ||||
-rw-r--r-- | games-fps/nprquake-sdl/files/1-gentoo.patch | 42 | ||||
-rw-r--r-- | games-fps/nprquake-sdl/files/digest-nprquake-sdl-1 | 1 | ||||
-rw-r--r-- | games-fps/nprquake-sdl/nprquake-sdl-1.ebuild | 40 |
5 files changed, 95 insertions, 0 deletions
diff --git a/games-fps/nprquake-sdl/ChangeLog b/games-fps/nprquake-sdl/ChangeLog new file mode 100644 index 000000000000..364f3d46e956 --- /dev/null +++ b/games-fps/nprquake-sdl/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-games/nprquake-sdl +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/nprquake-sdl/ChangeLog,v 1.1 2003/09/09 18:10:14 vapier Exp $ + +*nprquake-sdl-1 (17 Jul 2003) + + 17 Jul 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by me. diff --git a/games-fps/nprquake-sdl/Manifest b/games-fps/nprquake-sdl/Manifest new file mode 100644 index 000000000000..3551e96e5a2d --- /dev/null +++ b/games-fps/nprquake-sdl/Manifest @@ -0,0 +1,4 @@ +MD5 2425d4475c7622cccf1be1576e8e43a7 files/1-gentoo.patch 1847 +MD5 5288c4fce9f6009f1859550578c8728d files/digest-nprquake-sdl-1 65 +MD5 2f7ef2b33f579d4c858417fb45ac69cb ChangeLog 352 +MD5 f0bf8d46681126da7b1a0439edda7214 nprquake-sdl-1.ebuild 1110 diff --git a/games-fps/nprquake-sdl/files/1-gentoo.patch b/games-fps/nprquake-sdl/files/1-gentoo.patch new file mode 100644 index 000000000000..6cf215f946f5 --- /dev/null +++ b/games-fps/nprquake-sdl/files/1-gentoo.patch @@ -0,0 +1,42 @@ +diff -ur NPRQuake-SDL-orig/Makefile NPRQuake-SDL/Makefile +--- NPRQuake-SDL-orig/Makefile 2003-07-16 23:58:48.000000000 -0400 ++++ NPRQuake-SDL/Makefile 2003-07-16 23:58:59.000000000 -0400 +@@ -1,4 +1,4 @@ +-RELEASE_CFLAGS=-Dstricmp=strcasecmp -mcpu=i586 -march=i586 -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations ++RELEASE_CFLAGS=-Dstricmp=strcasecmp GENTOO_CFLAGS -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations + + DEBUG_CFLAGS=-Dstricmp=strcasecmp -g + +diff -ur NPRQuake-SDL-orig/NPRQuakeSrc/Makefile NPRQuake-SDL/NPRQuakeSrc/Makefile +--- NPRQuake-SDL-orig/NPRQuakeSrc/Makefile 2003-07-16 23:58:48.000000000 -0400 ++++ NPRQuake-SDL/NPRQuakeSrc/Makefile 2003-07-16 23:59:38.000000000 -0400 +@@ -29,7 +29,7 @@ + + CC=gcc + +-RELEASE_CFLAGS=$(BASE_CFLAGS) -mcpu=i586 -march=i586 -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations ++RELEASE_CFLAGS=$(BASE_CFLAGS) GENTOO_CFLAGS -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations + DEBUG_CFLAGS=$(BASE_CFLAGS) -g + LDFLAGS=-lm + CFLAGS=$(RELEASE_CFLAGS) +diff -ur NPRQuake-SDL-orig/NPRQuakeSrc/gl_rmisc.c NPRQuake-SDL/NPRQuakeSrc/gl_rmisc.c +--- NPRQuake-SDL-orig/NPRQuakeSrc/gl_rmisc.c 2003-07-16 23:58:49.000000000 -0400 ++++ NPRQuake-SDL/NPRQuakeSrc/gl_rmisc.c 2003-07-17 00:00:39.000000000 -0400 +@@ -563,13 +563,15 @@ + + // this should be as big as the number of functions we pull out. + void * tf[25]; ++ char * libz0r[1024]; + + memset( tf, 0, sizeof( void * ) * 25 ); + + #ifdef _WIN32 //JG + hnewlib = LoadLibrary( lib ); + #else +- hnewlib = dlopen( lib, RTLD_LAZY | RTLD_GLOBAL ); ++ sprintf(libz0r, GENTOO_LIBDIR "/%s", lib); ++ hnewlib = dlopen( libz0r, RTLD_LAZY | RTLD_GLOBAL ); + #endif + + if( hnewlib == NULL ) { +Only in NPRQuake-SDL/NPRQuakeSrc: gl_rmisc.c.orig diff --git a/games-fps/nprquake-sdl/files/digest-nprquake-sdl-1 b/games-fps/nprquake-sdl/files/digest-nprquake-sdl-1 new file mode 100644 index 000000000000..92143820f8c2 --- /dev/null +++ b/games-fps/nprquake-sdl/files/digest-nprquake-sdl-1 @@ -0,0 +1 @@ +MD5 bd2a2b390d8f3ca40a104f4cf2e4b2ec NPRQuake-SDL.tar.gz 3393497 diff --git a/games-fps/nprquake-sdl/nprquake-sdl-1.ebuild b/games-fps/nprquake-sdl/nprquake-sdl-1.ebuild new file mode 100644 index 000000000000..d5bf7f6c39ac --- /dev/null +++ b/games-fps/nprquake-sdl/nprquake-sdl-1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/nprquake-sdl/nprquake-sdl-1.ebuild,v 1.1 2003/09/09 18:10:14 vapier Exp $ + +inherit games eutils + +DESCRIPTION="quake1 utilizing a hand drawn engine" +HOMEPAGE="http://www.cs.wisc.edu/graphics/Gallery/NPRQuake/ http://www.tempestgames.com/ryan/" +SRC_URI="http://www.tempestgames.com/ryan/downloads/NPRQuake-SDL.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" + +DEPEND="media-libs/libsdl" + +S=${WORKDIR}/NPRQuake-SDL + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-gentoo.patch + sed -i "s:GENTOO_CFLAGS:${CFLAGS}:" Makefile NPRQuakeSrc/Makefile + echo "#define GENTOO_LIBDIR \"${GAMES_LIBDIR}/${PN}\"" >> NPRQuakeSrc/quakedef.h +} + +src_compile() { + make release || die +} + +src_install() { + newgamesbin NPRQuakeSrc/release*/bin/* nprquake-sdl + dodir ${GAMES_LIBDIR}/${PN} + cp -r build/* ${D}/${GAMES_LIBDIR}/${PN}/ + cd ${GAMES_LIBDIR}/${PN} + mv dr_default.so default.so + ln -s sketch.so dr_default.so + dodoc README CHANGELOG + prepgamesdirs +} |