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:
parent
fbe2fe36e3
commit
f2dea7d287
|
@ -1,4 +1,4 @@
|
||||||
{stdenv, fetchurl, nasm}:
|
{ stdenv, fetchurl, nasm, autoconf, automake, libtool }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "xvidcore-1.3.2";
|
name = "xvidcore-1.3.2";
|
||||||
|
@ -8,9 +8,14 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1x0b2rq6fv99ramifhkakycd0prjc93lbzrffbjgjwg7w4s17hfn";
|
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 ]
|
buildInputs = [ nasm ]
|
||||||
++ stdenv.lib.optionals stdenv.isDarwin [ autoconf automake libtool ];
|
++ stdenv.lib.optionals stdenv.isDarwin [ autoconf automake libtool ];
|
||||||
|
@ -27,10 +32,12 @@ stdenv.mkDerivation rec {
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "MPEG-4 video codec for PC";
|
description = "MPEG-4 video codec for PC";
|
||||||
homepage = http://www.xvid.org/;
|
homepage = http://www.xvid.org/;
|
||||||
license = "GPLv2+";
|
license = licenses.gplv2Plus;
|
||||||
|
maintainers = with maintainers; [ lovek323 ];
|
||||||
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue