1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils toolchain-funcs flag-o-matic
7 DESCRIPTION="Techniques And Paradigms for Expressive Synthesis, Transformation, and Rendering of Environmental Audio"
8 HOMEPAGE="http://taps.cs.princeton.edu/"
9 SRC_URI="http://taps.cs.princeton.edu/release/files/${P}.tgz"
14 IUSE="oss jack alsa doc"
16 RDEPEND="jack? ( media-sound/jack-audio-connection-kit )
17 alsa? ( >=media-libs/alsa-lib-0.9 )
30 epatch "${FILESDIR}/${P}-makefile.patch"
35 use jack && cnt="$((${cnt} + 1))"
36 use alsa && cnt="$((${cnt} + 1))"
37 use oss && cnt="$((${cnt} + 1))"
38 if [[ "${cnt}" -eq 0 ]] ; then
39 eerror "One of the following USE flags is needed: jack, alsa or oss"
40 die "Please set one audio engine type"
41 elif [[ "${cnt}" -ne 1 ]] ; then
42 ewarn "You have set ${P} to use multiple audio engine."
55 einfo "Compiling against ${backend}"
57 filter-flags "-march=*"
59 cd "${S}/scripting/chuck-1.2.0.6/src"
60 emake -f "makefile.${backend}" CC=$(tc-getCC) CXX=$(tc-getCXX) || die "emake failed"
63 emake -f "makefile.${backend}" CC=$(tc-getCC) CXX=$(tc-getCXX) || die "emake failed"
69 dodoc AUTHORS BUGS DEVELOPER PROGRAMMER QUICKSTART README THANKS TODO VERSIONS
71 for dir in `find examples/* -type d -maxdepth 0`; do
73 dodoc `find $dir/* -type f -maxdepth 0`
74 for dir2 in `find $dir/* -type d -maxdepth 0`; do
76 dodoc `find $dir2/* -type f -maxdepth 0`