f3c23487a2
stdenv. In this gcc-wrapper2 I made the ld-wrapper.sh to handle the linking with shared objects through direct pass as ld command arguments of the absolute path to shared objects, instead of using the -L/-l combinations. cmake 'FindXXX.cmake' modules make a strong usage of the dynamic linking directly passing the absolute path to the shared object to the linker, and as our wrapper did not add any -rpath for those, writting the nix expressions for some cmake packages resulted in a lot of tricks, compared to using this gcc-wrapper2. This gcc-wrapper2/ld-wrapper.sh should become the gcc-wrapper/ld-wrapper in a stdenv update. I also updated some cmake expressions to use this gcc-wrapper2, and reduced its tricks. I also updated the cmake setup-hook for it to make cmake not touch any rpath decided at build time, when running the 'make install' of makefiles created by cmake. svn path=/nixpkgs/trunk/; revision=18885
44 lines
1.3 KiB
Nix
44 lines
1.3 KiB
Nix
{stdenv, fetchurl, cmake, pkgconfig, libxml2, qt4, gtk, gettext, SDL,
|
|
libXv, pixman, libpthreadstubs, libXau, libXdmcp, libxslt, x264,
|
|
alsaLib, lame, faac, faad2, libvorbis }:
|
|
|
|
assert stdenv ? glibc;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "avidemux-2.5.1";
|
|
|
|
src = fetchurl {
|
|
url = mirror://sourceforge/avidemux/avidemux_2.5.1.tar.gz;
|
|
sha256 = "14jwrblbli7bswx4i7b85l0s1msx8rxrqb908df3z8jxm6w4cm9g";
|
|
};
|
|
|
|
buildInputs = [ cmake pkgconfig libxml2 qt4 gtk gettext SDL libXv
|
|
pixman libpthreadstubs libXau libXdmcp libxslt x264 alsaLib
|
|
lame faac faad2 libvorbis ];
|
|
|
|
cmakeFlags = "-DPTHREAD_INCLUDE_DIR=${stdenv.glibc}/include" +
|
|
" -DGETTEXT_INCLUDE_DIR=${gettext}/include" +
|
|
" -DSDL_INCLUDE_DIR=${SDL}/include/SDL";
|
|
|
|
NIX_LDFLAGS="-lpthread";
|
|
|
|
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
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|