diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-10 05:27:31 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-10 05:27:31 +0000 |
commit | ab4f2946553cbc625cd82c853072cb36467fe40e (patch) | |
tree | ce4c3749e9e4fb10f2366b302c0ed63113ba1041 /games-strategy/scorched3d | |
parent | minor version update. resolves bug 27641 (diff) | |
download | historical-ab4f2946553cbc625cd82c853072cb36467fe40e.tar.gz historical-ab4f2946553cbc625cd82c853072cb36467fe40e.tar.bz2 historical-ab4f2946553cbc625cd82c853072cb36467fe40e.zip |
mmm strategy games
Diffstat (limited to 'games-strategy/scorched3d')
-rw-r--r-- | games-strategy/scorched3d/ChangeLog | 12 | ||||
-rw-r--r-- | games-strategy/scorched3d/Manifest | 4 | ||||
-rw-r--r-- | games-strategy/scorched3d/files/35-gcc3.patch | 24 | ||||
-rw-r--r-- | games-strategy/scorched3d/files/digest-scorched3d-35 | 1 | ||||
-rw-r--r-- | games-strategy/scorched3d/scorched3d-35.ebuild | 50 |
5 files changed, 91 insertions, 0 deletions
diff --git a/games-strategy/scorched3d/ChangeLog b/games-strategy/scorched3d/ChangeLog new file mode 100644 index 000000000000..0a855e7a31dd --- /dev/null +++ b/games-strategy/scorched3d/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-games/scorched3d +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/scorched3d/ChangeLog,v 1.1 2003/09/10 05:27:31 vapier Exp $ + +*scorched3d-35 (06 Aug 2003) + + 06 Aug 2003; Mike Frysinger <vapier@gentoo.org> : + Add patch to compile on 3.3 + + 06 Aug 2003; Michael Sterrett <msterret@gentoo.org> scorched3d-35.ebuild: + initial commit (bug 25846) + diff --git a/games-strategy/scorched3d/Manifest b/games-strategy/scorched3d/Manifest new file mode 100644 index 000000000000..69277d753793 --- /dev/null +++ b/games-strategy/scorched3d/Manifest @@ -0,0 +1,4 @@ +MD5 79dd83cf72c04762c0db8fac7c8712b0 files/35-gcc3.patch 1131 +MD5 56dd0f8a5f1c10a9774a30fa2973a15d files/digest-scorched3d-35 71 +MD5 da3aa9d6c3e8372c764cf99907cbe2c8 ChangeLog 441 +MD5 f3ffeafa1a5c1544a95086159cae57d3 scorched3d-35.ebuild 1360 diff --git a/games-strategy/scorched3d/files/35-gcc3.patch b/games-strategy/scorched3d/files/35-gcc3.patch new file mode 100644 index 000000000000..81ff4bea5027 --- /dev/null +++ b/games-strategy/scorched3d/files/35-gcc3.patch @@ -0,0 +1,24 @@ +diff -ur -x '*.o' scorched-orig/src/common/SoundStore.h scorched/src/common/SoundStore.h +--- scorched-orig/src/common/SoundStore.h 2003-07-30 17:41:28.000000000 -0400 ++++ scorched/src/common/SoundStore.h 2003-08-06 20:41:23.056115008 -0400 +@@ -29,7 +29,7 @@ + #include <string> + + #define CACHE_SOUND(var, filename) \ +- static SoundBuffer* ##var = SoundStore::instance()->fetchOrCreateBuffer(##filename); ++ static SoundBuffer* var = SoundStore::instance()->fetchOrCreateBuffer(filename); + + class SoundStore + { +diff -ur -x '*.o' scorched-orig/src/engine/ActionMeta.h scorched/src/engine/ActionMeta.h +--- scorched-orig/src/engine/ActionMeta.h 2003-07-30 17:41:29.000000000 -0400 ++++ scorched/src/engine/ActionMeta.h 2003-08-06 20:36:57.001561448 -0400 +@@ -29,7 +29,7 @@ + + #define REGISTER_ACTION_HEADER(x) \ + virtual const char *getActionName() { return #x ; } \ +- ##x *getActionCopy() { return new x ; } \ ++ x *getActionCopy() { return new x ; } \ + virtual bool getReferenced() { return true; } + #define REGISTER_ACTION_SOURCE(x) \ + struct META_##x { META_##x() { ActionMetaRegistration::addMap(#x , new x ); } }; \ diff --git a/games-strategy/scorched3d/files/digest-scorched3d-35 b/games-strategy/scorched3d/files/digest-scorched3d-35 new file mode 100644 index 000000000000..cec5c548a432 --- /dev/null +++ b/games-strategy/scorched3d/files/digest-scorched3d-35 @@ -0,0 +1 @@ +MD5 c43507e805b482cc0a37b8cd37a3a26b Scorched3D-35-src.tar.gz 10798751 diff --git a/games-strategy/scorched3d/scorched3d-35.ebuild b/games-strategy/scorched3d/scorched3d-35.ebuild new file mode 100644 index 000000000000..d2b8c4818514 --- /dev/null +++ b/games-strategy/scorched3d/scorched3d-35.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/scorched3d/scorched3d-35.ebuild,v 1.1 2003/09/10 05:27:31 vapier Exp $ + +inherit games gcc eutils + +DESCRIPTION="Multi-player tank battle in 3D (OpenGL)" +HOMEPAGE="http://www.scorched3d.co.uk/" +SRC_URI="mirror://sourceforge/scorched3d/Scorched3D-${PV}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" + +RDEPEND=">=media-libs/libsdl-1.0.1 + media-libs/sdl-net + media-libs/sdl-mixer + >=x11-libs/wxGTK-2.3.4 + dev-games/ode + >=sys-libs/zlib-1.1.4" +DEPEND="${RDEPEND} + >=sys-apps/sed-4" + +S=${WORKDIR}/scorched + +src_unpack() { + unpack ${A} + cd ${S} + [ "`gcc-version`" == "3.3" ] && epatch ${FILESDIR}/${PV}-gcc3.patch +} + +src_compile() { + # yeah, I know runningi it twice, but egamesconf has a lot more stuff. + ./autogen.sh + egamesconf --exec_prefix=${GAMES_PREFIX} --datadir=${GAMES_DATADIR}/${PN} \ + || die + + sed -i \ + -e "s:/usr/games/scorched3d/:${GAMES_DATADIR}/${PN}/:" \ + src/scorched/Makefile || die "sed src/scorched/Makefile failed" + emake || die "emake failed" +} + +src_install() { + dogamesbin src/scorched/scorched3d + dodoc AUTHORS README TODO documentation/*.txt + dodir ${GAMES_DATADIR}/${PN} || die "dodir failed" + cp -R data/ ${D}${GAMES_DATADIR}/${PN} || die "cp failed" + prepgamesdirs +} |