diff options
-rw-r--r-- | media-libs/libmad/ChangeLog | 9 | ||||
-rw-r--r-- | media-libs/libmad/files/digest-libmad-0.15.1b-r3 | 3 | ||||
-rw-r--r-- | media-libs/libmad/files/libmad-0.15.1b-cflags.patch | 14 | ||||
-rw-r--r-- | media-libs/libmad/libmad-0.15.1b-r3.ebuild | 65 |
4 files changed, 88 insertions, 3 deletions
diff --git a/media-libs/libmad/ChangeLog b/media-libs/libmad/ChangeLog index ec0558049816..47216f472ba4 100644 --- a/media-libs/libmad/ChangeLog +++ b/media-libs/libmad/ChangeLog @@ -1,6 +1,13 @@ # 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.50 2007/06/14 17:26:51 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libmad/ChangeLog,v 1.51 2007/07/01 02:33:44 dirtyepic Exp $ + +*libmad-0.15.1b-r3 (01 Jul 2007) + + 01 Jul 2007; Ryan Hill <dirtyepic@gentoo.org> + files/libmad-0.15.1b-cflags.patch, +libmad-0.15.1b-r3.ebuild: + Fix CFLAGS patch to cover a case that was missed. Thanks to Sebastian in bug + #123215. 14 Jun 2007; Raúl Porcel <armin76@gentoo.org> libmad-0.15.1b-r2.ebuild: alpha stable wrt #163113 diff --git a/media-libs/libmad/files/digest-libmad-0.15.1b-r3 b/media-libs/libmad/files/digest-libmad-0.15.1b-r3 new file mode 100644 index 000000000000..e475d46a8d95 --- /dev/null +++ b/media-libs/libmad/files/digest-libmad-0.15.1b-r3 @@ -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/files/libmad-0.15.1b-cflags.patch b/media-libs/libmad/files/libmad-0.15.1b-cflags.patch index 2e4eced4f969..2509fea671e3 100644 --- a/media-libs/libmad/files/libmad-0.15.1b-cflags.patch +++ b/media-libs/libmad/files/libmad-0.15.1b-cflags.patch @@ -1,5 +1,15 @@ ---- configure.ac.orig 2006-03-10 15:10:24.000000000 -0500 -+++ configure.ac 2006-03-10 15:14:10.000000000 -0500 +diff -Naur libmad-0.15.1b-orig/configure.ac libmad-0.15.1b/configure.ac +--- libmad-0.15.1b-orig/configure.ac 2007-06-30 20:22:31.000000000 -0600 ++++ libmad-0.15.1b/configure.ac 2007-06-30 20:25:31.000000000 -0600 +@@ -105,7 +105,7 @@ + shift + ;; + -O2) +- optimize="-O" ++ optimize="-O2" + shift + ;; + -fomit-frame-pointer) @@ -122,74 +122,74 @@ esac done diff --git a/media-libs/libmad/libmad-0.15.1b-r3.ebuild b/media-libs/libmad/libmad-0.15.1b-r3.ebuild new file mode 100644 index 000000000000..5d20eb04f835 --- /dev/null +++ b/media-libs/libmad/libmad-0.15.1b-r3.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-r3.ebuild,v 1.1 2007/07/01 02:33:44 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" + + eautoreconf + + elibtoolize + epunt_cxx #74490 +} + +src_compile() { + use ppc && append-flags -fno-strict-aliasing + + 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" + + 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 +} |