2009-11-24 09:27:18 +01:00
|
|
|
{stdenv, fetchurl, cmake, pkgconfig, libxml2, qt4, gtk, gettext, SDL,
|
2009-11-24 15:01:48 +01:00
|
|
|
libXv, pixman, libpthreadstubs, libXau, libXdmcp, libxslt, x264,
|
|
|
|
alsaLib, lame, faac, faad2, libvorbis }:
|
|
|
|
|
|
|
|
assert stdenv ? glibc;
|
2009-11-24 09:27:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-03-16 22:52:36 +01:00
|
|
|
name = "avidemux-2.5.2";
|
2009-11-24 09:27:18 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-03-16 22:52:36 +01:00
|
|
|
url = mirror://sourceforge/avidemux/avidemux_2.5.2.tar.gz;
|
|
|
|
sha256 = "1apq5s79ik562xmhyvg6nvkmk2bhm5fcjwsrwrpxwipn6swkfpk8";
|
2009-11-24 09:27:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake pkgconfig libxml2 qt4 gtk gettext SDL libXv
|
2009-11-24 15:01:48 +01:00
|
|
|
pixman libpthreadstubs libXau libXdmcp libxslt x264 alsaLib
|
|
|
|
lame faac faad2 libvorbis ];
|
2009-11-24 09:27:18 +01:00
|
|
|
|
2009-11-24 15:01:48 +01:00
|
|
|
cmakeFlags = "-DPTHREAD_INCLUDE_DIR=${stdenv.glibc}/include" +
|
2009-11-24 09:27:18 +01:00
|
|
|
" -DGETTEXT_INCLUDE_DIR=${gettext}/include" +
|
2009-12-10 23:19:52 +01:00
|
|
|
" -DSDL_INCLUDE_DIR=${SDL}/include/SDL";
|
2009-11-24 09:27:18 +01:00
|
|
|
|
2009-12-10 23:19:52 +01:00
|
|
|
NIX_LDFLAGS="-lpthread";
|
2009-11-24 15:01:48 +01: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 09:27:18 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://fixounet.free.fr/avidemux/;
|
|
|
|
description = "Free video editor designed for simple video editing tasks";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|