2021-02-10 21:05:40 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoconf, automake, libtool
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config, faad2, faac, a52dec, alsaLib, fftw, lame, libavc1394
|
2010-07-28 19:01:17 +01:00
|
|
|
, libiec61883, libraw1394, libsndfile, libvorbis, libogg, libjpeg
|
2012-03-11 14:07:19 +00:00
|
|
|
, libtiff, freetype, mjpegtools, x264, gettext, openexr
|
2018-12-31 03:40:47 +00:00
|
|
|
, libXext, libXxf86vm, libXv, libXi, libX11, libXft, xorgproto, libtheora, libpng
|
2016-11-23 22:33:16 +00:00
|
|
|
, libdv, libuuid, file, nasm, perl
|
|
|
|
, fontconfig, intltool }:
|
2014-12-04 14:57:16 +00:00
|
|
|
|
2010-07-28 19:01:17 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-10-12 14:43:33 +01:00
|
|
|
name = "cinelerra-cv-2018-05-16";
|
2008-10-14 15:01:50 +01:00
|
|
|
|
2019-10-07 14:49:31 +01:00
|
|
|
src = fetchFromGitHub {
|
2021-02-10 21:05:40 +00:00
|
|
|
owner = "cinelerra-cv-team";
|
|
|
|
repo = "cinelerra-cv";
|
2019-10-12 14:20:19 +01:00
|
|
|
rev = "d9c0dbf4393717f0a42f4b91c3e1ed5b16f955dc";
|
|
|
|
sha256 = "0a8kfm1v96sv6jh4568crg6nkr6n3579i9xksfj8w199s6yxzsbk";
|
2011-06-22 23:23:45 +01:00
|
|
|
};
|
|
|
|
|
2021-02-10 21:05:40 +00:00
|
|
|
patches = [
|
|
|
|
# avoid gcc10 error about narrowing
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/cinelerra-cv-team/cinelerra-cv/pull/2/commits/a1b2d9c3bd5730ec0284894f3d81892af3e77f1f.patch";
|
|
|
|
sha256 = "1cjyv1m174dblpa1bs5dggk24h4477zqvc5sbfc0m5rpkndx5ycp";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2008-10-14 15:01:50 +01:00
|
|
|
preConfigure = ''
|
2010-07-28 19:01:17 +01:00
|
|
|
find -type f -print0 | xargs --null sed -e "s@/usr/bin/perl@${perl}/bin/perl@" -i
|
2008-10-14 15:01:50 +01:00
|
|
|
./autogen.sh
|
2011-06-22 23:23:50 +01:00
|
|
|
sed -i -e "s@/usr/bin/file@${file}/bin/file@" ./configure
|
2010-07-28 19:01:17 +01:00
|
|
|
'';
|
2008-10-14 15:01:50 +01:00
|
|
|
|
2019-10-12 14:43:33 +01:00
|
|
|
## fix bug with parallel building
|
|
|
|
preBuild = ''
|
|
|
|
make -C cinelerra versioninfo.h
|
|
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-10 21:05:40 +00:00
|
|
|
nativeBuildInputs = [ automake autoconf libtool pkg-config file intltool ];
|
2010-07-28 19:01:17 +01:00
|
|
|
buildInputs =
|
2021-02-10 21:05:40 +00:00
|
|
|
[ faad2 faac
|
2008-10-14 15:01:50 +01:00
|
|
|
a52dec alsaLib fftw lame libavc1394 libiec61883
|
|
|
|
libraw1394 libsndfile libvorbis libogg libjpeg libtiff freetype
|
2012-03-11 14:07:19 +00:00
|
|
|
mjpegtools x264 gettext openexr
|
2018-12-31 03:40:47 +00:00
|
|
|
libXext libXxf86vm libXv libXi libX11 libXft xorgproto
|
2011-06-22 23:23:50 +01:00
|
|
|
libtheora libpng libdv libuuid
|
2008-10-14 15:01:50 +01:00
|
|
|
nasm
|
|
|
|
perl
|
2021-02-10 21:05:40 +00:00
|
|
|
fontconfig
|
2010-07-28 19:01:17 +01:00
|
|
|
];
|
2008-10-14 15:01:50 +01:00
|
|
|
|
2021-02-10 21:05:40 +00:00
|
|
|
meta = with lib; {
|
2014-06-22 21:49:32 +01:00
|
|
|
description = "Video Editor";
|
2021-02-10 21:05:40 +00:00
|
|
|
homepage = "https://www.cinelerra.org/";
|
|
|
|
maintainers = with maintainers; [ marcweber ];
|
|
|
|
license = licenses.gpl2Only;
|
2008-10-14 15:01:50 +01:00
|
|
|
};
|
|
|
|
}
|