diff options
author | Jason Huebel <jhuebel@gentoo.org> | 2004-05-27 16:32:47 +0000 |
---|---|---|
committer | Jason Huebel <jhuebel@gentoo.org> | 2004-05-27 16:32:47 +0000 |
commit | 0af4b3492aa1526fda61972628c534521ae4ab64 (patch) | |
tree | 31a91b9f74a252546e18aed9ff4d7baa0200dac3 /media-libs | |
parent | ~amd64 (Manifest recommit) (diff) | |
download | gentoo-2-0af4b3492aa1526fda61972628c534521ae4ab64.tar.gz gentoo-2-0af4b3492aa1526fda61972628c534521ae4ab64.tar.bz2 gentoo-2-0af4b3492aa1526fda61972628c534521ae4ab64.zip |
mikmod patches for amd64 to detect as a 64bit system, version bump
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/sdl-mixer/ChangeLog | 7 | ||||
-rw-r--r-- | media-libs/sdl-mixer/files/digest-sdl-mixer-1.2.5-r3 | 1 | ||||
-rw-r--r-- | media-libs/sdl-mixer/files/sdl-mixer-1.2.5-amd64-mikmod.patch | 24 | ||||
-rw-r--r-- | media-libs/sdl-mixer/sdl-mixer-1.2.5-r3.ebuild | 53 |
4 files changed, 84 insertions, 1 deletions
diff --git a/media-libs/sdl-mixer/ChangeLog b/media-libs/sdl-mixer/ChangeLog index dc7cc49aac07..887fb2b7ff9e 100644 --- a/media-libs/sdl-mixer/ChangeLog +++ b/media-libs/sdl-mixer/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-libs/sdl-mixer # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-mixer/ChangeLog,v 1.19 2004/05/23 22:53:23 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-mixer/ChangeLog,v 1.20 2004/05/27 16:32:46 jhuebel Exp $ + +*sdl-mixer-1.2.5-r3 (27 May 2004) + + 27 May 2004; Jason Eric Huebel <jhuebel@gentoo.org> + amd64 patches for mikmod.h and mikmod_internals.h, provided by Tyler Montbriand <tsm@accesscomm.ca> *sdl-mixer-1.2.5-r2 (23 May 2004) diff --git a/media-libs/sdl-mixer/files/digest-sdl-mixer-1.2.5-r3 b/media-libs/sdl-mixer/files/digest-sdl-mixer-1.2.5-r3 new file mode 100644 index 000000000000..4363805f47b0 --- /dev/null +++ b/media-libs/sdl-mixer/files/digest-sdl-mixer-1.2.5-r3 @@ -0,0 +1 @@ +MD5 f26d4e4625f00517203e32bd06fbc5d8 SDL_mixer-1.2.5.tar.gz 936765 diff --git a/media-libs/sdl-mixer/files/sdl-mixer-1.2.5-amd64-mikmod.patch b/media-libs/sdl-mixer/files/sdl-mixer-1.2.5-amd64-mikmod.patch new file mode 100644 index 000000000000..a8c61db43a91 --- /dev/null +++ b/media-libs/sdl-mixer/files/sdl-mixer-1.2.5-amd64-mikmod.patch @@ -0,0 +1,24 @@ +diff -ur SDL_mixer-1.2.5-old/mikmod/mikmod.h SDL_mixer-1.2.5/mikmod/mikmod.h +--- SDL_mixer-1.2.5-old/mikmod/mikmod.h 2004-05-27 11:16:29.571640904 -0500 ++++ SDL_mixer-1.2.5/mikmod/mikmod.h 2004-05-27 11:17:07.233915368 -0500 +@@ -85,7 +85,7 @@ + + /*@DOES_NOT_HAVE_SIGNED@*/ + +-#if defined(__alpha) ++#if defined(__alpha) || defined(__x86_64) + /* 64 bit architectures */ + + typedef signed char SBYTE; /* 1 byte, signed */ +diff -ur SDL_mixer-1.2.5-old/mikmod/mikmod_internals.h SDL_mixer-1.2.5/mikmod/mikmod_internals.h +--- SDL_mixer-1.2.5-old/mikmod/mikmod_internals.h 2004-05-27 11:16:29.571640904 -0500 ++++ SDL_mixer-1.2.5/mikmod/mikmod_internals.h 2004-05-27 11:17:31.622207784 -0500 +@@ -69,7 +69,7 @@ + /*========== More type definitions */ + + /* SLONGLONG: 64bit, signed */ +-#if defined(__alpha) ++#if defined(__alpha) || defined(__x86_64) + typedef long SLONGLONG; + #define NATIVE_64BIT_INT + #elif defined(__WATCOMC__) diff --git a/media-libs/sdl-mixer/sdl-mixer-1.2.5-r3.ebuild b/media-libs/sdl-mixer/sdl-mixer-1.2.5-r3.ebuild new file mode 100644 index 000000000000..9a8874715ce4 --- /dev/null +++ b/media-libs/sdl-mixer/sdl-mixer-1.2.5-r3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-mixer/sdl-mixer-1.2.5-r3.ebuild,v 1.1 2004/05/27 16:32:46 jhuebel Exp $ + +inherit eutils + +MY_P="${P/sdl-/SDL_}" +S=${WORKDIR}/${MY_P} +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="x86 ppc sparc ~mips alpha hppa amd64" +IUSE="mpeg mikmod oggvorbis" + +RDEPEND=">=media-libs/libsdl-1.2.5 + >=media-libs/smpeg-0.4.4-r1 + mikmod? ( >=media-libs/libmikmod-3.1.10 ) + oggvorbis? ( >=media-libs/libvorbis-1.0_beta4 )" +DEPEND="${RDEPEND} + >=sys-apps/sed-4" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-gcc3.patch + epatch ${FILESDIR}/${PV}-system-mikmod.patch + + # amd64 patch for mikmod.h and mikmod_internals.h + epatch ${FILESDIR}/${P}-amd64-mikmod.patch + + autoreconf -i || die + sed -i \ + -e 's:/usr/local/lib/timidity:/usr/share/timidity:' \ + timidity/config.h \ + || die "sed timidity/config.h failed" +} + +src_compile() { + econf \ + `use_enable mikmod music-mod` \ + `use_enable mpeg music-mp3` \ + `use_enable oggvorbis music-ogg` \ + || die + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + dodoc CHANGES README +} |