link against shared libs. Closes bug #58547. Stable amd64, sparc, x86.
authorJeremy Huddleston <eradicator@gentoo.org>
Mon, 4 Oct 2004 00:01:12 +0000 (00:01 +0000)
committerJeremy Huddleston <eradicator@gentoo.org>
Mon, 4 Oct 2004 00:01:12 +0000 (00:01 +0000)
media-sound/lame/ChangeLog
media-sound/lame/files/lame-3.96.1-shared-frontend.patch [new file with mode: 0644]
media-sound/lame/lame-3.96.1.ebuild

index e01b7dcb30ce59f7dd2e7c6af7e64ddb1cd9a1b3..7d8ce37fd72f333ab2f4c8dcf65384b3a9e04750 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for media-sound/lame
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/lame/ChangeLog,v 1.49 2004/07/30 02:38:31 tgall Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/lame/ChangeLog,v 1.50 2004/10/04 00:01:12 eradicator Exp $
+
+  03 Oct 2004; Jeremy Huddleston <eradicator@gentoo.org>
+  +files/lame-3.96.1-shared-frontend.patch:
+  link against shared libs.  Closes bug #58547.  Stable amd64, sparc, x86.
 
   29 Jul 2004; Tom Gall <tgall@gentoo.org> lame-3.96.ebuild:
   stable on ppc64, bug #55429
diff --git a/media-sound/lame/files/lame-3.96.1-shared-frontend.patch b/media-sound/lame/files/lame-3.96.1-shared-frontend.patch
new file mode 100644 (file)
index 0000000..269355c
--- /dev/null
@@ -0,0 +1,24 @@
+diff -Naur lame-3.96.1.orig/frontend/Makefile.am lame-3.96.1/frontend/Makefile.am
+--- lame-3.96.1.orig/frontend/Makefile.am      2004-01-21 01:41:36.000000000 -0800
++++ lame-3.96.1/frontend/Makefile.am   2004-10-03 16:39:12.415901779 -0700
+@@ -50,7 +50,7 @@
+ endif
+ 
+ CFLAGS = @CFLAGS@ @GTK_CFLAGS@ @FRONTEND_CFLAGS@
+-LDFLAGS = @LDFLAGS@ @FRONTEND_LDFLAGS@ -static
++LDFLAGS = @LDFLAGS@ @FRONTEND_LDFLAGS@
+ 
+ INCLUDES = -I$(top_srcdir)/libmp3lame -I$(top_srcdir)/include -I$(top_builddir)
+ 
+diff -Naur lame-3.96.1.orig/frontend/Makefile.in lame-3.96.1/frontend/Makefile.in
+--- lame-3.96.1.orig/frontend/Makefile.in      2004-01-21 05:50:29.000000000 -0800
++++ lame-3.96.1/frontend/Makefile.in   2004-10-03 16:39:19.711701553 -0700
+@@ -91,7 +91,7 @@
+       $(top_builddir)/libmp3lame/libmp3lame.la \
+       @FRONTEND_LDADD@
+ 
+-LDFLAGS = @LDFLAGS@ @FRONTEND_LDFLAGS@ -static
++LDFLAGS = @LDFLAGS@ @FRONTEND_LDFLAGS@
+ LIBOBJS = @LIBOBJS@
+ LIBS = @LIBS@
+ LIBTOOL = @LIBTOOL@
index d1b87c1a149dd4c75237dbcc306397912b4ae975..27108b006f723ef82dabb8bbf79259a4b07d1d1c 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/lame/lame-3.96.1.ebuild,v 1.2 2004/07/28 17:04:09 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/lame/lame-3.96.1.ebuild,v 1.3 2004/10/04 00:01:12 eradicator Exp $
 
 IUSE="gtk debug"
 
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/lame/${P}.tar.gz"
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~ia64 ~mips"
+KEYWORDS="x86 ~ppc sparc ~alpha ~hppa amd64 ~ia64 ~mips"
 
 RDEPEND=">=sys-libs/ncurses-5.2
        gtk? ( =x11-libs/gtk+-1.2* )"
@@ -25,11 +25,14 @@ src_unpack() {
        unpack ${A}
        cd ${S} || die
 
+       # The frontened tries to link staticly, but we prefer shared libs
+       epatch ${FILESDIR}/${P}-shared-frontend.patch
+
        # If ccc (alpha compiler) is installed on the system, the default
        # configure is broken, fix it to respect CC.  This is only
        # directly broken for ARCH=alpha but would affect anybody with a
        # ccc binary in their PATH.  Bug #41908  (26 Jul 2004 agriffis)
-       epatch ${FILESDIR}/lame-3.96-ccc.patch
+       epatch ${FILESDIR}/${PN}-3.96-ccc.patch
        autoconf || die
 }