summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2006-11-13 14:17:04 +0000
committerTristan Heaven <nyhm@gentoo.org>2006-11-13 14:17:04 +0000
commitcd8c253297cdd587d3e5a208b2804d8eb9779e27 (patch)
tree9a155fdd1f16b9a694dca255e3293f7ada9c2d3f /games-sports
parent"Stable x86, bug #147570" (diff)
downloadgentoo-2-cd8c253297cdd587d3e5a208b2804d8eb9779e27.tar.gz
gentoo-2-cd8c253297cdd587d3e5a208b2804d8eb9779e27.tar.bz2
gentoo-2-cd8c253297cdd587d3e5a208b2804d8eb9779e27.zip
Version bump
(Portage version: 2.1.2_rc1-r6)
Diffstat (limited to 'games-sports')
-rw-r--r--games-sports/ultimatestunts/ChangeLog9
-rw-r--r--games-sports/ultimatestunts/files/digest-ultimatestunts-0.6.33
-rw-r--r--games-sports/ultimatestunts/files/ultimatestunts-0.6.3-freealut.patch56
-rw-r--r--games-sports/ultimatestunts/files/ultimatestunts-0.6.3-paths.patch35
-rw-r--r--games-sports/ultimatestunts/ultimatestunts-0.6.3.ebuild64
5 files changed, 166 insertions, 1 deletions
diff --git a/games-sports/ultimatestunts/ChangeLog b/games-sports/ultimatestunts/ChangeLog
index 0be82bde80ff..1437bc4e0ade 100644
--- a/games-sports/ultimatestunts/ChangeLog
+++ b/games-sports/ultimatestunts/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-sports/ultimatestunts
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-sports/ultimatestunts/ChangeLog,v 1.9 2006/10/26 19:12:27 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-sports/ultimatestunts/ChangeLog,v 1.10 2006/11/13 14:17:04 nyhm Exp $
+
+*ultimatestunts-0.6.3 (13 Nov 2006)
+
+ 13 Nov 2006; Tristan Heaven <nyhm@gentoo.org>
+ +files/ultimatestunts-0.6.3-freealut.patch,
+ +files/ultimatestunts-0.6.3-paths.patch, +ultimatestunts-0.6.3.ebuild:
+ Version bump
26 Oct 2006; Michael Sterrett <mr_bones_@gentoo.org>
ultimatestunts-0.6.2.ebuild:
diff --git a/games-sports/ultimatestunts/files/digest-ultimatestunts-0.6.3 b/games-sports/ultimatestunts/files/digest-ultimatestunts-0.6.3
new file mode 100644
index 000000000000..1a169152b7e3
--- /dev/null
+++ b/games-sports/ultimatestunts/files/digest-ultimatestunts-0.6.3
@@ -0,0 +1,3 @@
+MD5 4b20bf56049b5d36358f0c12e9991d52 ultimatestunts-srcdata-0631.tar.gz 13298201
+RMD160 7dbe0b7cfecb2c6ae3157e0164534407d9235463 ultimatestunts-srcdata-0631.tar.gz 13298201
+SHA256 132fa493d5322dff50a6b14c6e833fbf3535e575e4fd2e21cf0b3172763d84cb ultimatestunts-srcdata-0631.tar.gz 13298201
diff --git a/games-sports/ultimatestunts/files/ultimatestunts-0.6.3-freealut.patch b/games-sports/ultimatestunts/files/ultimatestunts-0.6.3-freealut.patch
new file mode 100644
index 000000000000..2ecc58f602b1
--- /dev/null
+++ b/games-sports/ultimatestunts/files/ultimatestunts-0.6.3-freealut.patch
@@ -0,0 +1,56 @@
+--- configure.ac
++++ configure.ac
+@@ -129,7 +129,7 @@
+ dnl Check openAL audio library (currently default)
+ dnl ------------------------
+ AC_CHECK_HEADER(AL/al.h, AC_DEFINE([OPENAL_HEADER], [], [OpenAL headers]))
+-AC_CHECK_LIB(openal, alGetError, soundlibs="-lopenal $soundlibs";AC_DEFINE([HAVE_LIBOPENAL], [], [OpenAL Lib]))
++AC_CHECK_LIB(openal, alGetError, soundlibs="-lopenal -lalut $soundlibs";AC_DEFINE([HAVE_LIBOPENAL], [], [OpenAL Lib]))
+
+ if test "x$soundlibs" = "x" ; then
+
+--- ultimatestunts/sndsample.cpp
++++ ultimatestunts/sndsample.cpp
+@@ -96,10 +96,7 @@
+ //data (and default values)
+ void *wave = NULL;
+ ALsizei
+- format = AL_FORMAT_MONO16,
+- size = 0,
+- bits = 0,
+- freq = 44100;
++ size = 0;
+
+ CString extension = realfile.mid(realfile.length() - 4);
+ extension.toLower();
+@@ -108,7 +105,7 @@
+ {
+ //the loading proc
+ ALboolean (*alutLoadVorbis)(ALuint, ALvoid *, ALint) =
+- (ALboolean (*)(ALuint, ALvoid *, ALint))alGetProcAddress((ALubyte *) VORBISFUNC);
++ (ALboolean (*)(ALuint, ALvoid *, ALint))alGetProcAddress(VORBISFUNC);
+
+ if(alutLoadVorbis == NULL)
+ {
+@@ -134,7 +131,7 @@
+ {
+ //the loading proc
+ ALboolean (*alutLoadMP3)(ALuint, ALvoid *, ALint) =
+- (ALboolean (*)(ALuint, ALvoid *, ALint))alGetProcAddress((ALubyte *) MP3FUNC);
++ (ALboolean (*)(ALuint, ALvoid *, ALint))alGetProcAddress(MP3FUNC);
+
+ if(alutLoadMP3 == NULL)
+ {
+@@ -158,9 +155,9 @@
+ }
+ else //default: load as wave file
+ {
+- alGenBuffers(1, &m_Buffer);
+- alutLoadWAV(realfile.c_str(), &wave, &format, &size, &bits, &freq);
+- alBufferData(m_Buffer, format, wave, size, freq);
++ m_Buffer = alutCreateBufferFromFile(realfile.c_str());
++ if(m_Buffer == AL_NONE)
++ printf("%s\n", alutGetErrorString(alutGetError()));
+ }
+
+ free(wave);
diff --git a/games-sports/ultimatestunts/files/ultimatestunts-0.6.3-paths.patch b/games-sports/ultimatestunts/files/ultimatestunts-0.6.3-paths.patch
new file mode 100644
index 000000000000..36a677db5f3c
--- /dev/null
+++ b/games-sports/ultimatestunts/files/ultimatestunts-0.6.3-paths.patch
@@ -0,0 +1,35 @@
+--- configure.ac
++++ configure.ac
+@@ -210,9 +210,9 @@
+ dnl ------------------
+ dnl The directory locations
+ dnl ------------------
+-usdatadir="${prefix}/share/ultimatestunts/"
++usdatadir="${datadir}/ultimatestunts/"
+
+-AC_DEFINE_UNQUOTED([PREFIXDIR], ["$prefix"], [Prefix dir])
++AC_DEFINE_UNQUOTED([PREFIXDIR], ["$sysconfdir"], [Prefix dir])
+
+ AC_SUBST(netlibs)
+ AC_SUBST(soundlibs)
+
+--- data/Makefile.am
++++ data/Makefile.am
+@@ -1,4 +1,4 @@
+-usdatadir=@usdatadir@
++usdatadir=$(DESTDIR)/@usdatadir@
+
+ install:
+ $(mkinstalldirs) ${usdatadir}
+
+--- shared/usmisc.cpp
++++ shared/usmisc.cpp
+@@ -42,7 +42,7 @@
+ printf("prefix = %s\n", prefixdir.c_str());
+
+ std::vector<CString> locations;
+- locations.push_back(prefixdir + "/etc/ultimatestunts.conf");
++ locations.push_back(prefixdir + "/ultimatestunts.conf");
+ locations.push_back("/etc/ultimatestunts.conf");
+ locations.push_back("/usr/local/etc/ultimatestunts.conf");
+ locations.push_back("./ultimatestunts.conf");
diff --git a/games-sports/ultimatestunts/ultimatestunts-0.6.3.ebuild b/games-sports/ultimatestunts/ultimatestunts-0.6.3.ebuild
new file mode 100644
index 000000000000..4106ed0240ff
--- /dev/null
+++ b/games-sports/ultimatestunts/ultimatestunts-0.6.3.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-sports/ultimatestunts/ultimatestunts-0.6.3.ebuild,v 1.1 2006/11/13 14:17:04 nyhm Exp $
+
+WANT_AUTOCONF="latest"
+WANT_AUTOMAKE="latest"
+inherit autotools eutils versionator games
+
+MY_P=${PN}-srcdata-$(replace_all_version_separators)1
+DESCRIPTION="Remake of the famous Stunts game"
+HOMEPAGE="http://www.ultimatestunts.nl/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-image
+ media-libs/openal
+ media-libs/freealut
+ virtual/opengl
+ virtual/glu
+ x11-libs/libSM
+ x11-libs/libICE
+ x11-libs/libX11
+ x11-libs/libXi
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXt
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-util/cvs
+ sys-devel/gettext"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch \
+ "${FILESDIR}"/${P}-freealut.patch \
+ "${FILESDIR}"/${P}-paths.patch
+
+ autopoint -f || die "autopoint failed"
+ AT_M4DIR=m4 eautoreconf
+}
+
+src_compile() {
+ egamesconf $(use_enable nls) || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ make_desktop_entry ustunts "Ultimate Stunts"
+ dodoc AUTHORS README
+
+ rm -rf $(find "${D}" -name CVS)
+ prepgamesdirs
+}