summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-10-10 12:34:53 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-10-10 12:34:53 +0000
commit535208befd1435addeabf125554537ca9e77e3ba (patch)
tree4bd868ddc6dae6ad034199424c0f70adcc60bd78 /media-sound/zynaddsubfx
parentRevbump. Respect {C,CXX,LD}FLAGS, bug 241030. Install docs properly. Drop old. (diff)
downloadhistorical-535208befd1435addeabf125554537ca9e77e3ba.tar.gz
historical-535208befd1435addeabf125554537ca9e77e3ba.tar.bz2
historical-535208befd1435addeabf125554537ca9e77e3ba.zip
Update to EAPI=2 and USE deps.
Package-Manager: portage-2.2_rc12/cvs/Linux 2.6.26-gentoo-r1 x86_64
Diffstat (limited to 'media-sound/zynaddsubfx')
-rw-r--r--media-sound/zynaddsubfx/ChangeLog10
-rw-r--r--media-sound/zynaddsubfx/zynaddsubfx-2.2.1-r4.ebuild89
2 files changed, 97 insertions, 2 deletions
diff --git a/media-sound/zynaddsubfx/ChangeLog b/media-sound/zynaddsubfx/ChangeLog
index 85907606b50d..71d7c65a4aea 100644
--- a/media-sound/zynaddsubfx/ChangeLog
+++ b/media-sound/zynaddsubfx/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-sound/zynaddsubfx
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/zynaddsubfx/ChangeLog,v 1.29 2007/10/01 20:08:11 eldad Exp $
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/zynaddsubfx/ChangeLog,v 1.30 2008/10/10 12:34:52 flameeyes Exp $
+
+*zynaddsubfx-2.2.1-r4 (10 Oct 2008)
+
+ 10 Oct 2008; Diego Pettenò <flameeyes@gentoo.org>
+ +zynaddsubfx-2.2.1-r4.ebuild:
+ Update to EAPI=2 and USE deps.
01 Oct 2007; <eldad@gentoo.org> -zynaddsubfx-2.2.0.ebuild,
-zynaddsubfx-2.2.1.ebuild, -zynaddsubfx-2.2.1-r1.ebuild:
diff --git a/media-sound/zynaddsubfx/zynaddsubfx-2.2.1-r4.ebuild b/media-sound/zynaddsubfx/zynaddsubfx-2.2.1-r4.ebuild
new file mode 100644
index 000000000000..85ca298da782
--- /dev/null
+++ b/media-sound/zynaddsubfx/zynaddsubfx-2.2.1-r4.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2008 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.1 2008/10/10 12:34:53 flameeyes 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"
+
+DEPEND=">=x11-libs/fltk-1.1.2
+ =sci-libs/fftw-3*
+ jack? ( media-sound/jack-audio-connection-kit )
+ alsa? ( media-libs/alsa-lib[midi] )
+ >=dev-libs/mini-xml-2.2.1"
+# portaudio? ( media-libs/portaudio )"
+
+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/"*
+}