summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2007-08-06 20:26:40 +0000
committerRyan Hill <dirtyepic@gentoo.org>2007-08-06 20:26:40 +0000
commit04c3c953721654cf8bf3903414460c5fbfc48f3e (patch)
treeb9540d71d22114cf648fed1cbd57a0c508d1a810
parentFixed multilib install paths for libpri-1.2.5 and marked it stable on amd64 (diff)
downloadgentoo-2-04c3c953721654cf8bf3903414460c5fbfc48f3e.tar.gz
gentoo-2-04c3c953721654cf8bf3903414460c5fbfc48f3e.tar.bz2
gentoo-2-04c3c953721654cf8bf3903414460c5fbfc48f3e.zip
Revision bump. Use 64bit fixed-point math routines on ppc64 to prevent
high-pitched noise during playback. Remove fstrict-aliasing conditional. Drop ppc64 keyword from -r3. Thanks to Chainsaw for reporting and testing. (Portage version: 2.1.3.3)
-rw-r--r--media-libs/libmad/ChangeLog10
-rw-r--r--media-libs/libmad/files/digest-libmad-0.15.1b-r43
-rw-r--r--media-libs/libmad/libmad-0.15.1b-r3.ebuild4
-rw-r--r--media-libs/libmad/libmad-0.15.1b-r4.ebuild65
4 files changed, 79 insertions, 3 deletions
diff --git a/media-libs/libmad/ChangeLog b/media-libs/libmad/ChangeLog
index 037d26b24232..964e1fc06584 100644
--- a/media-libs/libmad/ChangeLog
+++ b/media-libs/libmad/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-libs/libmad
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libmad/ChangeLog,v 1.52 2007/07/01 19:14:41 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libmad/ChangeLog,v 1.53 2007/08/06 20:26:40 dirtyepic Exp $
+
+*libmad-0.15.1b-r4 (06 Aug 2007)
+
+ 06 Aug 2007; Ryan Hill <dirtyepic@gentoo.org> libmad-0.15.1b-r3.ebuild,
+ +libmad-0.15.1b-r4.ebuild:
+ Revision bump. Use 64bit fixed-point math routines on ppc64 to prevent
+ high-pitched noise during playback. Remove fstrict-aliasing conditional.
+ Drop ppc64 keyword from -r3. Thanks to Chainsaw for reporting and testing.
01 Jul 2007; Ryan Hill <dirtyepic@gentoo.org>
files/libmad-0.15.1b-cflags.patch, +files/libmad-0.15.1b-cflags-O2.patch,
diff --git a/media-libs/libmad/files/digest-libmad-0.15.1b-r4 b/media-libs/libmad/files/digest-libmad-0.15.1b-r4
new file mode 100644
index 000000000000..e475d46a8d95
--- /dev/null
+++ b/media-libs/libmad/files/digest-libmad-0.15.1b-r4
@@ -0,0 +1,3 @@
+MD5 1be543bc30c56fb6bea1d7bf6a64e66c libmad-0.15.1b.tar.gz 502379
+RMD160 0f3415ee10b188681e282ca69dec74c46ca73b0f libmad-0.15.1b.tar.gz 502379
+SHA256 bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690 libmad-0.15.1b.tar.gz 502379
diff --git a/media-libs/libmad/libmad-0.15.1b-r3.ebuild b/media-libs/libmad/libmad-0.15.1b-r3.ebuild
index d1835717472d..d066cccc1f85 100644
--- a/media-libs/libmad/libmad-0.15.1b-r3.ebuild
+++ b/media-libs/libmad/libmad-0.15.1b-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libmad/libmad-0.15.1b-r3.ebuild,v 1.2 2007/07/01 19:14:41 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libmad/libmad-0.15.1b-r3.ebuild,v 1.3 2007/08/06 20:26:40 dirtyepic Exp $
inherit eutils autotools libtool flag-o-matic
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/mad/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~sh ~sparc ~x86 ~x86-fbsd"
IUSE="debug"
DEPEND=""
diff --git a/media-libs/libmad/libmad-0.15.1b-r4.ebuild b/media-libs/libmad/libmad-0.15.1b-r4.ebuild
new file mode 100644
index 000000000000..84fa57c0ecef
--- /dev/null
+++ b/media-libs/libmad/libmad-0.15.1b-r4.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libmad/libmad-0.15.1b-r4.ebuild,v 1.1 2007/08/06 20:26:40 dirtyepic Exp $
+
+inherit eutils autotools libtool flag-o-matic
+
+DESCRIPTION="\"M\"peg \"A\"udio \"D\"ecoder library"
+HOMEPAGE="http://mad.sourceforge.net"
+SRC_URI="mirror://sourceforge/mad/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="debug"
+
+DEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/libmad-0.15.1b-cflags.patch"
+ epatch "${FILESDIR}/libmad-0.15.1b-cflags-O2.patch"
+
+ eautoreconf
+
+ elibtoolize
+ epunt_cxx #74490
+}
+
+src_compile() {
+ local myconf="--enable-accuracy"
+ # --enable-speed optimize for speed over accuracy
+ # --enable-accuracy optimize for accuracy over speed
+ # --enable-experimental enable code using the EXPERIMENTAL
+ # preprocessor define
+
+ # Fix for b0rked sound on sparc64 (maybe also sparc32?)
+ # default/approx is also possible, uses less cpu but sounds worse
+ use sparc && myconf="${myconf} --enable-fpm=64bit"
+
+ [[ $(tc-arch) == "amd64" ]] && myconf="${myconf} --enable-fpm=64bit"
+ [[ $(tc-arch) == "x86" ]] && myconf="${myconf} --enable-fpm=intel"
+ [[ $(tc-arch) == "ppc" ]] && myconf="${myconf} --enable-fpm=ppc"
+ [[ $(tc-arch) == "ppc64" ]] && myconf="${myconf} --enable-fpm=64bit"
+
+ econf \
+ $(use_enable debug debugging) \
+ ${myconf} || die "configure failed"
+ emake || die "make failed"
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "make install failed"
+
+ dodoc CHANGES CREDITS README TODO VERSION
+
+ # This file must be updated with each version update
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins "${FILESDIR}"/mad.pc
+
+ # Use correct libdir in pkgconfig file
+ dosed "s:^libdir.*:libdir=/usr/$(get_libdir):" \
+ /usr/$(get_libdir)/pkgconfig/mad.pc
+}