summary refs log tree commit diff
path: root/pkgs/development/libraries/libvpx
diff options
context:
space:
mode:
authorJason \"Don\" O'Conal <lovek323@gmail.com>2013-07-04 15:03:46 +1000
committerRok Garbas <rok@garbas.si>2013-07-12 16:26:46 +0200
commit481be8185fbc6d3d01382347c45075032508e48a (patch)
treec0048fc7145377ca07353a8b10049a9b9cf403dd /pkgs/development/libraries/libvpx
parent7b975abc16f4f8774ee5bf621a820fe800c5cabc (diff)
downloadnixpkgs-481be8185fbc6d3d01382347c45075032508e48a.tar
nixpkgs-481be8185fbc6d3d01382347c45075032508e48a.tar.gz
nixpkgs-481be8185fbc6d3d01382347c45075032508e48a.tar.bz2
nixpkgs-481be8185fbc6d3d01382347c45075032508e48a.tar.lz
nixpkgs-481be8185fbc6d3d01382347c45075032508e48a.tar.xz
nixpkgs-481be8185fbc6d3d01382347c45075032508e48a.tar.zst
nixpkgs-481be8185fbc6d3d01382347c45075032508e48a.zip
libvpx: fix build on darwin
* remove --enable-shared configure flag
* replace '-arch x86_64' with 'march=x86-64'
Diffstat (limited to 'pkgs/development/libraries/libvpx')
-rw-r--r--pkgs/development/libraries/libvpx/default.nix23
1 files changed, 11 insertions, 12 deletions
diff --git a/pkgs/development/libraries/libvpx/default.nix b/pkgs/development/libraries/libvpx/default.nix
index 494a5c36a3c..3ca2239ac8e 100644
--- a/pkgs/development/libraries/libvpx/default.nix
+++ b/pkgs/development/libraries/libvpx/default.nix
@@ -21,27 +21,26 @@ stdenv.mkDerivation rec {
   preConfigure = ''
     mkdir -p build
     cd build
+    substituteInPlace make/configure.sh --replace "-arch x86_64" "-march=x86-64"
   '';
 
   configureScript = "../configure";
-  configureFlags = [
-    "--disable-install-srcs"
-    "--disable-install-docs"
-    "--disable-examples"
-    "--enable-vp8"
-    "--enable-runtime-cpu-detect"
-    "--enable-shared"
-    "--enable-pic"
-  ];
+  configureFlags =
+    [ "--disable-install-srcs" "--disable-install-docs" "--disable-examples"
+      "--enable-vp8" "--enable-runtime-cpu-detect" "--enable-pic" ]
+    # --enable-shared is only supported on ELF
+    ++ stdenv.lib.optional (!stdenv.isDarwin) "--enable-shared";
 
   installPhase = ''
     make quiet=false DIST_DIR=$out install
   '';
 
-  meta = {
+  meta = with stdenv.lib; {
     description = "VP8 video encoder";
-    homepage = http://code.google.com/p/webm;
-    license = "BSD";
+    homepage    = http://code.google.com/p/webm;
+    license     = licenses.bsd;
+    maintainers = with maintainers; [ lovek323 ];
+    platforms   = platforms.unix;
   };
 }