summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-10-31 05:12:45 +0000
committerMike Frysinger <vapier@gentoo.org>2004-10-31 05:12:45 +0000
commit7ec16cd469f32bcc264ecd725c1bd15c165aef30 (patch)
tree16b9d2844da407f9181ae82f19eeb3f934964391 /games-fps/duke3d
parentold (diff)
downloadhistorical-7ec16cd469f32bcc264ecd725c1bd15c165aef30.tar.gz
historical-7ec16cd469f32bcc264ecd725c1bd15c165aef30.tar.bz2
historical-7ec16cd469f32bcc264ecd725c1bd15c165aef30.zip
old
Diffstat (limited to 'games-fps/duke3d')
-rw-r--r--games-fps/duke3d/duke3d-20030817-r1.ebuild110
-rw-r--r--games-fps/duke3d/files/20030817-buildengine-makefile-cflags.patch13
-rw-r--r--games-fps/duke3d/files/20030817-credits.patch38
-rw-r--r--games-fps/duke3d/files/20030817-duke3d-makefile-opts.patch33
-rw-r--r--games-fps/duke3d/files/digest-duke3d-20030817-r11
5 files changed, 0 insertions, 195 deletions
diff --git a/games-fps/duke3d/duke3d-20030817-r1.ebuild b/games-fps/duke3d/duke3d-20030817-r1.ebuild
deleted file mode 100644
index 3d3de736ffe5..000000000000
--- a/games-fps/duke3d/duke3d-20030817-r1.ebuild
+++ /dev/null
@@ -1,110 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/duke3d-20030817-r1.ebuild,v 1.17 2004/07/14 14:43:54 agriffis Exp $
-
-ECVS_PASS="anonymous"
-ECVS_SERVER="icculus.org:/cvs/cvsroot"
-ECVS_MODULE="duke3d"
-inherit eutils flag-o-matic games
-#inherit cvs
-
-DESCRIPTION="port of the original DukeNukem 3D"
-HOMEPAGE="http://icculus.org/projects/duke3d/"
-SRC_URI="mirror://gentoo/${P}.tbz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ppc"
-IUSE="opengl" # nophysfs"
-
-RDEPEND="virtual/x11
- media-libs/libsdl
- media-libs/sdl-mixer
- media-sound/timidity++
- media-sound/timidity-eawpatches
- opengl? ( virtual/opengl )"
-DEPEND="${RDEPEND}
- x86? ( dev-lang/nasm )
- >=sys-apps/sed-4"
-
-S="${WORKDIR}/${ECVS_MODULE}"
-
-use_tf() { use ${1} > /dev/null && echo "true" || echo "false"; }
-
-src_unpack() {
- local fromcvs=0
- if [ ${fromcvs} -eq 1 ] ; then
- cvs_src_unpack
- cd duke3d/source
- ECVS_MODULE="buildengine"
- cvs_src_unpack
- else
- unpack ${A}
- fi
-
- # configure buildengine
- cd ${S}/source/buildengine
- sed -i \
- -e "/^useperl := / s:=.*:= $(use_tf perl):" \
- -e "/^useopengl := / s:=.*:= $(use_tf opengl):" \
- -e "/^usephysfs := / s:=.*:= false:" Makefile \
- || die "sed Makefile failed"
- if use x86 ; then
- sed -i \
- -e 's:^#USE_ASM:USE_ASM:' Makefile \
- || die "sed Makefile failed (x86)"
- fi
- epatch "${FILESDIR}/${PV}-buildengine-makefile-cflags.patch"
- sed -i \
- -e 's:/usr/lib/perl5/i386-linux/CORE/libperl.a::' Makefile \
- || die "sed Makefile failed (libperl)"
-
- # configure duke3d
- cd ${S}/source
- epatch "${FILESDIR}/${PV}-credits.patch"
- epatch "${FILESDIR}/${PV}-duke3d-makefile-opts.patch"
- if use x86 ; then
- sed -i \
- -e '/^#use_asm/s:#::' Makefile \
- || die "sed Makefile failed"
- fi
- if use opengl ; then
- sed -i \
- -e '/^#use_opengl/s:#::' Makefile \
- || die "sed Makefile failed"
- fi
-}
-
-src_compile() {
- # -O3 fails on athlon with gcc 3.2.3, maybe others.
- replace-flags "-O3" "-O2"
- cd source/buildengine
- emake OPTFLAGS="${CFLAGS}" || die "buildengine failed"
- cd ..
- emake OPTIMIZE="${CFLAGS}" || die "duke3d failed"
-}
-
-src_install() {
- games_make_wrapper duke3d "${GAMES_BINDIR}/duke3d.bin" "${GAMES_DATADIR}/${PN}"
- newgamesbin source/duke3d duke3d.bin || die "newgamesbin failed"
-
- dodoc readme.txt
-
- cd testdata
- insinto "${GAMES_DATADIR}/${PN}"
- newins defs.con DEFS.CON
- newins game.con GAME.CON
- newins user.con USER.CON
- doins "${FILESDIR}/network.cfg"
- insinto "${GAMES_SYSCONFDIR}"
- doins "${FILESDIR}/duke3d.cfg"
- dosym "${GAMES_SYSCONFDIR}/duke3d.cfg" "${GAMES_DATADIR}/${PN}/DUKE3D.CFG"
-
- prepgamesdirs
-}
-
-pkg_postinst() {
- games_pkg_postinst
- einfo "Just put the data files in ${GAMES_DATADIR}/${PN}"
- einfo "before playing !"
-}
diff --git a/games-fps/duke3d/files/20030817-buildengine-makefile-cflags.patch b/games-fps/duke3d/files/20030817-buildengine-makefile-cflags.patch
deleted file mode 100644
index b8a8434bf1a6..000000000000
--- a/games-fps/duke3d/files/20030817-buildengine-makefile-cflags.patch
+++ /dev/null
@@ -1,13 +0,0 @@
---- Makefile.orig 2003-08-17 17:03:30.643555488 -0400
-+++ Makefile 2003-08-17 17:03:50.415549688 -0400
-@@ -195,8 +195,8 @@
- ENGINEDIR = .
- ASMFLAGS = -f $(ASMOBJFMT) $(ASMDEFS)
- LINKER = gcc
--CFLAGS += $(USE_ASM) -funsigned-char -O2 -DPLATFORM_UNIX -g -Wall $(SDL_CFLAGS) -fno-omit-frame-pointer
--LDFLAGS += -g $(SDL_LDFLAGS)
-+CFLAGS += $(USE_ASM) $(OPTFLAGS) -funsigned-char -DPLATFORM_UNIX -Wall $(SDL_CFLAGS) -fno-omit-frame-pointer
-+LDFLAGS += $(SDL_LDFLAGS)
-
- # Rules for turning source files into .o files
- %.o: %.c
diff --git a/games-fps/duke3d/files/20030817-credits.patch b/games-fps/duke3d/files/20030817-credits.patch
deleted file mode 100644
index 5aea61558395..000000000000
--- a/games-fps/duke3d/files/20030817-credits.patch
+++ /dev/null
@@ -1,38 +0,0 @@
---- menues.c 2003-08-17 22:16:10.000000000 +0200
-+++ menues.c 2004-03-29 01:59:28.000000000 +0200
-@@ -1747,9 +1747,10 @@
- case 996:
- case 997:
-
--// rotatesprite(c<<16,200<<15,65536L,0,MENUSCREEN,16,0,10+64,0,0,xdim-1,ydim-1);
--// rotatesprite(c<<16,19<<16,65536L,0,MENUBAR,16,0,10,0,0,xdim-1,ydim-1);
--// menutext(c,24,0,0,"CREDITS");
-+ c = (320>>1);
-+ rotatesprite(c<<16,200<<15,65536L,0,MENUSCREEN,16,0,10+64,0,0,xdim-1,ydim-1);
-+ rotatesprite(c<<16,19<<16,65536L,0,MENUBAR,16,0,10,0,0,xdim-1,ydim-1);
-+ menutext(c,24,0,0,"CREDITS");
-
- if(KB_KeyPressed(sc_Escape)) { cmenu(0); break; }
-
-@@ -1926,6 +1927,21 @@
-
- menutext(c,67+16+16+16+16+16,SHX(-7),PHX(-7),"QUIT");
-
-+ gametext(c,67+16+16+16+16+16+16+16,"Duke Nukem 3D for "
-+#if defined PLATFORM_MACOSX
-+ "MacOS"
-+#elif defined PLATFORM_DOS
-+ "MS-Dos"
-+#elif defined PLATFORM_WIN32
-+ "Win32"
-+#elif defined PLATFORM_UNIX
-+ "Gentoo Linux"
-+#else
-+ "unknown"
-+#endif
-+ ,16,2+8+16);
-+ gametext(c,67+16+16+16+16+16+16+16+9,"build " __DATE__ " " __TIME__,16,2+8+16);
-+
- break;
- // CTW END - MODIFICATION
-
diff --git a/games-fps/duke3d/files/20030817-duke3d-makefile-opts.patch b/games-fps/duke3d/files/20030817-duke3d-makefile-opts.patch
deleted file mode 100644
index 6f961a11eb27..000000000000
--- a/games-fps/duke3d/files/20030817-duke3d-makefile-opts.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- Makefile.orig 2003-08-17 17:45:35.948650760 -0400
-+++ Makefile 2003-08-17 17:46:36.894385600 -0400
-@@ -4,6 +4,8 @@
- beos := false
- macosx := false
- #use_asm := true
-+#use_opengl := true
-+#use_physfs := true
-
- #-----------------------------------------------------------------------------#
- # If this makefile fails to detect Cygwin correctly, or you want to force
-@@ -80,6 +81,10 @@
- buildengine/pragmas.o \
- buildengine/unix_compat.o
-
-+ifeq ($(strip $(use_opengl)),true)
-+ BUILDOBJS += buildengine/buildgl.o
-+endif
-+
- ifeq ($(strip $(use_asm)),true)
- BUILDOBJS += buildengine/a_gnu.o buildengine/a_nasm.o
- else
-@@ -106,6 +106,10 @@
-
- LDLIBS = $(SDL_LDFLAGS) -lSDL -lSDL_mixer $(EXTRALDFLAGS)
-
-+ifeq ($(strip $(use_physfs)),true)
-+ LDLIBS += -lphysfs
-+endif
-+
- # !!! FIXME: Do we even need this? It doesn't fly on MacOS X. --ryan.
- #LDLIBS += -Wl,-E
-
diff --git a/games-fps/duke3d/files/digest-duke3d-20030817-r1 b/games-fps/duke3d/files/digest-duke3d-20030817-r1
deleted file mode 100644
index a590488d5228..000000000000
--- a/games-fps/duke3d/files/digest-duke3d-20030817-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 d59aad294927793c6937315844d276e7 duke3d-20030817.tbz2 1497380