diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-19 00:09:00 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-19 00:09:00 +0000 |
commit | d901ccadc6dfde0ef22aeeb995eb9806e87da6f4 (patch) | |
tree | 4b460896b7c51d14dae39ca02edf09b7ad251bd9 /games-fps/duke3d | |
parent | moved from net-firewall (diff) | |
download | gentoo-2-d901ccadc6dfde0ef22aeeb995eb9806e87da6f4.tar.gz gentoo-2-d901ccadc6dfde0ef22aeeb995eb9806e87da6f4.tar.bz2 gentoo-2-d901ccadc6dfde0ef22aeeb995eb9806e87da6f4.zip |
allow people to load their saved games #28151
Diffstat (limited to 'games-fps/duke3d')
-rw-r--r-- | games-fps/duke3d/ChangeLog | 8 | ||||
-rw-r--r-- | games-fps/duke3d/duke3d-20030817-r1.ebuild | 97 | ||||
-rw-r--r-- | games-fps/duke3d/files/digest-duke3d-20030817-r1 | 1 | ||||
-rw-r--r-- | games-fps/duke3d/files/network.cfg | 15 |
4 files changed, 120 insertions, 1 deletions
diff --git a/games-fps/duke3d/ChangeLog b/games-fps/duke3d/ChangeLog index 7ec2b3eaea0f..9013e2ef305d 100644 --- a/games-fps/duke3d/ChangeLog +++ b/games-fps/duke3d/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-fps/duke3d # Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/ChangeLog,v 1.3 2003/09/18 22:14:15 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/ChangeLog,v 1.4 2003/09/19 00:09:00 vapier Exp $ + +*duke3d-20030817-r1 (18 Sep 2003) + + 18 Sep 2003; Mike Frysinger <vapier@gentoo.org> : + Disabled physfs since for some reason it can't read saved games #28151. + Also add a sample network.cfg file. *duke3d-20030817 (17 Aug 2003) diff --git a/games-fps/duke3d/duke3d-20030817-r1.ebuild b/games-fps/duke3d/duke3d-20030817-r1.ebuild new file mode 100644 index 000000000000..ea33ffba3803 --- /dev/null +++ b/games-fps/duke3d/duke3d-20030817-r1.ebuild @@ -0,0 +1,97 @@ +# 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-r1.ebuild,v 1.1 2003/09/19 00:09:00 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 + media-sound/timidity++ + media-sound/timidity-eawpatches + 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 +# -e "/^usephysfs := /s:=.*:= `use_ft nophysfs`:" \ + sed -i \ + -e "/^useperl := /s:=.*:= `use_tf perl`:" \ + -e "/^useopengl := /s:=.*:= `use_tf opengl`:" \ + -e "/^usephysfs := /s:=.*:= false:" \ + 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::' 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 "buildengine failed" + cd .. + emake OPTIMIZE="${CFLAGS}" || die "duke3d 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 + 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/digest-duke3d-20030817-r1 b/games-fps/duke3d/files/digest-duke3d-20030817-r1 new file mode 100644 index 000000000000..a590488d5228 --- /dev/null +++ b/games-fps/duke3d/files/digest-duke3d-20030817-r1 @@ -0,0 +1 @@ +MD5 d59aad294927793c6937315844d276e7 duke3d-20030817.tbz2 1497380 diff --git a/games-fps/duke3d/files/network.cfg b/games-fps/duke3d/files/network.cfg new file mode 100644 index 000000000000..46db8b3119fb --- /dev/null +++ b/games-fps/duke3d/files/network.cfg @@ -0,0 +1,15 @@ +# lifted from happypenguin.org + +INTERFACE [your ip address] + +# only peer appears to work [SERVER or CLIENT or PEER] +MODE peer + +# create an allow line for everyone who will connect +ALLOW [another player's ip address] +ALLOW [another player's ip address] +ALLOW [another player's ip address] +ALLOW [another player's ip address] + +# try to find [number] of players and start the game +BROADCAST [number] |