# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="STK - The Synthesis ToolKit in C++" HOMEPAGE="http://ccrma.stanford.edu/software/stk/" SRC_URI="http://ccrma.stanford.edu/software/stk/release/${P}.tar.gz" LICENSE="" SLOT="0" KEYWORDS="amd64 x86" IUSE="oss jack alsa" S=${WORKDIR}/${P} DEPEND="media-sound/jack-audio-connection-kit >=media-libs/alsa-lib-0.9" RDEPEND="" src_unpack() { unpack ${A} cd ${S} } src_compile() { local myconf if use jack ; then myconf="${myconf} --with-jack" fi if use alsa ; then myconf="${myconf} --with-alsa" fi if use oss ; then myconf="${myconf} --with-oss" fi econf ${myconf} || die # econf \ # $(use_enable alsa) \ # $(use_enable jack) \ # $(use_enable oss) || die cd ${S}/src emake || die } src_install() { # make install DESTDIR=${D} || die "Install failed" einfo "in src_install, S is ${S}" # cp ./libstk.a ${D}/lib/ cd ${S}/src dolib.a libstk.a # dodir /usr/include/STK insinto /usr/include/STK cd ${S}/include doins *.h }