2012-01-30 21:02:08 +00:00
|
|
|
{stdenv, fetchurl, bash, yasm, which, perl}:
|
2010-05-24 22:57:45 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-09-29 22:38:41 +01:00
|
|
|
name = "libvpx-1.1.0";
|
2010-05-24 22:57:45 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-09-29 22:38:41 +01:00
|
|
|
url = http://webm.googlecode.com/files/libvpx-v1.1.0.tar.bz2;
|
|
|
|
sha256 = "1ibjxcdsazqfbbjhb8w56vy3n9qwny2m9q4kzx4rmk9v9g7p9q4w";
|
2010-05-24 22:57:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -e 's,/bin/bash,${bash}/bin/bash,' -i configure build/make/version.sh \
|
2012-01-30 21:02:08 +00:00
|
|
|
examples/gen_example_code.sh build/make/gen_asm_deps.sh
|
2010-09-01 09:36:09 +01:00
|
|
|
sed -e '/enable linux/d' -i configure
|
2010-05-24 22:57:45 +01:00
|
|
|
'';
|
|
|
|
|
2010-09-01 09:36:09 +01:00
|
|
|
configureScript = "../configure";
|
|
|
|
|
|
|
|
preConfigure = ''
|
2010-05-24 22:57:45 +01:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
'';
|
|
|
|
|
2010-09-01 09:36:09 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--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
|
|
|
|
'';
|
|
|
|
|
2012-01-30 21:02:08 +00:00
|
|
|
buildInputs = [ yasm which perl ];
|
2010-06-24 23:55:25 +01:00
|
|
|
|
2010-05-24 22:57:45 +01:00
|
|
|
meta = {
|
|
|
|
description = "VP8 video encoder";
|
|
|
|
homepage = http://code.google.com/p/webm;
|
|
|
|
license = "BSD";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|