diff options
author | Jason \"Don\" O'Conal <lovek323@gmail.com> | 2013-07-04 15:03:46 +1000 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2013-07-12 16:26:46 +0200 |
commit | 481be8185fbc6d3d01382347c45075032508e48a (patch) | |
tree | c0048fc7145377ca07353a8b10049a9b9cf403dd /pkgs/development/libraries/libvpx | |
parent | 7b975abc16f4f8774ee5bf621a820fe800c5cabc (diff) |
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.nix | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/pkgs/development/libraries/libvpx/default.nix b/pkgs/development/libraries/libvpx/default.nix index 494a5c36a3c42..3ca2239ac8e46 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; }; } |