From abc3613a4f6f7e4619e669d9bdf5f39d688bda02 Mon Sep 17 00:00:00 2001 From: Leigh Scott Date: Wed, 11 Mar 2020 21:40:15 +0000 Subject: [PATCH] Fixup for i686 --- ffmpeg.spec | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ffmpeg.spec b/ffmpeg.spec index 7c57fa9..38a95cc 100644 --- a/ffmpeg.spec +++ b/ffmpeg.spec @@ -21,13 +21,13 @@ %global _without_aom 1 %global _without_dav1d 1 %global _without_frei0r 1 -%global _without_mfx 1 %global _without_opus 1 %global _without_vpx 1 %endif %if 0%{?fedora} || 0%{?rhel} > 7 %ifarch x86_64 +%global _with_mfx 1 %global _with_vmaf 1 %endif %endif @@ -148,8 +148,8 @@ BuildRequires: libv4l-devel BuildRequires: libvdpau-devel BuildRequires: libvorbis-devel %{?!_without_vpx:BuildRequires: libvpx-devel >= 1.4.0} +%{?_with_mfx:BuildRequires: pkgconfig(libmfx) >= 1.23-1} %ifarch %{ix86} x86_64 -%{!?_without_mfx:BuildRequires: pkgconfig(libmfx) >= 1.23-1} BuildRequires: nasm %endif %{?_with_webp:BuildRequires: libwebp-devel} @@ -349,9 +349,7 @@ cp -pr doc/examples/{*.c,Makefile,README} _doc/examples/ %ifarch %{ix86} --cpu=%{_target_cpu} \ %endif -%ifarch %{ix86} x86_64 - %{!?_without_mfx:--enable-libmfx} \ -%endif + %{?_with_mfx:--enable-libmfx} \ %ifarch %{ix86} x86_64 %{power64} --enable-runtime-cpudetect \ %endif