diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-01-08 21:45:04 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-01-08 21:45:04 +0000 |
commit | 65737cf14a7220bd9a487aa2af4ae0e79bd23e86 (patch) | |
tree | 625754b14ae80ac167d1b150c2314b647cd008e6 /media-sound/zynaddsubfx/zynaddsubfx-3.0.3.ebuild | |
parent | 5001a6c7b6da2956f5b17c695b1e0059dc7b8de5 (diff) |
gentoo resync : 08.01.2018
Diffstat (limited to 'media-sound/zynaddsubfx/zynaddsubfx-3.0.3.ebuild')
-rw-r--r-- | media-sound/zynaddsubfx/zynaddsubfx-3.0.3.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/media-sound/zynaddsubfx/zynaddsubfx-3.0.3.ebuild b/media-sound/zynaddsubfx/zynaddsubfx-3.0.3.ebuild new file mode 100644 index 000000000000..a2778f8b90eb --- /dev/null +++ b/media-sound/zynaddsubfx/zynaddsubfx-3.0.3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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}-${PV}-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/* +} |