git.iko.soy/typeable/nixpkgs
on master help sign in
ffmpeg: enable libvpx on Darwin
commit2d9cc7a3bf8573d5b67c923b50bb7307bd74925e authorAndrew Childs <lorne@cons.org.nz> dateMon 16 Jul 2018, 13:15 (8 years ago) parente8b2968
1 file changed+6−3
pkgs/development/libraries/ffmpeg/generic.nix+6−3
pkgs/development/libraries/ffmpeg/generic.nix+6−3
@@ -26,7 +26,7 @@
2626 * see `ffmpeg-full' for an ffmpeg build with all features included.
2727 *
2828 * Need fixes to support Darwin:
29− * libvpx pulseaudio
29+ * pulseaudio
3030 *
3131 * Known issues:
3232 * 0.6 - fails to compile (unresolved) (so far, only disabling a number of
@@ -58,6 +58,8 @@ let
5858 disDarwinOrArmFix = origArg: minVer: fixArg: if ((isDarwin || isAarch32) && reqMin minVer) then fixArg else origArg;
5959
6060 vaapiSupport = reqMin "0.6" && ((isLinux || isFreeBSD) && !isAarch32);
61+
62+ vpxSupport = reqMin "0.6" && !isAarch32;
6163in
6264
6365assert openglSupport -> libGLU_combined != null;
@@ -130,7 +132,7 @@ stdenv.mkDerivation rec {
130132 (ifMinVer "0.6" (enableFeature vaapiSupport "vaapi"))
131133 "--enable-vdpau"
132134 "--enable-libvorbis"
133− (disDarwinOrArmFix (ifMinVer "0.6" "--enable-libvpx") "0.6" "--disable-libvpx")
135+ (ifMinVer "0.6" (enableFeature vpxSupport "libvpx"))
134136 (ifMinVer "2.4" "--enable-lzma")
135137 (ifMinVer "2.2" (enableFeature openglSupport "opengl"))
136138 (disDarwinOrArmFix (ifMinVer "0.9" "--enable-libpulse") "0.9" "--disable-libpulse")
@@ -159,7 +161,8 @@ stdenv.mkDerivation rec {
159161 bzip2 fontconfig freetype gnutls libiconv lame libass libogg libtheora
160162 libvdpau libvorbis lzma soxr x264 x265 xvidcore zlib libopus
161163 ] ++ optional openglSupport libGLU_combined
162− ++ optionals (!isDarwin && !isAarch32) [ libvpx libpulseaudio ] # Need to be fixed on Darwin and ARM
164+ ++ optional vpxSupport libvpx
165+ ++ optionals (!isDarwin && !isAarch32) [ libpulseaudio ] # Need to be fixed on Darwin and ARM
163166 ++ optional ((isLinux || isFreeBSD) && !isAarch32) libva
164167 ++ optional isLinux alsaLib
165168 ++ optionals isDarwin darwinFrameworks