[proaudio] ardour from svn

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Hi list,

this ebuild should be working for most people. Only the wiimote support seems broken in ardour.

Regards

Uli
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="4"

inherit eutils toolchain-funcs fdo-mime flag-o-matic subversion versionator

DESCRIPTION="multi-track hard disk recording software"
HOMEPAGE="http://ardour.org/";

ESVN_REPO_URI="http://subversion.ardour.org/svn/ardour2/branches/3.0";

LICENSE="GPL-2"
SLOT="3"
KEYWORDS=""
IUSE="altivec debug doc freesound nls sse lv2 vst wiimote"

RDEPEND="media-libs/liblo
	>=media-libs/taglib-1.5
	media-libs/aubio
	>=media-libs/liblrdf-0.4.0
	>=media-libs/raptor-1.4.2[curl]
	>=media-sound/jack-audio-connection-kit-0.120.1
	>=dev-libs/glib-2.2
	x11-libs/pango
	>=x11-libs/gtk+-2.8.8
	media-libs/flac
	>=media-libs/alsa-lib-1.0.14a-r1
	>=media-libs/libsamplerate-0.1.1-r1
	>=dev-libs/libxml2-2.6.0
	dev-libs/libxslt
	>=media-libs/libsndfile-1.0.18_pre24
	|| ( >=media-libs/suil-0.6.2 =media-sound/drobilla-9999 )
	gnome-base/libgnomecanvas
	x11-themes/gtk-engines
	>=dev-cpp/gtkmm-2.12.3
	>=dev-cpp/glibmm-2.14.2
	>=dev-cpp/libgnomecanvasmm-2.20.0
	dev-cpp/cairomm
	>=dev-libs/libsigc++-2.0
	media-libs/libsoundtouch
	virtual/libusb
	=sci-libs/fftw-3*
	freesound? ( net-misc/curl )
	lv2? ( || (
		>=media-libs/lilv-0.14.0
		=media-sound/drobilla-9999
	) )
	wiimote? ( app-misc/cwiid )"

DEPEND="${RDEPEND}
	sys-devel/libtool
	dev-libs/boost
	virtual/pkgconfig
	>=dev-util/scons-0.98.5
	nls? ( sys-devel/gettext )
	doc? ( app-doc/doxygen )"

src_unpack() {
	subversion_src_unpack
	cd "${S}"
	# get the svn revision
	subversion_wc_info
	echo '#include "ardour/svn_revision.h"' > libs/ardour/svn_revision.cc
	echo "namespace ARDOUR { const char* svn_revision=\"$ESVN_WC_REVISION\"; }" >> libs/ardour/svn_revision.cc
	echo >> libs/ardour/svn_revision.cc

##	# some temporary slotting fixes
##	sed -i -e 's:ardour2:ardour3:' \
##		libs/rubberband/SConscript \
##		libs/clearlooks-older/SConscript \
##		|| die
##		# now it gets dirty... the locale files...
##	sed -e "s:share/locale:share/ardour3/locale:" \
##		-i SConstruct gtk2_ardour/SConscript || die
##	sed -e "s:'share', 'locale':'share', 'ardour3', 'locale':" \
##		-i libs/ardour/SConscript
}

src_configure() {

	local myconf="--freedesktop --noconfirm --prefix=/usr"
		use debug     && myconf="$myconf --debug"
		use nls       && myconf="$myconf --nls"
		use lv2       && myconf="$myconf --lv2" || myconf="$myconf --no-lv2"
		use freesound || myconf="$myconf --no-freesound"
		use wiimote   && myconf="$myconf --wiimote"
		use vst       && myconf="$myconf --windows-vst"
		use doc       && myconf="$myconf --doc"
	if use sse || use altivec ;then
		myconf="$myconf --fpu-optimization"
	fi

	einfo "./waf configure ${myconf}" # show configure options
	./waf configure $myconf || die "failed to configure"
}

src_compile() {

	einfo "./waf build ${MAKEOPTS}" # show build options
	./waf build "${MAKEOPTS}" || die "failed to build"
}

src_install() {

	einfo "./waf --destdir=${D} install" # show install options
	./waf --destdir="${D}" install || die "install failed"
	#if use vst;then
	#	mv "${D}"/usr/bin/ardourvst "${D}"/usr/bin/ardour2
	#fi

	newicon "icons/icon/ardour_icon_tango_48px_red.png" "ardour3.png"
	make_desktop_entry "ardour3" "Ardour3" "ardour3" "AudioVideo;Audio"
}

pkg_postinst() {
	fdo-mime_mime_database_update
	fdo-mime_desktop_database_update

	ewarn "---------------- WARNING -------------------"
	ewarn ""
	ewarn "MAKE BACKUPS OF THE SESSION FILES BEFORE TRYING THIS VERSION."
	ewarn ""
	ewarn "The simplest way to address this is to make a copy of the session file itself"
	ewarn "(e.g mysession/mysession.ardour) and make that file unreadable using chmod(1)."
	ewarn ""
}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/