summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-01-19 13:07:25 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-01-19 13:07:25 +0000
commit58310a962a53da78f3653ba66a68ed59dff26930 (patch)
tree1d07a0379816c77b91fb1b5624d49a1123ad5b50 /media-libs/libmpcdec
parentVersion bump (see bug #206607). (diff)
downloadgentoo-2-58310a962a53da78f3653ba66a68ed59dff26930.tar.gz
gentoo-2-58310a962a53da78f3653ba66a68ed59dff26930.tar.bz2
gentoo-2-58310a962a53da78f3653ba66a68ed59dff26930.zip
Add patch to respect user CFLAGS, rather than force -O3 -fomit-frame-pointer and -fPIC for static libraries.
(Portage version: 2.1.4)
Diffstat (limited to 'media-libs/libmpcdec')
-rw-r--r--media-libs/libmpcdec/ChangeLog9
-rw-r--r--media-libs/libmpcdec/files/digest-libmpcdec-1.2.6-r13
-rw-r--r--media-libs/libmpcdec/files/libmpcdec-1.2.6-riceitdown.patch13
-rw-r--r--media-libs/libmpcdec/libmpcdec-1.2.6-r1.ebuild37
4 files changed, 61 insertions, 1 deletions
diff --git a/media-libs/libmpcdec/ChangeLog b/media-libs/libmpcdec/ChangeLog
index e1b2139cfc3e..f2f82acea5f5 100644
--- a/media-libs/libmpcdec/ChangeLog
+++ b/media-libs/libmpcdec/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-libs/libmpcdec
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libmpcdec/ChangeLog,v 1.29 2008/01/16 16:43:17 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libmpcdec/ChangeLog,v 1.30 2008/01/19 13:07:24 flameeyes Exp $
+
+*libmpcdec-1.2.6-r1 (19 Jan 2008)
+
+ 19 Jan 2008; Diego Pettenò <flameeyes@gentoo.org>
+ +files/libmpcdec-1.2.6-riceitdown.patch, +libmpcdec-1.2.6-r1.ebuild:
+ Add patch to respect user CFLAGS, rather than force -O3 -fomit-frame-pointer
+ and -fPIC for static libraries.
16 Jan 2008; Raúl Porcel <armin76@gentoo.org> libmpcdec-1.2.6.ebuild:
alpha/ia64 stable wrt #204679
diff --git a/media-libs/libmpcdec/files/digest-libmpcdec-1.2.6-r1 b/media-libs/libmpcdec/files/digest-libmpcdec-1.2.6-r1
new file mode 100644
index 000000000000..2bd8ccb7d1c7
--- /dev/null
+++ b/media-libs/libmpcdec/files/digest-libmpcdec-1.2.6-r1
@@ -0,0 +1,3 @@
+MD5 7f7a060e83b4278acf4b77d7a7b9d2c0 libmpcdec-1.2.6.tar.bz2 250302
+RMD160 97173a1c037c1be748fb0d37e7fb7750610486db libmpcdec-1.2.6.tar.bz2 250302
+SHA256 4bd54929a80850754f27b568d7891e1e3e1b8d2f208d371f27d1fda09e6f12a8 libmpcdec-1.2.6.tar.bz2 250302
diff --git a/media-libs/libmpcdec/files/libmpcdec-1.2.6-riceitdown.patch b/media-libs/libmpcdec/files/libmpcdec-1.2.6-riceitdown.patch
new file mode 100644
index 000000000000..4c6066ce670f
--- /dev/null
+++ b/media-libs/libmpcdec/files/libmpcdec-1.2.6-riceitdown.patch
@@ -0,0 +1,13 @@
+Index: libmpcdec-1.2.6/configure.ac
+===================================================================
+--- libmpcdec-1.2.6.orig/configure.ac
++++ libmpcdec-1.2.6/configure.ac
+@@ -6,8 +6,6 @@ AM_CONFIG_HEADER(include/config.h)
+
+ AM_PROG_LIBTOOL
+
+-CFLAGS="$CFLAGS -O3 -fomit-frame-pointer -fPIC"
+-
+ AC_C_BIGENDIAN(,CFLAGS="$CFLAGS -DMPC_LITTLE_ENDIAN",)
+
+ AC_HEADER_STDC
diff --git a/media-libs/libmpcdec/libmpcdec-1.2.6-r1.ebuild b/media-libs/libmpcdec/libmpcdec-1.2.6-r1.ebuild
new file mode 100644
index 000000000000..492e51f3d3b0
--- /dev/null
+++ b/media-libs/libmpcdec/libmpcdec-1.2.6-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libmpcdec/libmpcdec-1.2.6-r1.ebuild,v 1.1 2008/01/19 13:07:24 flameeyes Exp $
+
+inherit eutils libtool autotools
+
+DESCRIPTION="Musepack decoder library"
+HOMEPAGE="http://www.musepack.net"
+SRC_URI="http://files2.musepack.net/source/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-riceitdown.patch"
+
+ eautoreconf
+ elibtoolize
+}
+
+src_compile() {
+ econf \
+ --enable-static \
+ --enable-shared \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ dodoc AUTHORS ChangeLog README
+}