2013-03-16 16:33:16 +01:00
|
|
|
{ stdenv, fetchgit, alsaLib, aubio, boost, cairomm, curl, fftw
|
2013-02-23 11:52:53 +01:00
|
|
|
, fftwSinglePrec, flac, glibc, glibmm, gtk, gtkmm, jackaudio
|
2012-04-01 20:31:28 +02:00
|
|
|
, libgnomecanvas, libgnomecanvasmm, liblo, libmad, libogg, librdf
|
|
|
|
, librdf_raptor, librdf_rasqal, libsamplerate, libsigcxx, libsndfile
|
2012-07-05 23:29:45 +02:00
|
|
|
, libusb, libuuid, libxml2, libxslt, lilv, lv2, makeWrapper, pango
|
|
|
|
, perl, pkgconfig, python, serd, sord, sratom, suil }:
|
2011-05-01 16:45:52 +02:00
|
|
|
|
2011-05-09 22:27:06 +02:00
|
|
|
let
|
2014-02-18 21:26:06 +01:00
|
|
|
# Ardour 3.5.308 tag
|
|
|
|
rev = "40d8c5ae";
|
2011-05-09 22:27:06 +02:00
|
|
|
in
|
|
|
|
|
2014-02-18 21:26:06 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ardour-${version}";
|
|
|
|
version = "3.5.308";
|
2011-05-01 16:45:52 +02:00
|
|
|
|
2013-03-16 16:33:16 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = git://git.ardour.org/ardour/ardour.git;
|
2011-05-09 22:27:06 +02:00
|
|
|
inherit rev;
|
2014-02-18 21:26:06 +01:00
|
|
|
sha256 = "7473c19c2aeb68bd93d512c2d4e976b23dd36d2453c877c859ad37a76f50dc8a";
|
2011-05-01 16:45:52 +02:00
|
|
|
};
|
|
|
|
|
2012-07-05 23:29:45 +02:00
|
|
|
buildInputs =
|
2013-02-24 02:27:18 +01:00
|
|
|
[ alsaLib aubio boost cairomm curl fftw fftwSinglePrec flac glibc
|
|
|
|
glibmm gtk gtkmm jackaudio libgnomecanvas libgnomecanvasmm liblo
|
|
|
|
libmad libogg librdf librdf_raptor librdf_rasqal libsamplerate
|
|
|
|
libsigcxx libsndfile libusb libuuid libxml2 libxslt lilv lv2
|
|
|
|
makeWrapper pango perl pkgconfig python serd sord sratom suil
|
2012-07-05 23:29:45 +02:00
|
|
|
];
|
2011-05-01 16:45:52 +02:00
|
|
|
|
|
|
|
patchPhase = ''
|
2014-02-18 21:26:06 +01:00
|
|
|
# The funny revision number is from `git describe ${rev}
|
|
|
|
printf '#include "libs/ardour/ardour/revision.h"\nnamespace ARDOUR { const char* revision = \"${version}-g40d8c5a\"; }\n' > libs/ardour/revision.cc
|
|
|
|
# Note the different version number
|
|
|
|
sed -i '33i rev = \"3.5-308-g40d8c5a\"' wscript
|
|
|
|
sed 's|/usr/include/libintl.h|${glibc}/include/libintl.h|' -i wscript
|
2011-05-01 16:45:52 +02:00
|
|
|
sed -e 's|^#!/usr/bin/perl.*$|#!${perl}/bin/perl|g' -i tools/fmt-bindings
|
|
|
|
sed -e 's|^#!/usr/bin/env.*$|#!${perl}/bin/perl|g' -i tools/*.pl
|
|
|
|
'';
|
|
|
|
|
2014-02-18 21:26:06 +01:00
|
|
|
configurePhase = "python waf configure --optimize --prefix=$out";
|
2011-05-01 16:45:52 +02:00
|
|
|
|
|
|
|
buildPhase = "python waf";
|
|
|
|
|
2013-02-24 02:27:18 +01:00
|
|
|
# For the custom ardour clearlooks gtk-engine to work, it must be
|
|
|
|
# moved to a directory called "engines" and added to GTK_PATH
|
|
|
|
installPhase = ''
|
|
|
|
python waf install
|
|
|
|
mkdir -pv $out/gtk2/engines
|
2014-02-18 21:26:06 +01:00
|
|
|
cp build/libs/clearlooks-newer/libclearlooks.so $out/gtk2/engines/
|
2013-02-24 02:27:18 +01:00
|
|
|
wrapProgram $out/bin/ardour3 --prefix GTK_PATH : $out/gtk2
|
|
|
|
'';
|
2012-04-01 20:31:28 +02:00
|
|
|
|
2011-05-01 16:45:52 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Multi-track hard disk recording software";
|
|
|
|
longDescription = ''
|
|
|
|
Also read "The importance of Paying Something" on their homepage, please!
|
|
|
|
'';
|
|
|
|
homepage = http://ardour.org/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|