2011-04-23 20:58:52 +00:00
|
|
|
{stdenv, fetchurl, bash, yasm, which}:
|
2010-05-24 21:57:45 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-04-23 20:58:52 +00:00
|
|
|
name = "libvpx-0.9.6";
|
2010-05-24 21:57:45 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-04-23 20:58:52 +00:00
|
|
|
url = http://webm.googlecode.com/files/libvpx-v0.9.6.tar.bz2;
|
|
|
|
sha256 = "0wxay9wss4lawrcmnwqkpy0rdnaih1k7ilzh284mgyqnya78mg98";
|
2010-05-24 21:57:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -e 's,/bin/bash,${bash}/bin/bash,' -i configure build/make/version.sh \
|
|
|
|
examples/gen_example_code.sh
|
2010-09-01 08:36:09 +00:00
|
|
|
sed -e '/enable linux/d' -i configure
|
2010-05-24 21:57:45 +00:00
|
|
|
'';
|
|
|
|
|
2010-09-01 08:36:09 +00:00
|
|
|
configureScript = "../configure";
|
|
|
|
|
|
|
|
preConfigure = ''
|
2010-05-24 21:57:45 +00:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
'';
|
|
|
|
|
2010-09-01 08:36:09 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-install-srcs"
|
|
|
|
"--disable-examples"
|
|
|
|
"--enable-vp8"
|
|
|
|
"--enable-runtime-cpu-detect"
|
|
|
|
"--enable-shared"
|
|
|
|
"--enable-pic"
|
|
|
|
];
|
|
|
|
|
2010-05-24 21:57:45 +00:00
|
|
|
installPhase = ''
|
|
|
|
make quiet=false DIST_DIR=$out install
|
|
|
|
'';
|
|
|
|
|
2011-04-23 20:58:52 +00:00
|
|
|
buildInputs = [ yasm which ];
|
2010-06-24 22:55:25 +00:00
|
|
|
|
2010-05-24 21:57:45 +00:00
|
|
|
meta = {
|
|
|
|
description = "VP8 video encoder";
|
|
|
|
homepage = http://code.google.com/p/webm;
|
|
|
|
license = "BSD";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|