Skip to content

Commit

Permalink
ffmpeg: fix arm build
Browse files Browse the repository at this point in the history
(cherry picked from commit 6679dbb)
  • Loading branch information
abbradar committed May 18, 2017
1 parent 3e47e62 commit e4f02ef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkgs/development/libraries/ffmpeg/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ let

# Disable dependency that needs fixes before it will work on Darwin or Arm
disDarwinOrArmFix = origArg: minVer: fixArg: if ((isDarwin || isArm) && reqMin minVer) then fixArg else origArg;

vaapiSupport = reqMin "0.6" && ((isLinux || isFreeBSD) && !isArm);
in

assert openglSupport -> mesa != null;
Expand Down Expand Up @@ -121,7 +123,7 @@ stdenv.mkDerivation rec {
"--enable-libmp3lame"
(ifMinVer "1.2" "--enable-iconv")
"--enable-libtheora"
(ifMinVer "0.6" (enableFeature (isLinux || isFreeBSD) "vaapi"))
(ifMinVer "0.6" (enableFeature vaapiSupport "vaapi"))
"--enable-vdpau"
"--enable-libvorbis"
(disDarwinOrArmFix (ifMinVer "0.6" "--enable-libvpx") "0.6" "--disable-libvpx")
Expand Down Expand Up @@ -197,8 +199,7 @@ stdenv.mkDerivation rec {
installFlags = [ "install-man" ];

passthru = {
vaapiSupport = if reqMin "0.6" && ((isLinux || isFreeBSD) && !isArm) then true else false;
inherit vdpauSupport;
inherit vaapiSupport vdpauSupport;
};

meta = with stdenv.lib; {
Expand Down

0 comments on commit e4f02ef

Please sign in to comment.