--- fluidsynth-1.0.7.ebuild.orig 2007-01-23 20:24:10.000000000 +0100 +++ fluidsynth-1.0.7.ebuild 2007-01-23 20:35:04.000000000 +0100 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/fluidsynth/fluidsynth-1.0.7.ebuild,v 1.8 2006/10/31 22:39:35 the_paya Exp $ -IUSE="alsa jack lash static" +IUSE="alsa debug jack ladspa lash midishare oss static sse" inherit flag-o-matic eutils @@ -16,15 +16,21 @@ KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd" DEPEND="jack? ( media-sound/jack-audio-connection-kit ) - media-libs/ladspa-sdk + ladspa? ( >=media-libs/ladspa-sdk-1.12 + >=media-libs/ladspa-cmt-1.15 ) alsa? ( media-libs/alsa-lib lash? ( >=media-sound/lash-0.5 ) )" # Alsa is required for lash support in this package. +pkg_setup() { + if use lash && ! use alsa; then + ewarn "alsa is required for lash support" + ewarn "continuing with lash disabled" + fi +} src_compile() { local myconf - myconf="--enable-ladspa `use_enable jack jack-support` `use_enable static`" if use alsa; then myconf="${myconf} --enable-alsa `use_enable lash`" @@ -32,7 +38,18 @@ myconf="${myconf} --disable-alsa --disable-lash" fi - econf ${myconf} || die "./configure failed" + # ladcca support is deprecated in place of lash + econf \ + --disable-ladcca \ + $(use_enable ladspa) \ + $(use_enable jack jack-support) \ + $(use_enable static) \ + $(use_enable oss) \ + $(use_enable lash) \ + $(use_enable midishare) \ + $(use_enable sse) \ + $(use_enable debug) \ + ${myconf} || die "./configure failed" emake || die }