summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2006-10-29 23:36:24 +0000
committerTristan Heaven <nyhm@gentoo.org>2006-10-29 23:36:24 +0000
commit18e1ba924a28ecbe001095e419346ebacc18705e (patch)
treed14a5f1fc048b540c594d94e9c68b1def9a33f9f /games-strategy
parentFix autotools deps, bug #153339 (diff)
downloadgentoo-2-18e1ba924a28ecbe001095e419346ebacc18705e.tar.gz
gentoo-2-18e1ba924a28ecbe001095e419346ebacc18705e.tar.bz2
gentoo-2-18e1ba924a28ecbe001095e419346ebacc18705e.zip
Version bump
(Portage version: 2.1.2_rc1-r1)
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/scorched3d/ChangeLog8
-rw-r--r--games-strategy/scorched3d/files/digest-scorched3d-40.1b3
-rw-r--r--games-strategy/scorched3d/files/scorched3d-40.1b-freealut.patch70
-rw-r--r--games-strategy/scorched3d/scorched3d-40.1b.ebuild55
4 files changed, 135 insertions, 1 deletions
diff --git a/games-strategy/scorched3d/ChangeLog b/games-strategy/scorched3d/ChangeLog
index 16a3f9262352..45bd7371edc9 100644
--- a/games-strategy/scorched3d/ChangeLog
+++ b/games-strategy/scorched3d/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-strategy/scorched3d
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/scorched3d/ChangeLog,v 1.36 2006/10/17 15:26:29 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/scorched3d/ChangeLog,v 1.37 2006/10/29 23:36:24 nyhm Exp $
+
+*scorched3d-40.1b (29 Oct 2006)
+
+ 29 Oct 2006; Tristan Heaven <nyhm@gentoo.org>
+ +files/scorched3d-40.1b-freealut.patch, +scorched3d-40.1b.ebuild:
+ Version bump
17 Oct 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+files/scorched3d-40-gcc4.patch, scorched3d-40.ebuild:
diff --git a/games-strategy/scorched3d/files/digest-scorched3d-40.1b b/games-strategy/scorched3d/files/digest-scorched3d-40.1b
new file mode 100644
index 000000000000..5ae0ce00077e
--- /dev/null
+++ b/games-strategy/scorched3d/files/digest-scorched3d-40.1b
@@ -0,0 +1,3 @@
+MD5 bcf4a138149cc8070901e151027eb203 Scorched3D-40.1b-src.tar.gz 55686131
+RMD160 1d53f5228810d7d150836aea6a4971b8b067e8c8 Scorched3D-40.1b-src.tar.gz 55686131
+SHA256 3b3ccf8e35ea40a9afbfa80ef7c64bc02761e0e364f6aa301695827b223db93a Scorched3D-40.1b-src.tar.gz 55686131
diff --git a/games-strategy/scorched3d/files/scorched3d-40.1b-freealut.patch b/games-strategy/scorched3d/files/scorched3d-40.1b-freealut.patch
new file mode 100644
index 000000000000..19be920baba8
--- /dev/null
+++ b/games-strategy/scorched3d/files/scorched3d-40.1b-freealut.patch
@@ -0,0 +1,70 @@
+--- configure
++++ configure
+@@ -4010,6 +4010,7 @@
+
+ CFLAGS="$CFLAGS `$FREEALUT_CONFIG --cflags`"
+ CXXFLAGS="$CXXFLAGS `$FREEALUT_CONFIG --cflags`"
++ LIBS="$LIBS `$FREEALUT_CONFIG --libs`"
+
+ echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+
+--- src/sound/SoundBufferStaticWav.cpp
++++ src/sound/SoundBufferStaticWav.cpp
+@@ -57,44 +57,7 @@
+ SoundBuffer(fileName),
+ buffer_(0)
+ {
+- unsigned int error;
+-
+- // Create a buffer
+- alGetError();
+- alGenBuffers(1, &buffer_);
+- if ((error = alGetError()) != AL_NO_ERROR)
+- {
+- return;
+- }
+-
+- // Load WAV
+- void *data;
+- ALenum format;
+- ALsizei size;
+- ALsizei freq;
+- ALboolean loop;
+-
+-#ifdef __DARWIN__
+- alutLoadWAVFile((ALbyte*) fileName,&format,&data,&size,&freq);
+-#else
+- alutLoadWAVFile((ALbyte*) fileName,&format,&data,&size,&freq,&loop);
+-#endif
+-
+- if ((error = alGetError()) != AL_NO_ERROR)
+- {
+- return;
+- }
+-
+- // Load WAV into buffer
+- alBufferData(buffer_,format,data,size,freq);
+- if ((error = alGetError()) != AL_NO_ERROR)
+- {
+- return;
+- }
+-
+- // Delete WAV memory
+- alutUnloadWAV(format,data,size,freq);
+- if ((error = alGetError()) != AL_NO_ERROR)
++ if ((buffer_ = alutCreateBufferFromFile(fileName)) == AL_NONE)
+ {
+ return;
+ }
+
+--- src/sound/Sound.cpp
++++ src/sound/Sound.cpp
+@@ -152,6 +152,7 @@
+ totalSources_.push_back(source);
+ availableSources_.push_back(source);
+ }
++ alutInitWithoutContext(NULL, NULL);
+
+ init_ = true;
+ return init_;
diff --git a/games-strategy/scorched3d/scorched3d-40.1b.ebuild b/games-strategy/scorched3d/scorched3d-40.1b.ebuild
new file mode 100644
index 000000000000..74044460b637
--- /dev/null
+++ b/games-strategy/scorched3d/scorched3d-40.1b.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/scorched3d/scorched3d-40.1b.ebuild,v 1.1 2006/10/29 23:36:24 nyhm Exp $
+
+inherit eutils wxwidgets games
+
+DESCRIPTION="Multi-player tank battle in 3D (OpenGL)"
+HOMEPAGE="http://www.scorched3d.co.uk/"
+SRC_URI="mirror://sourceforge/${PN}/Scorched3D-${PV}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="mysql"
+
+DEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libogg
+ media-libs/libvorbis
+ media-libs/openal
+ media-libs/freealut
+ media-libs/libsdl
+ media-libs/sdl-net
+ >=x11-libs/wxGTK-2.6
+ >=media-libs/freetype-2
+ mysql? ( dev-db/mysql )"
+
+S=${WORKDIR}/scorched
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-freealut.patch
+}
+
+pkg_setup() {
+ games_pkg_setup
+ WX_GTK_VER="2.6" need-wxwidgets unicode
+}
+
+src_compile() {
+ egamesconf \
+ --disable-dependency-tracking \
+ --datadir="${GAMES_DATADIR}/${PN}" \
+ --with-docdir="/usr/share/doc/${PF}" \
+ --with-wx-config="${WX_CONFIG}" \
+ $(use_with mysql) \
+ || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ prepgamesdirs
+}