2016-08-17 15:09:58 +01:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper
|
|
|
|
, SDL, ffmpeg, frei0r, libjack2, libdv, libsamplerate
|
|
|
|
, libvorbis, libxml2, movit, pkgconfig, sox
|
|
|
|
, gtk2
|
2014-07-27 11:36:07 +01:00
|
|
|
}:
|
2010-04-30 14:12:07 +01:00
|
|
|
|
2012-06-05 17:52:11 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mlt-${version}";
|
2016-08-17 15:09:58 +01:00
|
|
|
version = "6.2.0";
|
2010-04-30 14:12:07 +01:00
|
|
|
|
2016-08-17 15:09:58 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mltframework";
|
|
|
|
repo = "mlt";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "17jwz1lf9ilaxvgvhg7z86dhcsk95m4wlszy4gn7wab2ns5zhdm7";
|
2010-04-30 14:12:07 +01:00
|
|
|
};
|
|
|
|
|
2014-07-27 11:36:07 +01:00
|
|
|
buildInputs = [
|
2015-06-27 08:17:52 +01:00
|
|
|
SDL ffmpeg frei0r libjack2 libdv libsamplerate libvorbis libxml2
|
2016-08-17 15:09:58 +01:00
|
|
|
makeWrapper movit pkgconfig sox
|
|
|
|
gtk2
|
2014-07-27 11:36:07 +01:00
|
|
|
];
|
2010-04-30 14:12:07 +01:00
|
|
|
|
|
|
|
# Mostly taken from:
|
|
|
|
# http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/installing-source/installing-mlt-rendering-engine
|
2014-07-27 11:36:07 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--avformat-swscale" "--enable-gpl" "--enable-gpl" "--enable-gpl3"
|
|
|
|
"--enable-opengl"
|
|
|
|
];
|
2013-06-04 23:30:44 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2010-04-30 14:12:07 +01:00
|
|
|
|
2014-07-27 11:36:07 +01:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/melt --prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2010-04-30 14:12:07 +01:00
|
|
|
description = "Open source multimedia framework, designed for television broadcasting";
|
2014-07-27 11:36:07 +01:00
|
|
|
homepage = http://www.mltframework.org/;
|
|
|
|
license = licenses.gpl3;
|
2016-08-17 15:09:58 +01:00
|
|
|
maintainers = [ maintainers.tohl ];
|
2014-07-27 11:36:07 +01:00
|
|
|
platforms = platforms.linux;
|
2010-04-30 14:12:07 +01:00
|
|
|
};
|
|
|
|
}
|