2009-11-24 08:27:18 +00:00
|
|
|
{stdenv, fetchurl, cmake, pkgconfig, libxml2, qt4, gtk, gettext, SDL,
|
2009-11-24 14:01:48 +00:00
|
|
|
libXv, pixman, libpthreadstubs, libXau, libXdmcp, libxslt, x264,
|
2014-04-09 10:06:46 +01:00
|
|
|
alsaLib, lame, faad2, libvorbis, yasm, libvpx, xvidcore, libva,
|
|
|
|
faac ? null, faacSupport ? false }:
|
2009-11-24 14:01:48 +00:00
|
|
|
|
|
|
|
assert stdenv ? glibc;
|
2014-04-09 10:06:46 +01:00
|
|
|
assert faacSupport -> faac != null;
|
2009-11-24 08:27:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-01-03 15:49:39 +00:00
|
|
|
name = "avidemux-2.5.6";
|
2014-04-09 10:06:46 +01:00
|
|
|
|
2009-11-24 08:27:18 +00:00
|
|
|
src = fetchurl {
|
2016-01-03 15:49:39 +00:00
|
|
|
url = mirror://sourceforge/avidemux/avidemux_2.5.6.tar.gz;
|
|
|
|
sha256 = "12wvxz0n2g85f079d8mdkkp2zm279d34m9v7qgcqndh48cn7znnn";
|
2009-11-24 08:27:18 +00:00
|
|
|
};
|
2014-04-09 10:06:46 +01:00
|
|
|
|
2009-11-24 08:27:18 +00:00
|
|
|
buildInputs = [ cmake pkgconfig libxml2 qt4 gtk gettext SDL libXv
|
2014-04-09 10:06:46 +01:00
|
|
|
pixman libpthreadstubs libXau libXdmcp libxslt x264 alsaLib
|
|
|
|
lame faad2 libvorbis yasm libvpx xvidcore libva
|
|
|
|
] ++ stdenv.lib.optional faacSupport faac;
|
2009-11-24 08:27:18 +00:00
|
|
|
|
2009-11-24 14:01:48 +00:00
|
|
|
cmakeFlags = "-DPTHREAD_INCLUDE_DIR=${stdenv.glibc}/include" +
|
2009-11-24 08:27:18 +00:00
|
|
|
" -DGETTEXT_INCLUDE_DIR=${gettext}/include" +
|
2009-12-10 22:19:52 +00:00
|
|
|
" -DSDL_INCLUDE_DIR=${SDL}/include/SDL";
|
2009-11-24 08:27:18 +00:00
|
|
|
|
2009-12-10 22:19:52 +00:00
|
|
|
NIX_LDFLAGS="-lpthread";
|
2009-11-24 14:01:48 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cd $NIX_BUILD_TOP/$sourceRoot
|
|
|
|
mkdir build_plugins
|
|
|
|
cd build_plugins
|
|
|
|
cmake $cmakeFlags -DAVIDEMUX_INSTALL_PREFIX=$out \
|
|
|
|
-DAVIDEMUX_SOURCE_DIR=$NIX_BUILD_TOP/$sourceRoot \
|
|
|
|
-DAVIDEMUX_CORECONFIG_DIR=$NIX_BUILD_TOP/$sourceRoot/build/config ../plugins
|
|
|
|
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
'';
|
2009-11-24 08:27:18 +00:00
|
|
|
|
2014-04-09 10:06:46 +01:00
|
|
|
meta = {
|
2009-11-24 08:27:18 +00:00
|
|
|
homepage = http://fixounet.free.fr/avidemux/;
|
|
|
|
description = "Free video editor designed for simple video editing tasks";
|
2016-01-03 15:49:39 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2009-11-24 08:27:18 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|