diff options
-rw-r--r-- | media-sound/zynaddsubfx/Manifest | 1 | ||||
-rw-r--r-- | media-sound/zynaddsubfx/zynaddsubfx-3.0.2.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/media-sound/zynaddsubfx/Manifest b/media-sound/zynaddsubfx/Manifest index d8301f3c5009..059fa501e323 100644 --- a/media-sound/zynaddsubfx/Manifest +++ b/media-sound/zynaddsubfx/Manifest @@ -1 +1,2 @@ DIST zynaddsubfx-3.0.1.tar.bz2 6811606 SHA256 a8017f382be5af9e46e6e8771fb7d7c1fd2e480cf099bbb0c29606b217dd32e2 SHA512 49592e46872ae966461dfc5f7cbd2ebcf3f3a6d43139f6cd0eba65e098fb33370840c0e1f4f224a18adfc97eae9fa5583eca6a48f43b9200d5522cc413b0ce43 WHIRLPOOL 3bfe976e24f10bd94b6b3c1c994a505fcdb65d993cd76360c5b477567a10a3b864f155a035b538d081607b90ab71ed96a116249399dbda6050ce068c8dd5458b +DIST zynaddsubfx-3.0.2.tar.bz2 7979193 SHA256 95defd8250b79fbe7fb69be860df6df05d82263cabf83cf53b391486e910b926 SHA512 96d1df903a6afbaee991221ca30b21a20d97bc6d1cbe5c9fef94f2d1c3fb88e0294c263aec282559885d6e2f5841ad2c80d863af9f58f161791a33a9c0c08f57 WHIRLPOOL 91fbe3c1ab0d424fc244f8454ecbdec2152f676fbd296424555c876963cc80730e6f79c5c4b54bde1b24a02a73ed223f42f89d96b160bf1ad7fd21297ff09ffc diff --git a/media-sound/zynaddsubfx/zynaddsubfx-3.0.2.ebuild b/media-sound/zynaddsubfx/zynaddsubfx-3.0.2.ebuild new file mode 100644 index 000000000000..b07ade848065 --- /dev/null +++ b/media-sound/zynaddsubfx/zynaddsubfx-3.0.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils cmake-utils flag-o-matic multilib + +DESCRIPTION="ZynAddSubFX is an opensource software synthesizer" +HOMEPAGE="http://zynaddsubfx.sourceforge.net/" +SRC_URI="mirror://sourceforge/zynaddsubfx/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="alsa +fltk jack lash" + +RDEPEND=">=dev-libs/mini-xml-2.2.1 + sci-libs/fftw:3.0 + media-libs/liblo + alsa? ( media-libs/alsa-lib ) + fltk? ( >=x11-libs/fltk-1.3:1 ) + jack? ( virtual/jack ) + lash? ( media-sound/lash )" +# portaudio? ( media-libs/portaudio )" +DEPEND="${RDEPEND} + virtual/pkgconfig" +# Upstream uses the following preferences: alsa > jack > portaudio +# At least one of them must be enabled +# We do not support portaudio, so if alsa is disabled force jack. +REQUIRED_USE="!alsa? ( jack )" + +PATCHES=( + "${FILESDIR}"/${PN}-2.5.2-docs.patch +) + +DOCS=( ChangeLog HISTORY.txt README.adoc ) + +src_configure() { + append-cxxflags "-std=c++11" + use lash || sed -i -e 's/lash-1.0/lash_disabled/' "${S}"/src/CMakeLists.txt + mycmakeargs=( + `use fltk && echo "-DGuiModule=fltk" || echo "-DGuiModule=off"` + `use alsa && echo "-DOutputModule=alsa" || echo "-DOutputModule=jack"` + `use alsa && echo "-DAlsaMidiOutput=TRUE" || echo "-DAlsaMidiOutput=FALSE"` + `use jack && echo "-DJackOutput=TRUE" || echo "-DJackOutput=FALSE"` + -DPluginLibDir=$(get_libdir) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + insinto /usr/share/${PN} + doins -r "${S}"/instruments/* +} |