2010-04-30 21:58:47 +00:00
|
|
|
{stdenv, fetchurl, nasm}:
|
2010-04-30 21:47:09 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-07-25 14:19:10 +00:00
|
|
|
name = "xvidcore-1.3.2";
|
2010-04-30 21:47:09 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-05-12 20:43:33 +00:00
|
|
|
url = "http://downloads.xvid.org/downloads/${name}.tar.bz2";
|
2011-07-25 14:19:10 +00:00
|
|
|
sha256 = "1x0b2rq6fv99ramifhkakycd0prjc93lbzrffbjgjwg7w4s17hfn";
|
2010-04-30 21:47:09 +00:00
|
|
|
};
|
|
|
|
|
2011-07-25 14:19:10 +00:00
|
|
|
preConfigure = "cd build/generic";
|
2010-04-30 21:58:47 +00:00
|
|
|
|
|
|
|
buildInputs = [ nasm ];
|
2011-07-25 14:19:10 +00:00
|
|
|
|
2013-07-04 04:55:32 +00:00
|
|
|
buildInputs = [ nasm ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ autoconf automake libtool ];
|
|
|
|
|
|
|
|
# don't delete the '.a' files on darwin -- they're needed to compile ffmpeg
|
|
|
|
# (and perhaps other things)
|
|
|
|
postInstall = stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
|
|
|
rm $out/lib/*.a
|
|
|
|
'' + ''
|
|
|
|
cd $out/lib
|
|
|
|
ln -s *.so.4.* libxvidcore.so
|
|
|
|
if [ ! -e libxvidcore.so.4 ]; then
|
|
|
|
ln -s *.so.4.* libxvidcore.so.4
|
|
|
|
fi
|
|
|
|
'';
|
2010-04-30 21:47:09 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "MPEG-4 video codec for PC";
|
|
|
|
homepage = http://www.xvid.org/;
|
|
|
|
license = "GPLv2+";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|