# Copyright 1999-2006 Gentoo Foundation # 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" DESCRIPTION="Fluidsynth is a software real-time synthesizer based on the Soundfont 2 specifications." HOMEPAGE="http://www.fluidsynth.org/" SRC_URI="http://savannah.nongnu.org/download/fluid/${P}${RELEASE_SUFFIX}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd" DEPEND="jack? ( media-sound/jack-audio-connection-kit ) media-libs/ladspa-sdk alsa? ( media-libs/alsa-lib lash? ( >=media-sound/lash-0.5 ) )" # Alsa is required for lash support in this package. 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 econf ${myconf} || die "./configure failed" emake || die } src_install() { make DESTDIR="${D}" install || die dodoc AUTHORS NEWS README THANKS TODO }