summary refs log tree commit diff
path: root/pkgs/development/libraries/libvpx
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-05-24 21:57:45 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-05-24 21:57:45 +0000
commita51bbc1992596d2370f8878ac0d492d6adf520d6 (patch)
tree4eb950f99c6de0e607a312d15d6f887aca33e53e /pkgs/development/libraries/libvpx
parentc293598da8fa12348db4d211f6210ebcc7d07872 (diff)
downloadnixpkgs-a51bbc1992596d2370f8878ac0d492d6adf520d6.tar
nixpkgs-a51bbc1992596d2370f8878ac0d492d6adf520d6.tar.gz
nixpkgs-a51bbc1992596d2370f8878ac0d492d6adf520d6.tar.bz2
nixpkgs-a51bbc1992596d2370f8878ac0d492d6adf520d6.tar.lz
nixpkgs-a51bbc1992596d2370f8878ac0d492d6adf520d6.tar.xz
nixpkgs-a51bbc1992596d2370f8878ac0d492d6adf520d6.tar.zst
nixpkgs-a51bbc1992596d2370f8878ac0d492d6adf520d6.zip
Adding libvpx (the codec VP8). Still no package uses it.
svn path=/nixpkgs/trunk/; revision=21958
Diffstat (limited to 'pkgs/development/libraries/libvpx')
-rw-r--r--pkgs/development/libraries/libvpx/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libvpx/default.nix b/pkgs/development/libraries/libvpx/default.nix
new file mode 100644
index 00000000000..43c29524d58
--- /dev/null
+++ b/pkgs/development/libraries/libvpx/default.nix
@@ -0,0 +1,32 @@
+{stdenv, fetchurl, bash}:
+
+stdenv.mkDerivation rec {
+  name = "libvpx-0.9.0";
+  
+  src = fetchurl {
+    url = http://webm.googlecode.com/files/libvpx-0.9.0.tar.bz2;
+    sha256 = "1p5rl7r8zpw43n8i38wv73na8crkkakw16yx0v7n3ywwhp36l2d0";
+  };
+
+  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
+  '';
+
+  installPhase = ''
+    make quiet=false DIST_DIR=$out install
+  '';
+
+  meta = {
+    description = "VP8 video encoder";
+    homepage = http://code.google.com/p/webm;
+    license = "BSD";
+  };
+}
+