Disable VPL/QSV plugin on non-x86_64

This commit is contained in:
Neal Gompa 2023-09-11 16:57:21 -04:00
parent da7c27338e
commit 15dcd56ae3
1 changed files with 15 additions and 0 deletions

View File

@ -5,6 +5,13 @@
%bcond_without lua_scripting
%endif
%ifarch x86_64
# VPL/QSV is only available on x86_64
%bcond_without vpl
%else
%bcond_with vpl
%endif
# VLC is not yet in Fedora
%bcond_with vlc
# x264 is not in Fedora
@ -93,7 +100,9 @@ BuildRequires: libxkbcommon-devel
BuildRequires: luajit-devel
%endif
BuildRequires: mbedtls-devel
%if %{with vpl}
BuildRequires: oneVPL-devel
%endif
BuildRequires: pciutils-devel
BuildRequires: pipewire-devel
BuildRequires: pipewire-jack-audio-connection-kit-devel
@ -201,6 +210,12 @@ mv plugins/obs-x264/CMakeLists.txt plugins/obs-x264/CMakeLists.txt.disabled
touch plugins/obs-x264/CMakeLists.txt
%endif
%if ! %{with vpl}
# disable unusable qsv plugin
mv plugins/obs-qsv11/CMakeLists.txt plugins/obs-qsv11/CMakeLists.txt.disabled
touch plugins/obs-qsv11/CMakeLists.txt
%endif
# remove -Werror flag to mitigate FTBFS with ffmpeg 5.1
sed -e 's|-Werror-implicit-function-declaration||g' -i cmake/Modules/CompilerConfig.cmake
sed -e '/-Werror/d' -i cmake/Modules/CompilerConfig.cmake