|
|
# Distributed under the terms of the GNU General Public License v2 | # 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 $ | # $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 | inherit flag-o-matic eutils |
| |
|
|
KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd" | KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd" |
| |
DEPEND="jack? ( media-sound/jack-audio-connection-kit ) | 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 | 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. | # 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() { | src_compile() { |
local myconf | local myconf |
myconf="--enable-ladspa `use_enable jack jack-support` `use_enable static`" |
|
| |
if use alsa; then | if use alsa; then |
myconf="${myconf} --enable-alsa `use_enable lash`" | myconf="${myconf} --enable-alsa `use_enable lash`" |
|
|
myconf="${myconf} --disable-alsa --disable-lash" | myconf="${myconf} --disable-alsa --disable-lash" |
fi | 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 | emake || die |
} | } |
| |