blob: 3a5c4f8b7131280218b1f558b3dbe5f1078ecff9 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/zynaddsubfx/zynaddsubfx-2.2.1-r4.ebuild,v 1.5 2009/08/01 06:41:04 ssuominen Exp $
EAPI=2
inherit eutils toolchain-funcs
MY_P=ZynAddSubFX-${PV}
DESCRIPTION="ZynAddSubFX is an opensource software synthesizer."
HOMEPAGE="http://zynaddsubfx.sourceforge.net/"
SRC_URI="mirror://sourceforge/zynaddsubfx/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
#IUSE="oss alsa jack mmx"
IUSE="oss alsa jack"
RDEPEND=">=x11-libs/fltk-1.1.2:1.1
=sci-libs/fftw-3*
jack? ( media-sound/jack-audio-connection-kit )
alsa? ( media-libs/alsa-lib )
>=dev-libs/mini-xml-2.2.1"
# portaudio? ( media-libs/portaudio )"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${MY_P}
src_prepare() {
sed -i -e '/CXXFLAGS +=/s:CXXFLAGS +=:override CXXFLAGS +=:' \
-e '/export CXXFLAGS/d' \
-e '/\$(MAKE) -C UI/s:$: CXXFLAGS="${CXXFLAGS}":' \
"${S}/src/Makefile" || die "unable to reset CXXFLAGS overrides."
}
src_compile() {
local FFTW_VERSION=3
local ASM_F2I=NO
local LINUX_MIDIIN=NONE
local LINUX_AUDIOOUT=NONE
if use oss ; then
LINUX_MIDIIN=OSS
LINUX_AUDIOOUT=OSS
use jack && LINUX_AUDIOOUT=OSS_AND_JACK
else
use jack && LINUX_AUDIOOUT=JACK
fi
use alsa && LINUX_MIDIIN=ALSA
# use portaudio && LINUX_AUDIOOUT=PA
# use mmx && ASM_F2I=YES
cd "${S}/src"
make \
FFTW_VERSION=${FFTW_VERSION} \
ASM_F2I=${ASM_F2I} \
LINUX_MIDIIN=${LINUX_MIDIIN} \
LINUX_AUDIOOUT=${LINUX_AUDIOOUT} \
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
CXX="$(tc-getCXX)" \
|| 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 ChangeLog FAQ.txt HISTORY.txt README.txt ZynAddSubFX.lsm bugs.txt
for i in "Arpeggios" "Bass" "Brass" "Choir and Voice" "Drums" \
"Dual" "Fantasy" "Guitar" "Misc" "Noises" "Organ" \
"Pads" "Plucked" "Reed and Wind" "Rhodes" "Splited" \
"Strings" "Synth" "SynthPiano"
do
insinto "/usr/share/${PN}/banks/${i}"
doins "${S}/banks/${i}/"*
done
insinto /usr/share/${PN}/presets
doins "${S}/presets/"*
insinto /usr/share/${PN}
doins "${S}/examples/"*
}
|