summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-10-10 15:01:39 +0000
committerMike Frysinger <vapier@gentoo.org>2005-10-10 15:01:39 +0000
commit02a855839176d7c9f0cec209cce06fe0e5eb6021 (patch)
tree60b60f4fa00a71999e56700513328329c9104e5c /media-libs/sdl-mixer
parentAdded emul-linux-x86-sdl to RDEPEND for amd64. (diff)
downloadgentoo-2-02a855839176d7c9f0cec209cce06fe0e5eb6021.tar.gz
gentoo-2-02a855839176d7c9f0cec209cce06fe0e5eb6021.tar.bz2
gentoo-2-02a855839176d7c9f0cec209cce06fe0e5eb6021.zip
Fix sdl-mixer as proposed in #99590 by TGL and like upstream has done in cvs already.
(Portage version: 2.0.53_rc4)
Diffstat (limited to 'media-libs/sdl-mixer')
-rw-r--r--media-libs/sdl-mixer/ChangeLog12
-rw-r--r--media-libs/sdl-mixer/files/digest-sdl-mixer-1.2.6-r11
-rw-r--r--media-libs/sdl-mixer/files/sdl-mixer-1.2.6-mikmod-music-init.patch11
-rw-r--r--media-libs/sdl-mixer/sdl-mixer-1.2.6-r1.ebuild47
4 files changed, 69 insertions, 2 deletions
diff --git a/media-libs/sdl-mixer/ChangeLog b/media-libs/sdl-mixer/ChangeLog
index e8b4b04dcc86..dbbd34796592 100644
--- a/media-libs/sdl-mixer/ChangeLog
+++ b/media-libs/sdl-mixer/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-libs/sdl-mixer
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-mixer/ChangeLog,v 1.28 2005/06/12 17:42:19 kloeri Exp $
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-mixer/ChangeLog,v 1.29 2005/10/10 15:01:39 vapier Exp $
+
+*sdl-mixer-1.2.6-r1 (10 Oct 2005)
+
+ 10 Oct 2005; Mike Frysinger <vapier@gentoo.org>
+ +files/sdl-mixer-1.2.6-mikmod-music-init.patch,
+ +sdl-mixer-1.2.6-r1.ebuild:
+ Fix sdl-mixer as proposed in #99590 by TGL and like upstream has done in cvs
+ already.
12 Jun 2005; Bryan Østergaard <kloeri@gentoo.org> sdl-mixer-1.2.6.ebuild:
Stable on alpha.
diff --git a/media-libs/sdl-mixer/files/digest-sdl-mixer-1.2.6-r1 b/media-libs/sdl-mixer/files/digest-sdl-mixer-1.2.6-r1
new file mode 100644
index 000000000000..ebd95ac1820a
--- /dev/null
+++ b/media-libs/sdl-mixer/files/digest-sdl-mixer-1.2.6-r1
@@ -0,0 +1 @@
+MD5 2b8beffad9179d80e598c22c80efb135 SDL_mixer-1.2.6.tar.gz 1147838
diff --git a/media-libs/sdl-mixer/files/sdl-mixer-1.2.6-mikmod-music-init.patch b/media-libs/sdl-mixer/files/sdl-mixer-1.2.6-mikmod-music-init.patch
new file mode 100644
index 000000000000..f4810a10e5e4
--- /dev/null
+++ b/media-libs/sdl-mixer/files/sdl-mixer-1.2.6-mikmod-music-init.patch
@@ -0,0 +1,11 @@
+--- SDL_mixer-1.2.6/music.c
++++ SDL_mixer-1.2.6/music.c
+@@ -392,7 +392,7 @@
+ #ifdef LIBMIKMOD_MUSIC
+ if(!MikMod_InfoDriver())
+ #endif
+- MikMod_RegisterAllDrivers();
++ MikMod_RegisterDriver(&drv_nos);
+ #ifdef LIBMIKMOD_MUSIC
+ if(!MikMod_InfoLoader())
+ #endif
diff --git a/media-libs/sdl-mixer/sdl-mixer-1.2.6-r1.ebuild b/media-libs/sdl-mixer/sdl-mixer-1.2.6-r1.ebuild
new file mode 100644
index 000000000000..1ab36e204b24
--- /dev/null
+++ b/media-libs/sdl-mixer/sdl-mixer-1.2.6-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-mixer/sdl-mixer-1.2.6-r1.ebuild,v 1.1 2005/10/10 15:01:39 vapier Exp $
+
+inherit eutils
+
+MY_P=${P/sdl-/SDL_}
+DESCRIPTION="Simple Direct Media Layer Mixer Library"
+HOMEPAGE="http://www.libsdl.org/projects/SDL_mixer/index.html"
+SRC_URI="http://www.libsdl.org/projects/SDL_mixer/release/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86"
+IUSE="mp3 mikmod vorbis"
+
+DEPEND=">=media-libs/libsdl-1.2.5
+ >=media-libs/smpeg-0.4.4-r1
+ vorbis? ( >=media-libs/libvorbis-1.0_beta4 media-libs/libogg )
+ mikmod? ( >=media-libs/libmikmod-3.1.10 )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/sdl-mixer-1.2.6-mikmod-music-init.patch
+ sed -i \
+ -e 's:/usr/local/lib/timidity:/usr/share/timidity:' \
+ timidity/config.h \
+ || die "sed timidity/config.h failed"
+}
+
+src_compile() {
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable mikmod music-libmikmod) \
+ $(use_enable mp3 music-mp3) \
+ $(use_enable vorbis music-ogg) \
+ || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ dodoc CHANGES README
+}