diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2018-01-01 20:28:13 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2018-01-01 20:28:13 +0100 |
commit | 549e9f4e1565ec00b8c6f9fbe3a2e9d595638ba3 (patch) | |
tree | e761e6599f5dbe052dd13987df3f9be9d71932c8 /media-libs/stk | |
parent | media-libs/bio2jack: bumped to eapi 6 and switched from media-sound/jack-audi... (diff) | |
download | gentoo-549e9f4e1565ec00b8c6f9fbe3a2e9d595638ba3.tar.gz gentoo-549e9f4e1565ec00b8c6f9fbe3a2e9d595638ba3.tar.bz2 gentoo-549e9f4e1565ec00b8c6f9fbe3a2e9d595638ba3.zip |
media-libs/stk: bumped eapi and switched from media-sound/jack-audio-connection-kit to virtual/jack
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'media-libs/stk')
-rw-r--r-- | media-libs/stk/stk-4.5.1-r1.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/media-libs/stk/stk-4.5.1-r1.ebuild b/media-libs/stk/stk-4.5.1-r1.ebuild new file mode 100644 index 000000000000..71f85aada4bb --- /dev/null +++ b/media-libs/stk/stk-4.5.1-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils autotools + +DESCRIPTION="Synthesis ToolKit in C++" +HOMEPAGE="http://ccrma.stanford.edu/software/stk/" +SRC_URI="http://ccrma.stanford.edu/software/stk/release/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="alsa debug doc jack oss static-libs" + +RDEPEND="alsa? ( media-libs/alsa-lib ) + jack? ( virtual/jack )" +DEPEND="${RDEPEND} + virtual/pkgconfig + dev-lang/perl" + +src_prepare() { + EPATCH_SUFFIX="patch" epatch "${FILESDIR}/${P}" + eapply_user + + eautoreconf +} + +src_configure() { + #breaks with --disable-foo...uses as --enable-foo + local myconf + if use debug; then + myconf="${myconf} --enable-debug" + fi + if use oss; then + myconf="${myconf} --with-oss" + fi + if use alsa; then + myconf="${myconf} --with-alsa" + fi + if use jack; then + myconf="${myconf} --with-jack" + fi + + econf ${myconf} \ + --enable-shared \ + $(use_enable static-libs static) \ + RAWWAVE_PATH=/usr/share/stk/rawwaves/ +} + +src_install() { + dodoc README.md + + # install the lib + dolib src/libstk* + + # install headers + insinto /usr/include/stk + doins include/*.h + + # install rawwaves + insinto /usr/share/stk/rawwaves + doins rawwaves/*.raw + + # install docs + if use doc; then + dohtml -r doc/html/* + fi +} |