summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-07-22 19:54:56 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-07-22 19:54:56 +0000
commitd1aef4b3ba9b955f692d8897eb4b9efc33049dd9 (patch)
tree960a6756ba76647d073239e34503e4fff7db5ff2
parentMove sessionsaver to session global USE flag, and add GCONF_DEBUG=no (diff)
downloadgentoo-2-d1aef4b3ba9b955f692d8897eb4b9efc33049dd9.tar.gz
gentoo-2-d1aef4b3ba9b955f692d8897eb4b9efc33049dd9.tar.bz2
gentoo-2-d1aef4b3ba9b955f692d8897eb4b9efc33049dd9.zip
Fix custom ./configure script for -Wl,--as-needed wrt #278158, thanks to Diego E. Pettenò.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
-rw-r--r--media-sound/aacplusenc/ChangeLog7
-rw-r--r--media-sound/aacplusenc/aacplusenc-0.17.1.ebuild6
-rw-r--r--media-sound/aacplusenc/files/aacplusenc-0.17.1-asneeded.patch37
3 files changed, 46 insertions, 4 deletions
diff --git a/media-sound/aacplusenc/ChangeLog b/media-sound/aacplusenc/ChangeLog
index 821bab40f728..77c2eee89ed7 100644
--- a/media-sound/aacplusenc/ChangeLog
+++ b/media-sound/aacplusenc/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-sound/aacplusenc
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/aacplusenc/ChangeLog,v 1.1 2009/07/12 00:06:44 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/aacplusenc/ChangeLog,v 1.2 2009/07/22 19:54:56 ssuominen Exp $
+
+ 22 Jul 2009; Samuli Suominen <ssuominen@gentoo.org>
+ aacplusenc-0.17.1.ebuild, +files/aacplusenc-0.17.1-asneeded.patch:
+ Fix custom ./configure script for -Wl,--as-needed wrt #278158, thanks to
+ Diego E. Pettenò.
*aacplusenc-0.17.1 (12 Jul 2009)
diff --git a/media-sound/aacplusenc/aacplusenc-0.17.1.ebuild b/media-sound/aacplusenc/aacplusenc-0.17.1.ebuild
index 8df1aa3ff6a2..8c646d4e4466 100644
--- a/media-sound/aacplusenc/aacplusenc-0.17.1.ebuild
+++ b/media-sound/aacplusenc/aacplusenc-0.17.1.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/aacplusenc/aacplusenc-0.17.1.ebuild,v 1.2 2009/07/12 00:25:10 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/aacplusenc/aacplusenc-0.17.1.ebuild,v 1.3 2009/07/22 19:54:56 ssuominen Exp $
EAPI=2
-inherit toolchain-funcs
+inherit eutils toolchain-funcs
DESCRIPTION="High-Efficiency AAC (AAC+) Encoder"
HOMEPAGE="http://teknoraver.net/software/mp4tools/"
@@ -22,9 +22,9 @@ DEPEND="${RDEPEND}
RESTRICT="mirror"
src_prepare() {
+ epatch "${FILESDIR}"/${P}-asneeded.patch
sed \
-e 's:LDFLAGS:LIBRARIES:g' \
- -e 's:gcc:${CC}:g' \
-e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' \
-e 's:ar r:$(AR) r:g' \
-e 's:strip:true:' \
diff --git a/media-sound/aacplusenc/files/aacplusenc-0.17.1-asneeded.patch b/media-sound/aacplusenc/files/aacplusenc-0.17.1-asneeded.patch
new file mode 100644
index 000000000000..7db77f840d3c
--- /dev/null
+++ b/media-sound/aacplusenc/files/aacplusenc-0.17.1-asneeded.patch
@@ -0,0 +1,37 @@
+diff -ur aacplusenc-0.17.1.orig/configure aacplusenc-0.17.1/configure
+--- aacplusenc-0.17.1.orig/configure 2008-02-14 18:28:24.000000000 +0200
++++ aacplusenc-0.17.1/configure 2009-07-22 22:52:16.000000000 +0300
+@@ -8,7 +8,7 @@
+
+ echo -n 'Checking for libfftw3f...'
+
+-gcc -o test-fft -Wall -x c -lfftw3f -I/usr/local/include -L/usr/local/lib - <<'EOF'
++cat >test-fft.c <<'EOF'
+ #include <fftw3.h>
+
+ #define N 128
+@@ -29,6 +29,8 @@
+ }
+ EOF
+
++${CC} ${LDFLAGS} ${CFLAGS} -Wall -x c test-fft.c -lfftw3f -o test-fft -I/usr/local/include -L/usr/local/lib
++
+ if ./test-fft
+ then
+ echo OK
+@@ -38,7 +40,7 @@
+
+ echo -n 'Detecting endianness...'
+
+-gcc -o test-endian -Wall -x c - <<'EOF'
++${CC} ${LDFLAGS} ${CFLAGS} -o test-endian -Wall -x c - <<'EOF'
+ #include <stdint.h>
+ #include <stdio.h>
+
+@@ -76,4 +78,4 @@
+
+ echo '#endif' >> config.h
+
+-echo 'Now run make'
+\ No newline at end of file
++echo 'Now run make'