1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="ChuCK - On-the-fly Audio Programming"
8 HOMEPAGE="http://chuck.cs.princeton.edu/release/"
9 SRC_URI="http://chuck.cs.princeton.edu/release/files/${P}.tgz"
14 IUSE="oss jack alsa doc"
16 DEPEND="jack? ( media-sound/jack-audio-connection-kit )
17 alsa? ( >=media-libs/alsa-lib-0.9 )
25 epatch "${FILESDIR}/${P}-makefile.patch"
30 use jack && cnt="$((${cnt} + 1))"
31 use alsa && cnt="$((${cnt} + 1))"
32 use oss && cnt="$((${cnt} + 1))"
33 if [[ "${cnt}" -ne 1 ]] ; then
34 eerror "You have set ${P} to use multiple audio engine."
35 eerror "I don't know which to use!"
36 eerror "You can use /etc/portage/package.use to set per-package USE flags"
37 eerror "Set it so only one audio engine type jack, alsa, oss"
38 die "Please set only one audio engine type"
53 local msg="One of the following USE flags is needed: jack, alsa or oss"
57 einfo "Compiling against ${backend}"
58 emake -j1 "linux-${backend}" || die "emake failed"
64 dodoc AUTHORS DEVELOPER PROGRAMMER QUICKSTART README THANKS TODO VERSIONS
67 dodoc `find examples -type f`
68 for dir in `find examples/* -type d`; do