blob: c928eaf55d00228eaf670e3091f1ecccd976d957 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/spiralmodular/spiralmodular-0.2.2a-r1.ebuild,v 1.4 2006/09/05 19:52:17 gustavoz Exp $
inherit eutils multilib
IUSE="alsa jack"
DESCRIPTION="SSM is a object oriented modular softsynth/ sequencer/ sampler."
HOMEPAGE="http://www.pawfal.org/Software/SSM/"
SRC_URI="mirror://sourceforge/spiralmodular/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
DEPEND=">=x11-libs/fltk-1.1
media-libs/libsndfile
media-libs/liblrdf
alsa? ( media-libs/alsa-lib )
jack? ( media-sound/jack-audio-connection-kit )
media-libs/ladspa-sdk"
S=${WORKDIR}/${PN}-0.2.2
src_unpack() {
unpack ${A}
cd ${S}
epatch "${FILESDIR}/${P}-gcc41.patch"
}
src_compile() {
for file in `find . -name Makefile.in`; do
sed -i s/CXXFLAGS=\\t@CXXFLAGS@/CXXFLAGS=\\t@CXXFLAGS@\ @FLTK_CXXFLAGS@/ $file
sed -i s/CFLAGS\\t=\\t@CFLAGS@/CFLAGS\\t=\\t@CFLAGS@\ @FLTK_CFLAGS@/ $file
done
# NOTE: We can't do use_enable for this package as it believe --enable-a and --disable-a both mean disable
local myconf;
if ! use jack; then
myconf="${myconf} --disable-jack"
fi
if ! use alsa; then
myconf="${myconf} --disable-alsa-midi"
fi
econf ${myconf} || die "configure failed"
emake || die
}
src_install() {
dodir /usr/bin /usr/$(get_libdir) /usr/share/man /usr/share/info
dodoc Examples/*
make bindir=${D}/usr/bin libdir=${D}/usr/$(get_libdir) mandir=${D}/usr/share/man infodir=${D}/usr/share/info datadir=${D}/usr/share install || die
}
pkg_postinst() {
einfo
einfo "Remember to remove any old ~/.sprialmodular files"
einfo
}
|