summaryrefslogtreecommitdiff
path: root/media-tv/kodi/files/kodi-21-optional-ffmpeg-libx11.patch
blob: 1d0805a3e574857bd149bbf1ec24d451261ae625 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/tools/depends/target/ffmpeg/CMakeLists.txt
+++ b/tools/depends/target/ffmpeg/CMakeLists.txt
@@ -74,6 +74,11 @@ if(CORE_SYSTEM_NAME STREQUAL linux OR CORE_SYSTEM_NAME STREQUAL freebsd)
   else()
     list(APPEND ffmpeg_conf --disable-vdpau)
   endif()
+  if ("x11" IN_LIST CORE_PLATFORM_NAME_LC)
+    list(APPEND ffmpeg_conf --enable-xlib)
+  else()
+    list(APPEND ffmpeg_conf --disable-xlib)
+  endif()
 elseif(CORE_SYSTEM_NAME STREQUAL android)
   list(APPEND ffmpeg_conf --target-os=android
                           --extra-libs=-liconv