1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils toolchain-funcs
7 DESCRIPTION="real-time audio visualization"
8 HOMEPAGE="http://soundlab.cs.princeton.edu/software/sndpeek/"
9 SRC_URI="http://soundlab.cs.princeton.edu/software/${PN}/files/${P}.tgz"
16 DEPEND="media-libs/glut
22 jack? ( media-sound/jack-audio-connection-kit )
23 alsa? ( media-libs/alsa-lib )"
29 epatch "${FILESDIR}/${P}-makefile.patch"
34 use jack && cnt="$((${cnt} + 1))"
35 use alsa && cnt="$((${cnt} + 1))"
36 use oss && cnt="$((${cnt} + 1))"
37 if [[ "${cnt}" -eq 0 ]]; then
38 eerror "One of the following USE flags is needed: jack, alsa or oss"
39 die "Please set one audio engine type"
40 elif [[ "${cnt}" -ne 1 ]]; then
41 ewarn "You have set ${P} to use multiple audio engine."
56 einfo "Compiling against ${backend}"
57 emake -f "makefile.${backend}" CC=$(tc-getCC) CXX=$(tc-getCXX) || die "emake failed"
61 dobin src/sndpeek/sndpeek
63 dodoc AUTHORS README THANKS TODO VERSIONS