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 | c22ea1f9962983b3583d00085024413d77102212 (patch) | |
tree | acd80fa59d92f27b0609b3d58893ef500cd09925 /games-fps/duke3d | |
parent | New version 'n cleanup (diff) | |
download | gentoo-2-c22ea1f9962983b3583d00085024413d77102212.tar.gz gentoo-2-c22ea1f9962983b3583d00085024413d77102212.tar.bz2 gentoo-2-c22ea1f9962983b3583d00085024413d77102212.zip |
games-fps uNF uNF uNF
Diffstat (limited to 'games-fps/duke3d')
-rw-r--r-- | games-fps/duke3d/ChangeLog | 15 | ||||
-rw-r--r-- | games-fps/duke3d/Manifest | 6 | ||||
-rw-r--r-- | games-fps/duke3d/duke3d-20030817.ebuild | 90 | ||||
-rw-r--r-- | games-fps/duke3d/files/20030817-buildengine-makefile-cflags.patch | 13 | ||||
-rw-r--r-- | games-fps/duke3d/files/20030817-duke3d-makefile-opts.patch | 33 | ||||
-rw-r--r-- | games-fps/duke3d/files/digest-duke3d-20030817 | 1 | ||||
-rw-r--r-- | games-fps/duke3d/files/duke3d | 3 |
7 files changed, 161 insertions, 0 deletions
diff --git a/games-fps/duke3d/ChangeLog b/games-fps/duke3d/ChangeLog new file mode 100644 index 000000000000..5fa2074d65fb --- /dev/null +++ b/games-fps/duke3d/ChangeLog @@ -0,0 +1,15 @@ +# ChangeLog for app-games/duke3d +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/ChangeLog,v 1.1 2003/09/09 18:10:14 vapier Exp $ + + 25 Aug 2003; Michael Sterrett <msterret@gentoo.org> duke3d-20030817.ebuild: + added flag-o-matic; DEPEND on sed >= 4; filter -O3 down to -O2 for bug 26968; + add a couple of error messages + + 18 Aug 2003; Chris Gianelloni <wolf31o2@gentoo.org> duke3d-20030817.ebuild: + Fixing dependency. Closing bug #26855 + +*duke3d-20030817 (17 Aug 2003) + + 17 Aug 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by me. diff --git a/games-fps/duke3d/Manifest b/games-fps/duke3d/Manifest new file mode 100644 index 000000000000..944697e20e28 --- /dev/null +++ b/games-fps/duke3d/Manifest @@ -0,0 +1,6 @@ +MD5 7bdfff683ff08ba26a77a76a4e9b0751 ChangeLog 655 +MD5 1a647681a0e06c3fbd2c65a2d6f70d3a duke3d-20030817.ebuild 2346 +MD5 398b83b9fe28ae263170cb42bb2fff11 files/20030817-buildengine-makefile-cflags.patch 507 +MD5 7c4ac6336d128a410fc4fb603ad8b8c7 files/20030817-duke3d-makefile-opts.patch 864 +MD5 73621a8c90765f4722208283a01319f7 files/digest-duke3d-20030817 66 +MD5 b31ef5149ad5b5e9f0ea1d64d6cf47fb files/duke3d 45 diff --git a/games-fps/duke3d/duke3d-20030817.ebuild b/games-fps/duke3d/duke3d-20030817.ebuild new file mode 100644 index 000000000000..f6c60558254f --- /dev/null +++ b/games-fps/duke3d/duke3d-20030817.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/duke3d-20030817.ebuild,v 1.1 2003/09/09 18:10:14 vapier Exp $ + +ECVS_PASS="anonymous" +ECVS_SERVER="icculus.org:/cvs/cvsroot" +ECVS_MODULE="duke3d" +inherit flag-o-matic cvs games + +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" +IUSE="perl opengl nophysfs" + +DEPEND="virtual/x11 + >=sys-apps/sed-4 + media-libs/libsdl + media-libs/sdl-mixer + opengl? ( virtual/opengl ) + !nophysfs? ( dev-games/physfs )" + +S=${WORKDIR}/${ECVS_MODULE} + +use_tf() { [ `use ${1}` ] && echo true || echo false; } +use_ft() { [ `use ${1}` ] && echo false || echo true; } + +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:=.*:= `use_ft nophysfs`:" \ + Makefile + [ `use x86` ] && sed -i 's:^#USE_ASM:USE_ASM:' Makefile + epatch ${FILESDIR}/${PV}-buildengine-makefile-cflags.patch + sed -i 's:/usr/lib/perl5/i386-linux/CORE/libperl.a:-lperl:' Makefile + + # configure duke3d + cd ${S}/source + epatch ${FILESDIR}/${PV}-duke3d-makefile-opts.patch + [ `use x86` ] && sed -i '/^#use_asm/s:#::' Makefile + [ `use opengl` ] && sed -i '/^#use_opengl/s:#::' Makefile + [ `use nophysfs` ] || sed -i '/^#use_physfs/s:#::' Makefile +} + +src_compile() { + # -O3 fails on athlon with gcc 3.2.3, maybe others. + replace-flags "-O3" "-O2" + cd source/buildengine + emake OPTFLAGS="${CFLAGS}" || die "emake failed" + cd .. + emake OPTIMIZE="${CFLAGS}" || die "emake failed" +} + +src_install() { + dogamesbin ${FILESDIR}/duke3d + dosed "s:GENTOO_DIR:${GAMES_DATADIR}/${PN}:" ${GAMES_BINDIR}/duke3d + newgamesbin source/duke3d duke3d.bin + + dodoc readme.txt + + cd testdata + insinto ${GAMES_DATADIR}/${PN} + newins defs.con DEFS.CON + newins game.con GAME.CON + newins user.con USER.CON + + 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 new file mode 100644 index 000000000000..b8a8434bf1a6 --- /dev/null +++ b/games-fps/duke3d/files/20030817-buildengine-makefile-cflags.patch @@ -0,0 +1,13 @@ +--- 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-duke3d-makefile-opts.patch b/games-fps/duke3d/files/20030817-duke3d-makefile-opts.patch new file mode 100644 index 000000000000..6f961a11eb27 --- /dev/null +++ b/games-fps/duke3d/files/20030817-duke3d-makefile-opts.patch @@ -0,0 +1,33 @@ +--- 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 b/games-fps/duke3d/files/digest-duke3d-20030817 new file mode 100644 index 000000000000..a590488d5228 --- /dev/null +++ b/games-fps/duke3d/files/digest-duke3d-20030817 @@ -0,0 +1 @@ +MD5 d59aad294927793c6937315844d276e7 duke3d-20030817.tbz2 1497380 diff --git a/games-fps/duke3d/files/duke3d b/games-fps/duke3d/files/duke3d new file mode 100644 index 000000000000..6845e3e01216 --- /dev/null +++ b/games-fps/duke3d/files/duke3d @@ -0,0 +1,3 @@ +#!/bin/sh +cd GENTOO_DIR +exec duke3d.bin "$@" |