diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-02-25 12:46:34 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-02-25 12:46:57 +0100 |
commit | 505076c7286643dfde04182f258ead871fa964fc (patch) | |
tree | 0492af147174640de809dcce95620e70b80094c6 /media-libs/stk/stk-4.5.1.ebuild | |
parent | dev-db/rqlite: add 9999 ebuild (diff) | |
download | gentoo-505076c7286643dfde04182f258ead871fa964fc.tar.gz gentoo-505076c7286643dfde04182f258ead871fa964fc.tar.bz2 gentoo-505076c7286643dfde04182f258ead871fa964fc.zip |
media-libs/stk: bump to 4.5.1
Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'media-libs/stk/stk-4.5.1.ebuild')
-rw-r--r-- | media-libs/stk/stk-4.5.1.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/media-libs/stk/stk-4.5.1.ebuild b/media-libs/stk/stk-4.5.1.ebuild new file mode 100644 index 000000000000..6c5a408f3282 --- /dev/null +++ b/media-libs/stk/stk-4.5.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +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? ( media-sound/jack-audio-connection-kit )" +DEPEND="${RDEPEND} + virtual/pkgconfig + dev-lang/perl" + +src_prepare() { + EPATCH_SUFFIX="patch" epatch "${FILESDIR}/${P}" + 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 +} |