summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2007-06-29 15:38:25 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2007-06-29 15:38:25 +0000
commit033f7d7da757406be2ea1d77334e17406fcb2d0e (patch)
treeb8937bf1eb5ce158fbe026cc2bb958daf1688503 /media-plugins/swh-plugins
parentFix libgpod dep and use absolute path for configure (diff)
downloadhistorical-033f7d7da757406be2ea1d77334e17406fcb2d0e.tar.gz
historical-033f7d7da757406be2ea1d77334e17406fcb2d0e.tar.bz2
historical-033f7d7da757406be2ea1d77334e17406fcb2d0e.zip
Replace append of -fPIC with a proper patch for PIC support, remove bad -lintl linking, add another patch to fix plugins directory choice and one to fix the extra CFLAGS; replace ppc-macos checks with userland_Darwin and add it to IUSE; make pkgconfig a buildtime-only dependency, remove sed dependency.
Package-Manager: portage-2.1.3_rc6
Diffstat (limited to 'media-plugins/swh-plugins')
-rw-r--r--media-plugins/swh-plugins/ChangeLog12
-rw-r--r--media-plugins/swh-plugins/Manifest38
-rw-r--r--media-plugins/swh-plugins/files/swh-plugins-0.4.15-pic.patch135
-rw-r--r--media-plugins/swh-plugins/files/swh-plugins-0.4.15-plugindir.patch13
-rw-r--r--media-plugins/swh-plugins/files/swh-plugins-0.4.15-riceitdown.patch23
-rw-r--r--media-plugins/swh-plugins/swh-plugins-0.4.15.ebuild37
6 files changed, 233 insertions, 25 deletions
diff --git a/media-plugins/swh-plugins/ChangeLog b/media-plugins/swh-plugins/ChangeLog
index 46f53537bc38..104562ff559b 100644
--- a/media-plugins/swh-plugins/ChangeLog
+++ b/media-plugins/swh-plugins/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for media-plugins/swh-plugins
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/swh-plugins/ChangeLog,v 1.32 2007/06/16 14:28:18 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/swh-plugins/ChangeLog,v 1.33 2007/06/29 15:38:25 flameeyes Exp $
+
+ 29 Jun 2007; Diego Pettenò <flameeyes@gentoo.org>
+ +files/swh-plugins-0.4.15-pic.patch,
+ +files/swh-plugins-0.4.15-plugindir.patch,
+ +files/swh-plugins-0.4.15-riceitdown.patch, swh-plugins-0.4.15.ebuild:
+ Replace append of -fPIC with a proper patch for PIC support, remove bad
+ -lintl linking, add another patch to fix plugins directory choice and one to
+ fix the extra CFLAGS; replace ppc-macos checks with userland_Darwin and add
+ it to IUSE; make pkgconfig a buildtime-only dependency, remove sed
+ dependency.
*swh-plugins-0.4.15 (16 Jun 2007)
diff --git a/media-plugins/swh-plugins/Manifest b/media-plugins/swh-plugins/Manifest
index b3dfa8118f02..b634a7528d4d 100644
--- a/media-plugins/swh-plugins/Manifest
+++ b/media-plugins/swh-plugins/Manifest
@@ -1,17 +1,32 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX swh-plugins-0.4.15-pic.patch 5377 RMD160 c742de5874450c12560d8f2975754ca139dab453 SHA1 1230c4dd8125e587eb8717bd9dedf7bf93ebc5de SHA256 502e82c78e4011df78321106a26b925ef3c4fd11361a9beaf4ae8c828450c4f9
+MD5 bf4ecc3cfa56cb2ef8fa0d96f840e40d files/swh-plugins-0.4.15-pic.patch 5377
+RMD160 c742de5874450c12560d8f2975754ca139dab453 files/swh-plugins-0.4.15-pic.patch 5377
+SHA256 502e82c78e4011df78321106a26b925ef3c4fd11361a9beaf4ae8c828450c4f9 files/swh-plugins-0.4.15-pic.patch 5377
+AUX swh-plugins-0.4.15-plugindir.patch 647 RMD160 753cd8d9b825f52ab94ae819f45302ca058e0d9b SHA1 e32abae28884840e5702de06721444d2484e71cb SHA256 11a38b7811565a11930e33cd8c6c3c6dc765146dab9adff6f43b9f73c05c4d92
+MD5 5d0ca1e0eb1d44ee1a1de05ac835b2b3 files/swh-plugins-0.4.15-plugindir.patch 647
+RMD160 753cd8d9b825f52ab94ae819f45302ca058e0d9b files/swh-plugins-0.4.15-plugindir.patch 647
+SHA256 11a38b7811565a11930e33cd8c6c3c6dc765146dab9adff6f43b9f73c05c4d92 files/swh-plugins-0.4.15-plugindir.patch 647
+AUX swh-plugins-0.4.15-riceitdown.patch 1157 RMD160 f47b061d4baffc72197a76ae50dd5f451ae35d03 SHA1 af2bf463803dd087dcb4df6aa4662b701b965f9b SHA256 9bab8b8e2ea112bb5b021f5b98bb9c6ebc36774cd037f29280c4cf9b9ec1b8e3
+MD5 40834a22c729121f25f57f60808de5c1 files/swh-plugins-0.4.15-riceitdown.patch 1157
+RMD160 f47b061d4baffc72197a76ae50dd5f451ae35d03 files/swh-plugins-0.4.15-riceitdown.patch 1157
+SHA256 9bab8b8e2ea112bb5b021f5b98bb9c6ebc36774cd037f29280c4cf9b9ec1b8e3 files/swh-plugins-0.4.15-riceitdown.patch 1157
DIST swh-plugins-0.4.14.tar.gz 1008445 RMD160 a69370d245fcf81f3a7c6bfdcb47393f2dd8db9a SHA1 346986410963ab83b6f332b67189ab97c696124e SHA256 25de958e1e1fb395d8830d934c9692825748e374db319318fe03880585bc9a5a
DIST swh-plugins-0.4.15.tar.gz 1051623 RMD160 7b84a6b6269227a8c9b7091b3f3f08b5df3cb60d SHA1 a9aa0b1b71a95fe91ffcda60146559b3ad40ae90 SHA256 d05ee8a4f4d92e828412bce3449a034f6ef16bb630eaf60f8fe4e15a89168640
EBUILD swh-plugins-0.4.14.ebuild 1399 RMD160 1d6107cafdb49af952ef53a0eff40b7e3a3d6d2e SHA1 cd625032abffaee524646161fe98b7409a77f515 SHA256 2fb8d32b103720020bf213b892e2fd989474d8e30d2401761c25f1a16d1f5d07
MD5 d1823279d4618cf2afc42a74d6f9453e swh-plugins-0.4.14.ebuild 1399
RMD160 1d6107cafdb49af952ef53a0eff40b7e3a3d6d2e swh-plugins-0.4.14.ebuild 1399
SHA256 2fb8d32b103720020bf213b892e2fd989474d8e30d2401761c25f1a16d1f5d07 swh-plugins-0.4.14.ebuild 1399
-EBUILD swh-plugins-0.4.15.ebuild 1541 RMD160 cccd8df580d025d3d0fb4542a86efcf5844c05f7 SHA1 7c241d187faf9ff0581691fac63c31a71d0f3f63 SHA256 99207831ba32f14b27852067d11262650d45c65b749827d0910ae6551e15ff2a
-MD5 45cbe0330c17333bd8765a7d1844ef03 swh-plugins-0.4.15.ebuild 1541
-RMD160 cccd8df580d025d3d0fb4542a86efcf5844c05f7 swh-plugins-0.4.15.ebuild 1541
-SHA256 99207831ba32f14b27852067d11262650d45c65b749827d0910ae6551e15ff2a swh-plugins-0.4.15.ebuild 1541
-MISC ChangeLog 5470 RMD160 abc2061db68a409783bd0007542a3906cf11c0f7 SHA1 dc8d421a7d53ecbee08e5b58956fcc4deba09455 SHA256 0e613552fe4faa05975331ddc161791b287609761534b396ef411b2cb6fa2e5a
-MD5 8e5e0c97ce595d28bb29e84a948f24c1 ChangeLog 5470
-RMD160 abc2061db68a409783bd0007542a3906cf11c0f7 ChangeLog 5470
-SHA256 0e613552fe4faa05975331ddc161791b287609761534b396ef411b2cb6fa2e5a ChangeLog 5470
+EBUILD swh-plugins-0.4.15.ebuild 1647 RMD160 96b65bc765b7244a79420e614fbfe746542d212c SHA1 e78d479eff472b81ad587fa4b714de1ed3f53883 SHA256 676deab05a52beef833508e2e25e66f888c1cd7a4298f2575ebbc09cb5e83312
+MD5 44530bf894edc6a31666a9fa747f91cf swh-plugins-0.4.15.ebuild 1647
+RMD160 96b65bc765b7244a79420e614fbfe746542d212c swh-plugins-0.4.15.ebuild 1647
+SHA256 676deab05a52beef833508e2e25e66f888c1cd7a4298f2575ebbc09cb5e83312 swh-plugins-0.4.15.ebuild 1647
+MISC ChangeLog 6000 RMD160 268aeab34462f6f655b640e915b222949fb6bbb9 SHA1 249478de20a73946046d6e95274b406cbde8d85e SHA256 778b9ef61e4581d772d6ef666cdc368d3f9f90e59cc101fd15c0519d11f94fae
+MD5 9869edb5f1c59e75e3aedb469ca505d4 ChangeLog 6000
+RMD160 268aeab34462f6f655b640e915b222949fb6bbb9 ChangeLog 6000
+SHA256 778b9ef61e4581d772d6ef666cdc368d3f9f90e59cc101fd15c0519d11f94fae ChangeLog 6000
MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b
MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e metadata.xml 158
@@ -22,3 +37,10 @@ SHA256 ed207bb91b276afe86457ae229d743f37513b26a0e027ff5205dff26d8759d13 files/di
MD5 abdcbaf3088598d8f5dac4d69c1c20c4 files/digest-swh-plugins-0.4.15 259
RMD160 fb5e510ed24c3bd7c495771bcd2709ae2f661b38 files/digest-swh-plugins-0.4.15 259
SHA256 5df2c6072a17710e6d3066002422b1aef18dae11288b569fef25d49d8ddcc074 files/digest-swh-plugins-0.4.15 259
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.4 (GNU/Linux)
+
+iD8DBQFGhSeaAiZjviIA2XgRAkkbAKCIH0//1q2rGjuGDBDWhYzoypyvsgCfWsKU
+VTcSbIZsUfRQvFTUvkjr39s=
+=m3VU
+-----END PGP SIGNATURE-----
diff --git a/media-plugins/swh-plugins/files/swh-plugins-0.4.15-pic.patch b/media-plugins/swh-plugins/files/swh-plugins-0.4.15-pic.patch
new file mode 100644
index 000000000000..58fcd64bce88
--- /dev/null
+++ b/media-plugins/swh-plugins/files/swh-plugins-0.4.15-pic.patch
@@ -0,0 +1,135 @@
+Index: swh-plugins-0.4.15/gsm/Makefile.am
+===================================================================
+--- swh-plugins-0.4.15.orig/gsm/Makefile.am
++++ swh-plugins-0.4.15/gsm/Makefile.am
+@@ -2,12 +2,12 @@ LIBTOOL=libtool
+ RANLIB=ranlib
+
+ noinst_HEADERS = gsm.h config.h private.h proto.h unproto.h
+-noinst_LIBRARIES = libgsm.a
++noinst_LTLIBRARIES = libgsm.la
+
+ CFILES = add.c decode.c gsm_decode.c gsm_encode.c long_term.c preprocess.c \
+ short_term.c code.c gsm_create.c gsm_destroy.c gsm_option.c lpc.c rpe.c table.c
+
+-libgsm_a_SOURCES = $(CFILES) $(noinst_HEADERS)
++libgsm_la_SOURCES = $(CFILES) $(noinst_HEADERS)
+
+ # Disable autoheader.
+ AUTOHEADER=echo
+Index: swh-plugins-0.4.15/Makefile.am
+===================================================================
+--- swh-plugins-0.4.15.orig/Makefile.am
++++ swh-plugins-0.4.15/Makefile.am
+@@ -48,10 +48,10 @@ DESTDIR = $(INSTALL_ROOT)
+ DISTFN = $(distdir)
+
+ # Files needed for FFT based plugins
+-pitch_scale_1193_la_LIBADD = util/libpitchscale.a $(FFTW_LIBS)
++pitch_scale_1193_la_LIBADD = util/libpitchscale.la $(FFTW_LIBS)
+ pitch_scale_1193_la_CFLAGS = $(FFTW_CFLAGS)
+ pitch_scale_1193_la_SOURCES = pitch_scale_1193.c
+-pitch_scale_1194_la_LIBADD = util/libpitchscale.a $(FFTW_LIBS)
++pitch_scale_1194_la_LIBADD = util/libpitchscale.la $(FFTW_LIBS)
+ pitch_scale_1194_la_CFLAGS = $(FFTW_CFLAGS)
+ pitch_scale_1194_la_SOURCES = pitch_scale_1194.c
+ mbeq_1197_la_LIBADD = $(FFTW_LIBS)
+@@ -60,33 +60,33 @@ mbeq_1197_la_SOURCES = mbeq_1197.c
+ imp_1199_la_LIBADD = $(FFTW_LIBS)
+ imp_1199_la_CFLAGS = $(FFTW_CFLAGS)
+ imp_1199_la_DEPENDENCIES = @top_srcdir@/impulses/*
+-hermes_filter_1200_la_DEPENDENCIES = util/libblo.a
+-hermes_filter_1200_la_LIBADD = util/libblo.a
+-fm_osc_1415_la_DEPENDENCIES = util/libblo.a
+-fm_osc_1415_la_LIBADD = util/libblo.a
+-analogue_osc_1416_la_DEPENDENCIES = util/libblo.a
+-analogue_osc_1416_la_LIBADD = util/libblo.a
+-sc1_1425_la_LIBADD = util/libdb.a util/librms.a
+-sc2_1426_la_LIBADD = util/libdb.a util/librms.a
+-sc3_1427_la_LIBADD = util/libdb.a util/librms.a
+-sc4_1882_la_LIBADD = util/libdb.a util/librms.a
+-sc4m_1916_la_LIBADD = util/libdb.a util/librms.a
+-se4_1883_la_LIBADD = util/libdb.a util/librms.a
+-gsm_1215_la_LIBADD = gsm/libgsm.a
+-gverb_1216_la_LIBADD = gverb/libgverb.a
++hermes_filter_1200_la_DEPENDENCIES = util/libblo.la
++hermes_filter_1200_la_LIBADD = util/libblo.la
++fm_osc_1415_la_DEPENDENCIES = util/libblo.la
++fm_osc_1415_la_LIBADD = util/libblo.la
++analogue_osc_1416_la_DEPENDENCIES = util/libblo.la
++analogue_osc_1416_la_LIBADD = util/libblo.la
++sc1_1425_la_LIBADD = util/libdb.la util/librms.la
++sc2_1426_la_LIBADD = util/libdb.la util/librms.la
++sc3_1427_la_LIBADD = util/libdb.la util/librms.la
++sc4_1882_la_LIBADD = util/libdb.la util/librms.la
++sc4m_1916_la_LIBADD = util/libdb.la util/librms.la
++se4_1883_la_LIBADD = util/libdb.la util/librms.la
++gsm_1215_la_LIBADD = gsm/libgsm.la
++gverb_1216_la_LIBADD = gverb/libgverb.la
+ lcr_delay_1436_la_DEPENDENCIES = util/biquad.h
+
+-highpass_iir_1890_la_LIBADD = util/libiir.a
++highpass_iir_1890_la_LIBADD = util/libiir.la
+ highpass_iir_1890_la_SOURCES = highpass_iir_1890.c
+-lowpass_iir_1891_la_LIBADD = util/libiir.a
++lowpass_iir_1891_la_LIBADD = util/libiir.la
+ lowpass_iir_1891_la_SOURCES = lowpass_iir_1891.c
+-bandpass_iir_1892_la_LIBADD = util/libiir.a
++bandpass_iir_1892_la_LIBADD = util/libiir.la
+ bandpass_iir_1892_la_SOURCES = bandpass_iir_1892.c
+-bandpass_a_iir_1893_la_LIBADD = util/libiir.a
++bandpass_a_iir_1893_la_LIBADD = util/libiir.la
+ bandpass_a_iir_1893_la_SOURCES = bandpass_a_iir_1893.c
+-notch_iir_1894_la_LIBADD = util/libiir.a
++notch_iir_1894_la_LIBADD = util/libiir.la
+ notch_iir_1894_la_SOURCES = notch_iir_1894.c
+-butterworth_1902_la_LIBADD = util/libiir.a
++butterworth_1902_la_LIBADD = util/libiir.la
+ butterworth_1902_la_SOURCES = butterworth_1902.c
+
+ # Rule to build .c files from XML source
+Index: swh-plugins-0.4.15/util/Makefile.am
+===================================================================
+--- swh-plugins-0.4.15.orig/util/Makefile.am
++++ swh-plugins-0.4.15/util/Makefile.am
+@@ -3,16 +3,16 @@ RANLIB=ranlib
+
+ noinst_HEADERS = rms.h db.h blo.h pitchscale.h waveguide_nl.h biquad.h iir.h buffer.h ls_filter.h
+
+-noinst_LIBRARIES = librms.a libdb.a libblo.a libpitchscale.a libiir.a
++noinst_LTLIBRARIES = librms.la libdb.la libblo.la libpitchscale.la libiir.la
+
+-librms_a_SOURCES = rms.c
+-libdb_a_SOURCES = db.c
+-libblo_a_SOURCES = blo.c
+-libblo_a_CFLAGS = -I@top_srcdir@
+-libpitchscale_a_SOURCES = pitchscale.c
+-libpitchscale_a_CFLAGS = $(FFTW_CFLAGS)
++librms_la_SOURCES = rms.c
++libdb_la_SOURCES = db.c
++libblo_la_SOURCES = blo.c
++libblo_la_CFLAGS = -I@top_srcdir@
++libpitchscale_la_SOURCES = pitchscale.c
++libpitchscale_la_CFLAGS = $(FFTW_CFLAGS)
+ #libpitchscale_a_LIBS = $(FFTW_LIBS)
+-libiir_a_SOURCES = iir.c
++libiir_la_SOURCES = iir.c
+ #libbuffer_a_SOURCES = buffer.c
+ # Disable autoheader.
+ AUTOHEADER=echo
+Index: swh-plugins-0.4.15/gverb/Makefile.am
+===================================================================
+--- swh-plugins-0.4.15.orig/gverb/Makefile.am
++++ swh-plugins-0.4.15/gverb/Makefile.am
+@@ -3,9 +3,9 @@ RANLIB=ranlib
+
+ noinst_HEADERS = gverb.h gverbdsp.h
+
+-noinst_LIBRARIES = libgverb.a
++noinst_LTLIBRARIES = libgverb.la
+
+-libgverb_a_SOURCES = gverb.c gverbdsp.c
++libgverb_la_SOURCES = gverb.c gverbdsp.c
+
+ # Disable autoheader.
+ AUTOHEADER=echo
diff --git a/media-plugins/swh-plugins/files/swh-plugins-0.4.15-plugindir.patch b/media-plugins/swh-plugins/files/swh-plugins-0.4.15-plugindir.patch
new file mode 100644
index 000000000000..011ea9882090
--- /dev/null
+++ b/media-plugins/swh-plugins/files/swh-plugins-0.4.15-plugindir.patch
@@ -0,0 +1,13 @@
+Index: swh-plugins-0.4.15/Makefile.am
+===================================================================
+--- swh-plugins-0.4.15.orig/Makefile.am
++++ swh-plugins-0.4.15/Makefile.am
+@@ -39,7 +39,7 @@ SUBDIRS = m4 po util gsm gverb metadata
+ EXTRA_DIST = @top_srcdir@/*.xml @top_srcdir@/*.c @top_srcdir@/*.h \
+ @top_srcdir@/*.dtd @top_srcdir@/*.pl @top_srcdir@/*.css \
+ @top_srcdir@/impulses/*.h autogen.sh bozosoity-checker.pl
+-plugindir = @prefix@/lib/ladspa
++plugindir = $(libdir)/ladspa
+
+ # Uncomment below for Darwin support. Or add a conditional for this.
+ #AM_CFLAGS = -fno-common -flat_namespace -bundle -undefined suppress -lbundle1.o
diff --git a/media-plugins/swh-plugins/files/swh-plugins-0.4.15-riceitdown.patch b/media-plugins/swh-plugins/files/swh-plugins-0.4.15-riceitdown.patch
new file mode 100644
index 000000000000..f514425e2a94
--- /dev/null
+++ b/media-plugins/swh-plugins/files/swh-plugins-0.4.15-riceitdown.patch
@@ -0,0 +1,23 @@
+Index: swh-plugins-0.4.15/configure.in
+===================================================================
+--- swh-plugins-0.4.15.orig/configure.in
++++ swh-plugins-0.4.15/configure.in
+@@ -99,12 +99,12 @@ else
+ AC_MSG_WARN([Can't find architecture specifaction in CFLAGS, picking one from build host CPU type])
+ AC_MSG_WARN([May result in non-portable code])
+ dnl For gcc use:
+- MACHINE="-march=${build_cpu}"
+- if test ${build_cpu} = "powerpc"; then MACHINE=""; fi
+- if test ${build_cpu} = "powerpc64"; then MACHINE=""; fi
+- if test ${build_cpu} = "x86_64"; then MACHINE=""; fi
+-
+- CFLAGS="$CFLAGS -Wall -O3 -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -fPIC -DPIC ${MACHINE} ${USE_SSE} ${DARWIN_CFLAGS}"
++ # MACHINE="-march=${build_cpu}"
++ # if test ${build_cpu} = "powerpc"; then MACHINE=""; fi
++ # if test ${build_cpu} = "powerpc64"; then MACHINE=""; fi
++ # if test ${build_cpu} = "x86_64"; then MACHINE=""; fi
++ #
++ # CFLAGS="$CFLAGS -Wall -O3 -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -fPIC -DPIC ${MACHINE} ${USE_SSE} ${DARWIN_CFLAGS}"
+
+ dnl For Intel's C compiler use:
+ dnl CC="icc"
diff --git a/media-plugins/swh-plugins/swh-plugins-0.4.15.ebuild b/media-plugins/swh-plugins/swh-plugins-0.4.15.ebuild
index b805bb7a9926..d6c99a9c4ba2 100644
--- a/media-plugins/swh-plugins/swh-plugins-0.4.15.ebuild
+++ b/media-plugins/swh-plugins/swh-plugins-0.4.15.ebuild
@@ -1,8 +1,10 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/swh-plugins/swh-plugins-0.4.15.ebuild,v 1.1 2007/06/16 14:28:18 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/swh-plugins/swh-plugins-0.4.15.ebuild,v 1.2 2007/06/29 15:38:25 flameeyes Exp $
-inherit flag-o-matic eutils
+WANT_AUTOMAKE="1.8"
+
+inherit eutils autotools
DESCRIPTION="Large collection of LADSPA audio plugins/effects"
HOMEPAGE="http://plugin.org.uk"
@@ -11,34 +13,37 @@ SRC_URI="http://plugin.org.uk/releases/${PV}/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~ppc-macos ~x86"
-IUSE="3dnow nls sse"
+IUSE="3dnow nls sse userland_Darwin"
-DEPEND="media-libs/ladspa-sdk
- dev-util/pkgconfig
- >=sci-libs/fftw-3
- >=sys-apps/sed-4"
+RDEPEND="media-libs/ladspa-sdk
+ >=sci-libs/fftw-3"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
src_unpack() {
unpack ${A}
- use amd64 && append-flags -fPIC
- use ppc && append-flags -fPIC
- use ppc-macos && append-flags -fPIC
- use ppc-macos && append-ldflags -lintl -lsystem -lm
-
cd "${S}"
- sed -i -e '/MACHINE=/s/.*/MACHINE=""/' configure
- sed -i -r "s/(^plugindir.*)(lib)/\1$(get_libdir)/g" Makefile.in
+ epatch "${FILESDIR}/${P}-pic.patch"
+ epatch "${FILESDIR}/${P}-plugindir.patch"
+ epatch "${FILESDIR}/${P}-riceitdown.patch"
+
+ # This is needed to run autoreconf with newer autotools
+ sed -i -e 's:@MKINSTALLDIRS@:$(top_srcdir)/mkinstalldirs:' \
+ po/Makefile.in.in || die "mkinstalldirs sed failed"
+
+ eautoreconf
+ elibtoolize
}
src_compile() {
- use ppc-macos && myconf="${myconf} --enable-darwin"
econf ${myconf} \
$(use_enable sse) \
$(use_enable 3dnow) \
$(use_enable nls) \
+ $(use_enable userland_Darwin darwin) \
--enable-fast-install \
- --disable-dependency-tracking
+ --disable-dependency-tracking || die "econf failed"
emake || die "emake failed."
}