2012-03-16 22:28:21 +00:00
|
|
|
{ stdenv, fetchsvn, scons, boost, pkgconfig, fftw, librdf_raptor
|
2010-07-28 15:35:01 +00:00
|
|
|
, librdf_rasqal, jackaudio, flac, libsamplerate, alsaLib, libxml2
|
|
|
|
, libxslt, libsndfile, libsigcxx, libusb, cairomm, glib, pango
|
2012-03-20 18:53:01 +00:00
|
|
|
, gtk, glibmm, gtkmm, libgnomecanvas, liblo, aubio
|
|
|
|
, fftwSinglePrec, libmad, automake, autoconf, libtool, liblrdf }:
|
2009-09-21 15:55:24 +00:00
|
|
|
|
2012-03-16 22:28:21 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ardour-${version}";
|
|
|
|
version = "2.8.12";
|
2009-09-21 09:58:41 +00:00
|
|
|
|
2009-09-21 15:55:24 +00:00
|
|
|
# svn is the source to get official releases from their site?
|
|
|
|
# alternative: wget --data-urlencode 'key=7c4b2e1df903aae5ff5cc4077cda801e' http://ardour.org/downloader
|
|
|
|
# but hash is changing ?
|
2012-03-16 22:28:21 +00:00
|
|
|
|
|
|
|
# TODO: see if this is also true when using a tag (~goibhniu)
|
2012-03-20 18:53:01 +00:00
|
|
|
|
|
|
|
# This version does not run it exits with the following error:
|
|
|
|
# raptor_new_uri_for_rdf_concept called with Raptor V1 world object
|
|
|
|
# raptor_general.c:240:raptor_init: fatal error: raptor_init() failedAborted
|
2012-03-16 22:28:21 +00:00
|
|
|
src = fetchsvn {
|
|
|
|
url = "http://subversion.ardour.org/svn/ardour2/tags/${version}";
|
|
|
|
sha256 = "0d4y8bv12kb0yd2srvxn5388sa4cl5d5rk381saj9f3jgpiciyky";
|
2009-09-21 15:55:24 +00:00
|
|
|
};
|
2009-09-21 09:58:41 +00:00
|
|
|
|
2012-03-16 22:28:21 +00:00
|
|
|
patchPhase = ''
|
|
|
|
sed -e "s#/usr/bin/which#type -P#" -i libs/glibmm2/autogen.sh
|
|
|
|
echo '#include "ardour/svn_revision.h"' > libs/ardour/svn_revision.cc
|
|
|
|
echo -e 'namespace ARDOUR {\n extern const char* svn_revision = "2.8.12";\n }\n' >> libs/ardour/svn_revision.cc
|
|
|
|
'';
|
|
|
|
|
2009-09-21 09:58:41 +00:00
|
|
|
buildInputs = [
|
2010-07-28 15:35:01 +00:00
|
|
|
scons boost pkgconfig fftw librdf_raptor librdf_rasqal jackaudio
|
|
|
|
flac libsamplerate alsaLib libxml2 libxslt libsndfile libsigcxx
|
2012-03-20 18:53:01 +00:00
|
|
|
libusb cairomm glib pango gtk glibmm gtkmm libgnomecanvas liblrdf
|
|
|
|
liblo aubio fftwSinglePrec libmad autoconf automake libtool
|
2009-09-21 09:58:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2009-09-21 09:58:41 +00:00
|
|
|
export CXX=g++
|
|
|
|
scons PREFIX=$out install
|
|
|
|
'';
|
2010-02-11 14:31:49 +00:00
|
|
|
|
2009-09-21 09:58:41 +00:00
|
|
|
installPhase = ":";
|
|
|
|
|
|
|
|
meta = {
|
2010-02-11 14:31:49 +00:00
|
|
|
description = "Multi-track hard disk recording software";
|
2009-09-21 09:58:41 +00:00
|
|
|
longDescription = ''
|
2012-03-20 18:53:01 +00:00
|
|
|
Broken: use ardour3-svn instead
|
2010-02-11 14:31:49 +00:00
|
|
|
Also read "The importance of Paying Something" on their homepage, please!
|
2009-09-21 09:58:41 +00:00
|
|
|
'';
|
|
|
|
homepage = http://ardour.org/;
|
|
|
|
license = "GPLv2";
|
2010-07-28 15:35:01 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.marcweber ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-09-21 09:58:41 +00:00
|
|
|
};
|
|
|
|
}
|