diff options
Diffstat (limited to 'media-libs/stk')
-rw-r--r-- | media-libs/stk/Manifest | 1 | ||||
-rw-r--r-- | media-libs/stk/stk-4.6.1.ebuild | 79 |
2 files changed, 80 insertions, 0 deletions
diff --git a/media-libs/stk/Manifest b/media-libs/stk/Manifest index f6ce8b7166fb..eca239820cc3 100644 --- a/media-libs/stk/Manifest +++ b/media-libs/stk/Manifest @@ -1 +1,2 @@ DIST stk-4.5.1.tar.gz 2413113 BLAKE2B 5eedf936f26acd3e2f377a198b252ee36bcdbb642f0649c0db6c453beb670a1fc725c94af78ff3e075f50068ae6927b628de0174dba598191ed9f9d2f074c17c SHA512 c4c05edfb49b269d5d2518c06abad8e636c4f67a8598f5a03d406bbef04b8b3315d2592d35c8742ce9163b52215ac87b6349c0012e271a43707d109175b6d336 +DIST stk-4.6.1.tar.gz 2593348 BLAKE2B 2cb269b8fb5732d55a394d5b8842c380b6a3e82e7338e972c6d22baf5ba1edee3f03ed699b9950d4a92a7ae3102bbb54f844ffd728c6478ebfb36328a1b89f2a SHA512 2a22078cdb630f7c014a5ab38070fd6a6d1e9aa719401e3190a040cb06b61003cd3095fe1a8890eff59e4fc42594fe893b4c0a8327175e1701c75de7537e1830 diff --git a/media-libs/stk/stk-4.6.1.ebuild b/media-libs/stk/stk-4.6.1.ebuild new file mode 100644 index 000000000000..12eb50caa5f9 --- /dev/null +++ b/media-libs/stk/stk-4.6.1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="Synthesis ToolKit in C++" +HOMEPAGE="https://ccrma.stanford.edu/software/stk/" +SRC_URI="https://ccrma.stanford.edu/software/stk/release/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="alsa debug doc jack oss static-libs" + +BDEPEND=" + virtual/pkgconfig +" +RDEPEND="alsa? ( media-libs/alsa-lib ) + jack? ( virtual/jack )" +DEPEND="${RDEPEND} + dev-lang/perl" + +PATCHES=( + "${FILESDIR}/${PN}-4.5.1" +) + +HTML_DOCS=( + doc/html/. +) + +src_prepare() { + default + 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.so src/libstk* + use static-libs && dolib.a 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 + einstalldocs + fi +} |