# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/stk/stk-4.3.1.ebuild,v 1.4 2009/07/30 11:28:31 ssuominen Exp $ 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_compile() { econf \ $(use_enable alsa) \ $(use_enable oss) \ $(use_enable debug) \ $(use_enable jack) \ RAWWAVE_PATH=/usr/share/stk/rawwaves/ \ || die "configure failed!" # compile libstk emake || die "make in src failed!" } src_install() { cd ${PVR} dodoc README # install the lib dolib src/libstk.* # install headers insinto /usr/include/stk doins include/*.h include/*.msg include/*.tbl # install rawwaves insinto /usr/share/stk/rawwaves doins rawwaves/*.raw # install docs if use doc; then dohtml -r doc/html/* fi }