/[gentoo-x86]/media-sound/tapestrea/tapestrea-0.1.0.4.ebuild
Gentoo

Contents of /media-sound/tapestrea/tapestrea-0.1.0.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Aug 3 13:10:07 2009 UTC (11 years, 3 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Workaround invalid repoman warning
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/tapestrea/tapestrea-0.1.0.4.ebuild,v 1.1 2008/03/30 00:52:47 cedk Exp $
4
5 EAPI="1"
6
7 inherit eutils toolchain-funcs flag-o-matic
8
9 DESCRIPTION="Techniques + Paradigms for Expressive Synthesis, Transformation, Rendering of Environmental Audio"
10 HOMEPAGE="http://taps.cs.princeton.edu/"
11 SRC_URI="http://taps.cs.princeton.edu/release/files/${P}.tgz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~x86"
16 IUSE="oss jack +alsa doc"
17
18 RDEPEND="jack? ( media-sound/jack-audio-connection-kit )
19 alsa? ( >=media-libs/alsa-lib-0.9 )
20 media-libs/libsndfile
21 virtual/glut
22 virtual/opengl
23 virtual/glu
24 >=x11-libs/gtk+-2"
25 DEPEND="${RDEPEND}
26 sys-devel/bison
27 sys-devel/flex"
28
29 pkg_setup() {
30 local cnt=0
31 use jack && cnt="$((${cnt} + 1))"
32 use alsa && cnt="$((${cnt} + 1))"
33 use oss && cnt="$((${cnt} + 1))"
34 if [[ "${cnt}" -eq 0 ]] ; then
35 eerror "One of the following USE flags is needed: jack, alsa or oss"
36 die "Please set one audio engine type"
37 elif [[ "${cnt}" -ne 1 ]] ; then
38 ewarn "You have set ${P} to use multiple audio engine."
39 fi
40 }
41
42 src_compile() {
43 local backend
44 if use jack; then
45 backend="jack"
46 elif use alsa; then
47 backend="alsa"
48 elif use oss; then
49 backend="oss"
50 fi
51 einfo "Compiling against ${backend}"
52
53 # when compile with athlon or athlon-xp flags
54 # chuck crashes on removing a shred with a double free or corruption
55 # it happens in Chuck_VM_Stack::shutdown() on the line
56 # SAFE_DELETE_ARRAY( stack );
57 replace-cpu-flags athlon athlon-xp i686
58
59 cd "${S}/scripting/chuck-1.2.0.8/src"
60 emake -f "makefile.${backend}" CC=$(tc-getCC) CXX=$(tc-getCXX) || die "emake failed"
61
62 cd "${S}/src"
63 emake -f "makefile.${backend}" CC=$(tc-getCC) CXX=$(tc-getCXX) || die "emake failed"
64 }
65
66 src_install() {
67 dobin src/taps
68
69 dodoc AUTHORS BUGS DEVELOPER PROGRAMMER QUICKSTART README THANKS TODO VERSIONS
70 if use doc; then
71 for dir in `find examples/* -type d -maxdepth 0`; do
72 docinto $dir
73 dodoc `find $dir/* -type f -maxdepth 0`
74 for dir2 in `find $dir/* -type d -maxdepth 0`; do
75 docinto $dir2
76 dodoc `find $dir2/* -type f -maxdepth 0`
77 done
78 done
79 docinto doc
80 dodoc doc/*
81 fi
82 }

  ViewVC Help
Powered by ViewVC 1.1.20