summaryrefslogtreecommitdiff
blob: fe617422a8d5374c31cef55ab1921e4b01517837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/fluidsynth/fluidsynth-1.0.1.ebuild,v 1.8 2004/06/24 23:59:23 agriffis Exp $

DESCRIPTION="IIWU Synth 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/stable.pkg/1.0.1/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"

IUSE="alsa"

DEPEND="media-libs/ladspa-sdk \
	alsa? ( media-libs/alsa-lib )"

# Removed as it doesn't support new ladcca yet ... bug #46916
# ladcca? ( media-libs/ladcca ) \

src_compile() {
	local myconfig
	myconfig="--enable-jack-support --enable-ladspa"
#	use ladcca || myconfig="--disable-ladcca ${myconfig}"
	use alsa || myconfig="--disable-alsa ${myconfig}"
	# use sse && myconfig="--enable-SSE ${myconfig}"
	# NOTE: sse use variable is broken now to do a missing header file in
	# the current release. Waiting for new release to fix.
	./configure \
		${myconfig} \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man || die "./configure failed"
	emake || die
}

src_install() {
	make \
		prefix=${D}/usr \
		mandir=${D}/usr/share/man \
		infodir=${D}/usr/share/info \
		install || die
	dodoc AUTHORS COPYING INSTALL NEWS README THANKS TODO
}