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