diff options
author | Alexis Ballier <aballier@gentoo.org> | 2011-01-02 14:23:05 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2011-01-02 14:23:05 +0000 |
commit | e744d9e2defd65d83269e0985b3cd83c09d84688 (patch) | |
tree | 293b014996d283bff64b4bb80fdbd0765fb66753 /media-libs/stk/stk-4.4.2.ebuild | |
parent | Version bump. (diff) | |
download | gentoo-2-e744d9e2defd65d83269e0985b3cd83c09d84688.tar.gz gentoo-2-e744d9e2defd65d83269e0985b3cd83c09d84688.tar.bz2 gentoo-2-e744d9e2defd65d83269e0985b3cd83c09d84688.zip |
version bump, by Christopher Harvey <chris@basementcode.com>, bug #309037, with some modifications and patches by me.
(Portage version: 2.2.0_alpha11/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/stk/stk-4.4.2.ebuild')
-rw-r--r-- | media-libs/stk/stk-4.4.2.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/media-libs/stk/stk-4.4.2.ebuild b/media-libs/stk/stk-4.4.2.ebuild new file mode 100644 index 000000000000..297cf6c32ce6 --- /dev/null +++ b/media-libs/stk/stk-4.4.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/stk/stk-4.4.2.ebuild,v 1.1 2011/01/02 14:23:05 aballier Exp $ + +EAPI="2" +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" + +RDEPEND="alsa? ( media-libs/alsa-lib ) + jack? ( media-sound/jack-audio-connection-kit )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + dev-lang/perl" + +src_prepare() { + EPATCH_SUFFIX="patch" epatch "${FILESDIR}/${PF}" + 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} \ + RAWWAVE_PATH=/usr/share/stk/rawwaves/ +} + +src_install() { + dodoc README || die "Failed to install README" + # install the lib + dolib src/libstk.* || die "Failed to install libstk.*" + # install headers + insinto /usr/include/stk || die "Failed to create header directory." + doins include/*.h include/*.msg include/*.tbl \ + || die "Failed to install msg, tbl and h files." + # install rawwaves + insinto /usr/share/stk/rawwaves || die "Failed to create rawwave directory." + doins rawwaves/*.raw || die "Failed to install rawwave files." + # install docs + if use doc; then + dohtml -r doc/html/* || die "Failed to install docs." + fi +} |