summaryrefslogtreecommitdiff
blob: 4dd04ca0066c6ac89842f83b29602c5b53751770 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/zynaddsubfx/zynaddsubfx-1.4.2.ebuild,v 1.2 2003/09/10 22:40:44 msterret Exp $ 

MY_P=ZynAddSubFX-${PV}
DESCRIPTION="ZynAddSubFX is a opensource software synthesizer."
HOMEPAGE="http://zynaddsubfx.sourceforge.net/"
SRC_URI="mirror://sourceforge/zynaddsubfx/${MY_P}.tar.gz"

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

IUSE=""

DEPEND=">=x11-libs/fltk-1.1.2
	dev-libs/fftw
	virtual/jack"

S="${WORKDIR}/${MY_P}"

src_compile() {
	# patched to enable jack and fix compile scripts for
	# spliter and controller
	epatch ${FILESDIR}/${P}.patch
	cd ${S}/src
	make || die "compile failed"
	cd ${S}/ExternalPrograms/Spliter
	./compile.sh
	cd ${S}/ExternalPrograms/Controller
	./compile.sh
}

src_install() {
	dobin ${S}/src/zynaddsubfx
	dobin ${S}/ExternalPrograms/Spliter/spliter
	dobin ${S}/ExternalPrograms/Controller/controller
	dodoc COPYING FAQ.txt README.txt HISTORY.txt
	dodir /usr/share/${PN}
	cp -r ${S}/examples/* ${D}/usr/share/${PN}
}