3
0
Fork 0
forked from mirrors/nixpkgs

xvidcore: fix build on darwin

* remove unnecessary gcc flag
* add --enable-macosx_module configure flag
* add --disable-assembly configure flag
* fix postInstall phase
This commit is contained in:
Jason \"Don\" O'Conal 2013-07-04 15:06:22 +10:00 committed by Rok Garbas
parent fbe2fe36e3
commit f2dea7d287

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, nasm}:
{ stdenv, fetchurl, nasm, autoconf, automake, libtool }:
stdenv.mkDerivation rec {
name = "xvidcore-1.3.2";
@ -8,9 +8,14 @@ stdenv.mkDerivation rec {
sha256 = "1x0b2rq6fv99ramifhkakycd0prjc93lbzrffbjgjwg7w4s17hfn";
};
preConfigure = "cd build/generic";
preConfigure = ''
cd build/generic
'' + stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace configure --replace "-no-cpp-precomp" ""
'';
buildInputs = [ nasm ];
configureFlags = stdenv.lib.optionals stdenv.isDarwin
[ "--enable-macosx_module" "--disable-assembly" ];
buildInputs = [ nasm ]
++ stdenv.lib.optionals stdenv.isDarwin [ autoconf automake libtool ];
@ -27,10 +32,12 @@ stdenv.mkDerivation rec {
fi
'';
meta = {
meta = with stdenv.lib; {
description = "MPEG-4 video codec for PC";
homepage = http://www.xvid.org/;
license = "GPLv2+";
license = licenses.gplv2Plus;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.all;
};
}