aboutsummaryrefslogtreecommitdiff
path: root/graphics/digikam/files/patch-core_cmake_rules_RulesFFmpeg.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/digikam/files/patch-core_cmake_rules_RulesFFmpeg.cmake')
-rw-r--r--graphics/digikam/files/patch-core_cmake_rules_RulesFFmpeg.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/graphics/digikam/files/patch-core_cmake_rules_RulesFFmpeg.cmake b/graphics/digikam/files/patch-core_cmake_rules_RulesFFmpeg.cmake
new file mode 100644
index 000000000000..5b7418618d73
--- /dev/null
+++ b/graphics/digikam/files/patch-core_cmake_rules_RulesFFmpeg.cmake
@@ -0,0 +1,24 @@
+FFmpeg is only needed for the optional Media Player. Don't try to find it
+otherwise. RulesFFmpeg was split out from RulesMediaPlayer in [1], but was
+not blocked in the ENABLE_MEDIAPLAYER conditional that it was previously
+under, making FFmpeg unconditionally required.
+
+[1] https://invent.kde.org/graphics/digikam/-/commit/44da06a0b008eb4030ae59e57c11a1341c157c8c
+
+--- core/cmake/rules/RulesFFmpeg.cmake.orig 2024-03-16 04:40:45 UTC
++++ core/cmake/rules/RulesFFmpeg.cmake
+@@ -4,6 +4,8 @@
+ # SPDX-License-Identifier: BSD-3-Clause
+ #
+
++if(ENABLE_MEDIAPLAYER)
++
+ find_package(FFmpeg REQUIRED COMPONENTS AVCODEC
+ AVDEVICE
+ AVFILTER
+@@ -105,3 +107,5 @@ endif()
+ )
+
+ endif()
++
++endif(ENABLE_MEDIAPLAYER)