1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/pkgs/development/libraries/libvpx/default.nix
Lluís Batlle i Rossell d341b2537c Updating ffmpeg/x264/vpx
svn path=/nixpkgs/trunk/; revision=31937
2012-01-30 21:02:08 +00:00

46 lines
973 B
Nix

{stdenv, fetchurl, bash, yasm, which, perl}:
stdenv.mkDerivation rec {
name = "libvpx-1.0.0";
src = fetchurl {
url = http://webm.googlecode.com/files/libvpx-v1.0.0.tar.bz2;
sha256 = "08gyx90ndv0v8dhbhp3jdh6g37pmcjlfwljzsy0nskm4345dpkh7";
};
patchPhase = ''
sed -e 's,/bin/bash,${bash}/bin/bash,' -i configure build/make/version.sh \
examples/gen_example_code.sh build/make/gen_asm_deps.sh
sed -e '/enable linux/d' -i configure
'';
configureScript = "../configure";
preConfigure = ''
mkdir -p build
cd build
'';
configureFlags = [
"--disable-install-srcs"
"--disable-examples"
"--enable-vp8"
"--enable-runtime-cpu-detect"
"--enable-shared"
"--enable-pic"
];
installPhase = ''
make quiet=false DIST_DIR=$out install
'';
buildInputs = [ yasm which perl ];
meta = {
description = "VP8 video encoder";
homepage = http://code.google.com/p/webm;
license = "BSD";
};
}