nixpkgs/pkgs/development/libraries/libvpx/default.nix
Lluís Batlle i Rossell 924177da84 New VLC, ffmpeg, x264 and libvpx all-in-one-rebuild. VP8 support.
svn path=/nixpkgs/trunk/; revision=22410
2010-06-24 22:55:25 +00:00

35 lines
798 B
Nix

{stdenv, fetchurl, bash, yasm}:
stdenv.mkDerivation rec {
name = "libvpx-0.9.1";
src = fetchurl {
url = http://webm.googlecode.com/files/libvpx-0.9.1.tar.bz2;
sha256 = "0ngc8y12np2q6yhrrn6cbmlbzwbk10fnldj8d5dxxzvrw1iy9s64";
};
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
../configure --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 ];
meta = {
description = "VP8 video encoder";
homepage = http://code.google.com/p/webm;
license = "BSD";
};
}