--- /usr/portage/media-sound/fluidsynth/fluidsynth-1.0.7.ebuild 2006-11-01 00:06:03.000000000 +0100 +++ fluidsynth-1.0.7.ebuild 2006-11-12 22:32:45.000000000 +0100 @@ -2,8 +2,6 @@ # 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" - inherit flag-o-matic eutils RELEASE_SUFFIX="a" @@ -14,26 +12,42 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd" +IUSE="alsa coreaudio debug jack ladspa lash midishare oss static sse" 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 ) )" + lash? ( >=media-sound/lash-0.5 ) )" -# Alsa is required for lash support in this package. +pkg_setup() { + # alsa is required for lash support in this package. + if use lash && ! use alsa; then + ewarn " " + ewarn "alsa is required for lash support in this package" + ewarn "please enable alsa support " + ewarn " " + die + 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`" - else - myconf="${myconf} --disable-alsa --disable-lash" - fi + # ladcca support is deprecated in place of lash + econf \ + --disable-ladcca \ + $(use_enable ladspa ladspa) \ + $(use_enable jack jack-support) \ + $(use_enable static static) \ + $(use_enable alsa alsa) \ + $(use_enable coreadio coreaudio) \ + $(use_enable oss oss) \ + $(use_enable lash lash) \ + $(use_enable midishare midishare) \ + $(use_enable sse sse) \ + $(use_enable debug debug) \ + ${myconf} || die "econf failed" - econf ${myconf} || die "./configure failed" - emake || die + emake || die "emake failed" } src_install() {