diff options
4 files changed, 135 insertions, 1 deletions
diff --git a/games-strategy/scorched3d/ChangeLog b/games-strategy/scorched3d/ChangeLog index 2e50ed212f8d..3a06deb5fd9f 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.38 2006/11/15 11:08:05 nyhm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/scorched3d/ChangeLog,v 1.39 2006/11/18 19:34:18 nyhm Exp $ + +*scorched3d-40.1d (18 Nov 2006) + + 18 Nov 2006; Tristan Heaven <nyhm@gentoo.org> + +files/scorched3d-40.1d-freealut.patch, +scorched3d-40.1d.ebuild: + Version bump *scorched3d-40.1c (15 Nov 2006) diff --git a/games-strategy/scorched3d/files/digest-scorched3d-40.1d b/games-strategy/scorched3d/files/digest-scorched3d-40.1d new file mode 100644 index 000000000000..4419c5246722 --- /dev/null +++ b/games-strategy/scorched3d/files/digest-scorched3d-40.1d @@ -0,0 +1,3 @@ +MD5 263d2c1be168860d783426c4d6c7060c Scorched3D-40.1d-src.tar.gz 55701460 +RMD160 0585295e1bc32b80329be7da2203b3dfc549f95f Scorched3D-40.1d-src.tar.gz 55701460 +SHA256 76fc3eb70923551e978d3f35801d5731402c70c7c992063fafe403f0c6334252 Scorched3D-40.1d-src.tar.gz 55701460 diff --git a/games-strategy/scorched3d/files/scorched3d-40.1d-freealut.patch b/games-strategy/scorched3d/files/scorched3d-40.1d-freealut.patch new file mode 100644 index 000000000000..19be920baba8 --- /dev/null +++ b/games-strategy/scorched3d/files/scorched3d-40.1d-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.1d.ebuild b/games-strategy/scorched3d/scorched3d-40.1d.ebuild new file mode 100644 index 000000000000..19bcad569d6f --- /dev/null +++ b/games-strategy/scorched3d/scorched3d-40.1d.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.1d.ebuild,v 1.1 2006/11/18 19:34:18 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 +} |