2010-04-30 23:58:47 +02:00
|
|
|
{stdenv, fetchurl, nasm}:
|
2010-04-30 23:47:09 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-07-25 16:19:10 +02:00
|
|
|
name = "xvidcore-1.3.2";
|
2010-04-30 23:47:09 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-05-12 22:43:33 +02:00
|
|
|
url = "http://downloads.xvid.org/downloads/${name}.tar.bz2";
|
2011-07-25 16:19:10 +02:00
|
|
|
sha256 = "1x0b2rq6fv99ramifhkakycd0prjc93lbzrffbjgjwg7w4s17hfn";
|
2010-04-30 23:47:09 +02:00
|
|
|
};
|
|
|
|
|
2011-07-25 16:19:10 +02:00
|
|
|
preConfigure = "cd build/generic";
|
2010-04-30 23:58:47 +02:00
|
|
|
|
|
|
|
buildInputs = [ nasm ];
|
2011-07-25 16:19:10 +02:00
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
rm $out/lib/*.a
|
2011-07-25 16:34:05 +02:00
|
|
|
(cd $out/lib && ln -s *.so.4.* libxvidcore.so && ln -s *.so.4.* libxvidcore.so.4 )
|
2011-07-25 16:19:10 +02:00
|
|
|
'';
|
2010-04-30 23:47:09 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "MPEG-4 video codec for PC";
|
|
|
|
homepage = http://www.xvid.org/;
|
|
|
|
license = "GPLv2+";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|