summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <drac@gentoo.org>2007-03-25 12:51:44 +0000
committerSamuli Suominen <drac@gentoo.org>2007-03-25 12:51:44 +0000
commit248c4bff0143db3fb38a9cc9ac7474a119d23acd (patch)
tree73c67a56b4774161f84365998697974fb35ed2d2 /media-libs/libmikmod
parentUpdate homepage and src_uri (diff)
downloadgentoo-2-248c4bff0143db3fb38a9cc9ac7474a119d23acd.tar.gz
gentoo-2-248c4bff0143db3fb38a9cc9ac7474a119d23acd.tar.bz2
gentoo-2-248c4bff0143db3fb38a9cc9ac7474a119d23acd.zip
Fix ALSA support with patch from Matsuu Takuto in bug 97507. Other various fixes, including emake usage..
(Portage version: 2.1.2.2)
Diffstat (limited to 'media-libs/libmikmod')
-rw-r--r--media-libs/libmikmod/ChangeLog11
-rw-r--r--media-libs/libmikmod/files/digest-libmikmod-3.1.11-r46
-rw-r--r--media-libs/libmikmod/files/libmikmod-3.1.11-alsa.patch26
-rw-r--r--media-libs/libmikmod/libmikmod-3.1.11-r4.ebuild48
4 files changed, 89 insertions, 2 deletions
diff --git a/media-libs/libmikmod/ChangeLog b/media-libs/libmikmod/ChangeLog
index 18b27bf96bd3..b797e16e603e 100644
--- a/media-libs/libmikmod/ChangeLog
+++ b/media-libs/libmikmod/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-libs/libmikmod
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/ChangeLog,v 1.45 2006/12/30 15:52:35 chainsaw Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/ChangeLog,v 1.46 2007/03/25 12:51:44 drac Exp $
+
+*libmikmod-3.1.11-r4 (25 Mar 2007)
+
+ 25 Mar 2007; Samuli Suominen <drac@gentoo.org>
+ +files/libmikmod-3.1.11-alsa.patch, +libmikmod-3.1.11-r4.ebuild:
+ Fix ALSA support with patch from Matsuu Takuto in bug 97507. Other various
+ fixes, including emake usage.
30 Dec 2006; Tony Vroon <chainsaw@gentoo.org> libmikmod-3.1.11-r3.ebuild:
Stable on PPC64, only this version works properly on 64UL. Ack'ed by
diff --git a/media-libs/libmikmod/files/digest-libmikmod-3.1.11-r4 b/media-libs/libmikmod/files/digest-libmikmod-3.1.11-r4
new file mode 100644
index 000000000000..6f922159993f
--- /dev/null
+++ b/media-libs/libmikmod/files/digest-libmikmod-3.1.11-r4
@@ -0,0 +1,6 @@
+MD5 5d7a4705bbc7260332e752f32e48613b libmikmod-3.1.11-esdm4.patch.bz2 2944
+RMD160 8abf8e31a5e3cb9ebee45a04b52ef04024894e25 libmikmod-3.1.11-esdm4.patch.bz2 2944
+SHA256 3dc3d413a9c617b919523866768559bee487a240670040f987825305609987da libmikmod-3.1.11-esdm4.patch.bz2 2944
+MD5 705106da305e8de191549f1e7393185c libmikmod-3.1.11.tar.gz 611590
+RMD160 79b144cce51340b4c9abe09d1110dba2333d7bfb libmikmod-3.1.11.tar.gz 611590
+SHA256 2d7598cd2a8c61c023f27c9c7c1aca8bbfd92aadbee2f98b7a6d421eae35c929 libmikmod-3.1.11.tar.gz 611590
diff --git a/media-libs/libmikmod/files/libmikmod-3.1.11-alsa.patch b/media-libs/libmikmod/files/libmikmod-3.1.11-alsa.patch
new file mode 100644
index 000000000000..1f14fc27f5d1
--- /dev/null
+++ b/media-libs/libmikmod/files/libmikmod-3.1.11-alsa.patch
@@ -0,0 +1,26 @@
+diff -Naur libmikmod-3.1.11.orig/configure.in libmikmod-3.1.11/configure.in
+--- libmikmod-3.1.11.orig/configure.in 2004-01-22 02:43:52.000000000 +0900
++++ libmikmod-3.1.11/configure.in 2007-01-14 11:32:35.000000000 +0900
+@@ -6,7 +6,7 @@
+
+ LIBMIKMOD_MAJOR_VERSION=3
+ LIBMIKMOD_MINOR_VERSION=1
+-LIBMIKMOD_MICRO_VERSION=10
++LIBMIKMOD_MICRO_VERSION=11
+
+ BETA=
+
+@@ -257,10 +257,10 @@
+ if test "`uname`" = "Linux" && test $libmikmod_driver_alsa = yes
+ then
+ libmikmod_driver_alsa=no
+- AC_CHECK_HEADERS(sys/asoundlib.h)
+- if test $ac_cv_header_sys_asoundlib_h = yes
++ AC_CHECK_HEADERS(alsa/asoundlib.h)
++ if test $ac_cv_header_alsa_asoundlib_h = yes
+ then
+- AC_CHECK_LIB(asound,snd_cards,libmikmod_driver_alsa=yes)
++ AC_CHECK_LIB(asound,snd_card_load,libmikmod_driver_alsa=yes)
+ fi
+ else
+ libmikmod_driver_alsa=no
diff --git a/media-libs/libmikmod/libmikmod-3.1.11-r4.ebuild b/media-libs/libmikmod/libmikmod-3.1.11-r4.ebuild
new file mode 100644
index 000000000000..c2e9e36cf3cf
--- /dev/null
+++ b/media-libs/libmikmod/libmikmod-3.1.11-r4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/libmikmod-3.1.11-r4.ebuild,v 1.1 2007/03/25 12:51:44 drac Exp $
+
+WANT_AUTOMAKE="1.5"
+
+inherit flag-o-matic eutils libtool autotools
+
+DESCRIPTION="A library to play a wide range of module formats"
+HOMEPAGE="http://mikmod.raphnet.net/"
+SRC_URI="http://mikmod.raphnet.net/files/${P}.tar.gz
+ mirror://gentoo/${P}-esdm4.patch.bz2"
+
+LICENSE="|| ( LGPL-2.1 LGPL-2 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="oss esd alsa"
+
+DEPEND=">=media-libs/audiofile-0.2.3
+ alsa? ( >=media-libs/alsa-lib-0.5.9 )
+ esd? ( >=media-sound/esound-0.2.19 )"
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${DISTDIR}"/${P}-esdm4.patch.bz2
+
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-m4.patch
+ epatch "${FILESDIR}"/${P}-amd64-ppc64-archdef.patch
+ epatch "${FILESDIR}"/${P}-respectflags.patch
+ epatch "${FILESDIR}"/${P}-alsa.patch
+ AT_M4DIR="${S}/m4" eautoreconf
+}
+
+src_compile() {
+ econf --enable-af \
+ $(use_enable esd) \
+ $(use_enable alsa) \
+ $(use_enable oss)
+ emake || die "emake failed."
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+ dodoc AUTHORS NEWS README TODO
+ dohtml docs/*.html
+}