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-09-01 08:36:09 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-09-01 08:36:09 +0000
commita88f348d5b8414dcc9bdd694403cb2c94aa0b7e0 (patch)
tree04a7a666b808a9a92300f8bb58499760cede93ac /pkgs/development/libraries/libvpx
parent50b3cc05c7dc8ce44be2e37c24b663ef41dd805e (diff)
Make mplayer build on the loongson2f
svn path=/nixpkgs/branches/stdenv-updates/; revision=23578
Diffstat (limited to 'pkgs/development/libraries/libvpx')
-rw-r--r--pkgs/development/libraries/libvpx/default.nix15
1 files changed, 13 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libvpx/default.nix b/pkgs/development/libraries/libvpx/default.nix
index 7cd2e4d639b25..e6c8149edc091 100644
--- a/pkgs/development/libraries/libvpx/default.nix
+++ b/pkgs/development/libraries/libvpx/default.nix
@@ -11,14 +11,25 @@ stdenv.mkDerivation rec {
   patchPhase = ''
     sed -e 's,/bin/bash,${bash}/bin/bash,' -i configure build/make/version.sh \
       examples/gen_example_code.sh
+    sed -e '/enable linux/d' -i configure
   '';
 
-  configurePhase = ''
+  configureScript = "../configure";
+
+  preConfigure = ''
     mkdir -p build
     cd build
-    ../configure --disable-install-srcs --disable-examples --enable-vp8 --enable-runtime-cpu-detect --enable-shared --enable-pic
   '';
 
+  configureFlags = [
+    "--disable-install-srcs"
+    "--disable-examples"
+    "--enable-vp8"
+    "--enable-runtime-cpu-detect"
+    "--enable-shared"
+    "--enable-pic"
+  ];
+
   installPhase = ''
     make quiet=false DIST_DIR=$out install
   '';