2015-05-28 02:02:01 +01:00
|
|
|
{ stdenv, fetchgit, alsaLib, aubio, boost, cairomm, curl, doxygen, dbus, fftw
|
2016-09-11 22:24:51 +01:00
|
|
|
, fftwSinglePrec, flac, glibc, glibmm, graphviz, gtkmm2, libjack2
|
2015-05-03 11:24:52 +01:00
|
|
|
, libgnomecanvas, libgnomecanvasmm, liblo, libmad, libogg, librdf
|
|
|
|
, librdf_raptor, librdf_rasqal, libsamplerate, libsigcxx, libsndfile
|
2015-05-28 02:02:01 +01:00
|
|
|
, libusb, libuuid, libxml2, libxslt, lilv-svn, lv2, makeWrapper, pango
|
|
|
|
, perl, pkgconfig, python, rubberband, serd, sord-svn, sratom, suil, taglib, vampSDK }:
|
2015-05-03 11:24:52 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
# Ardour git repo uses a mix of annotated and lightweight tags. Annotated
|
|
|
|
# tags are used for MAJOR.MINOR versioning, and lightweight tags are used
|
|
|
|
# in-between; MAJOR.MINOR.REV where REV is the number of commits since the
|
|
|
|
# last annotated tag. A slightly different version string format is needed
|
|
|
|
# for the 'revision' info that is built into the binary; it is the format of
|
|
|
|
# "git describe" when _not_ on an annotated tag(!): MAJOR.MINOR-REV-HASH.
|
|
|
|
|
|
|
|
# Version to build.
|
2015-05-28 02:02:01 +01:00
|
|
|
#tag = "3.5.403";
|
2015-05-03 11:24:52 +01:00
|
|
|
|
|
|
|
# Version info that is built into the binary. Keep in sync with 'tag'. The
|
|
|
|
# last 8 digits is a (fake) commit id.
|
2015-05-28 02:02:01 +01:00
|
|
|
revision = "3.5-4539-g7024232";
|
2015-05-03 11:24:52 +01:00
|
|
|
|
2015-05-28 02:02:01 +01:00
|
|
|
# temporarily use a non tagged version, because 3.5.403 has a bug that
|
|
|
|
# causes loss of audio-files, and it was decided that there won't be a
|
|
|
|
# hotfix release, and we should use 4.0 when it comes out.
|
|
|
|
# more info: http://comments.gmane.org/gmane.comp.audio.ardour.user/13665
|
|
|
|
|
|
|
|
version = "2015-02-20";
|
2015-05-03 11:24:52 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-28 02:02:01 +01:00
|
|
|
name = "ardour3-git-${version}";
|
2015-05-03 11:24:52 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = git://git.ardour.org/ardour/ardour.git;
|
2015-05-28 02:02:01 +01:00
|
|
|
rev = "7024232855d268633760674d34c096ce447b7240";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "0pnnx22asizin5rvf352nfv6003zarw3jd64magp10310wrfiwbq";
|
2015-05-03 11:24:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
2015-05-28 02:02:01 +01:00
|
|
|
[ alsaLib aubio boost cairomm curl doxygen dbus fftw fftwSinglePrec flac glibc
|
2016-09-11 22:24:51 +01:00
|
|
|
glibmm graphviz gtkmm2 libjack2 libgnomecanvas libgnomecanvasmm liblo
|
2015-05-03 11:24:52 +01:00
|
|
|
libmad libogg librdf librdf_raptor librdf_rasqal libsamplerate
|
2015-05-28 02:02:01 +01:00
|
|
|
libsigcxx libsndfile libusb libuuid libxml2 libxslt lilv-svn lv2
|
|
|
|
makeWrapper pango perl pkgconfig python rubberband serd sord-svn sratom suil taglib vampSDK
|
2015-05-03 11:24:52 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
printf '#include "libs/ardour/ardour/revision.h"\nnamespace ARDOUR { const char* revision = \"${revision}\"; }\n' > libs/ardour/revision.cc
|
2016-08-30 01:11:09 +01:00
|
|
|
sed 's|/usr/include/libintl.h|${glibc.dev}/include/libintl.h|' -i wscript
|
2015-05-28 02:02:01 +01:00
|
|
|
patchShebangs ./tools/
|
2015-05-03 11:24:52 +01:00
|
|
|
'';
|
|
|
|
|
2015-05-28 02:02:01 +01:00
|
|
|
configurePhase = "python waf configure --optimize --docs --with-backends=jack,alsa --prefix=$out";
|
2015-05-03 11:24:52 +01:00
|
|
|
|
|
|
|
buildPhase = "python waf";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
python waf install
|
|
|
|
|
|
|
|
# Install desktop file
|
|
|
|
mkdir -p "$out/share/applications"
|
|
|
|
cat > "$out/share/applications/ardour.desktop" << EOF
|
|
|
|
[Desktop Entry]
|
|
|
|
Name=Ardour 3
|
|
|
|
GenericName=Digital Audio Workstation
|
|
|
|
Comment=Multitrack harddisk recorder
|
|
|
|
Exec=$out/bin/ardour3
|
|
|
|
Icon=$out/share/ardour3/icons/ardour_icon_256px.png
|
|
|
|
Terminal=false
|
|
|
|
Type=Application
|
|
|
|
X-MultipleArgs=false
|
|
|
|
Categories=GTK;Audio;AudioVideoEditing;AudioVideo;Video;
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Multi-track hard disk recording software";
|
|
|
|
longDescription = ''
|
2015-05-03 19:25:57 +01:00
|
|
|
Ardour is a digital audio workstation (DAW), You can use it to
|
|
|
|
record, edit and mix multi-track audio and midi. Produce your
|
|
|
|
own CDs. Mix video soundtracks. Experiment with new ideas about
|
|
|
|
music and sound.
|
|
|
|
|
|
|
|
Please consider supporting the ardour project financially:
|
|
|
|
https://community.ardour.org/node/8288
|
2015-05-03 11:24:52 +01:00
|
|
|
'';
|
|
|
|
homepage = http://ardour.org/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|