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