1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils toolchain-funcs
10 DESCRIPTION
="Digital Audio Workstation"
11 HOMEPAGE
="http://ardour.org/"
12 #SRC_URI="mirror://gentoo/${P}.tar.bz2"
13 #SRC_URI="http://rfnx.com/gentoo/${P}.tar.bz2"
14 SRC_URI
="${P}.tar.bz2"
18 KEYWORDS
="~amd64 ~ppc ~x86"
19 IUSE
="altivec curl debug nls lv2 sse"
21 # FIXME. Internal libsndfile, rubberband, vamp-plugin-sdk, and others.
22 RDEPEND
="media-libs/aubio
24 lv2? ( >=media-libs/slv2-0.6.1 )
27 >=dev-libs/glib-2.10.1:2
28 >=x11-libs/gtk+-2.8.1:2
29 >=dev-libs/libxml2-2.6
30 >=media-libs/libsamplerate-0.1
32 media-libs/libsoundtouch
34 >=media-libs/raptor-1.4.2
35 >=media-libs/liblrdf-0.4
36 >=media-sound/jack-audio-connection-kit-0.109
37 >=gnome-base/libgnomecanvas-2
38 media-libs/vamp-plugin-sdk
42 >=dev-cpp/libgnomecanvasmm-2.26
44 curl? ( net-misc/curl )"
49 nls? ( sys-devel/gettext )"
52 einfo
"Please download ${P}.tar.bz2 (Ardour ${PV} source code for all platforms)"
53 einfo
"from ${HOMEPAGE} and place it in ${DISTDIR}"
60 epatch
"${FILESDIR}/ardour-2.8.8-ladish-L1.patch"
64 use
${2} && echo "${1}=1" || echo "${1}=0"
68 local FPU_OPTIMIZATION=$((use altivec || use sse) && echo 1 || echo 0)
75 $(ardour_use_enable DEBUG debug) \
77 $(ardour_use_enable FREESOUND curl) \
78 FPU_OPTIMIZATION="${FPU_OPTIMIZATION}" \
79 $(ardour_use_enable NLS nls) \
82 $(ardour_use_enable LV2 lv2) \
87 scons install || die "scons
install failed
"
88 newicon icons/icon/ardour_icon_mac.png ${PN}.png
89 make_desktop_entry ardour2 Ardour