git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #43601 from thefloweringash/ffmpeg-libvpx

ffmpeg, ffmpeg-full: enable libvpx on Darwin

commitf4fbdf0578105521d0ef4c4af02074c9d25159a3 authorxeji <36407913+xeji@users.noreply.github.com> dateMon 16 Jul 2018, 17:16 (8 years ago) parent862e4e42d9cc7a
2 files changed+6−4
pkgs/development/libraries/ffmpeg/generic.nix+6−3 pkgs/top-level/all-packages.nix−1
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
pkgs/top-level/all-packages.nix−1
@@ -9138,7 +9138,6 @@ with pkgs;
91389138 game-music-emu = if stdenv.isDarwin then null else game-music-emu;
91399139 libjack2 = if stdenv.isDarwin then null else libjack2;
91409140 libmodplug = if stdenv.isDarwin then null else libmodplug;
9141− libvpx = if stdenv.isDarwin then null else libvpx;
91429141 openal = if stdenv.isDarwin then null else openal;
91439142 libpulseaudio = if stdenv.isDarwin then null else libpulseaudio;
91449143 samba = if stdenv.isDarwin then null else samba;