package/kodi: add missing dependency on libdrm
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 18 Jan 2015 23:13:30 +0000 (00:13 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 19 Jan 2015 12:23:22 +0000 (13:23 +0100)
When building Kodi with X11 support, libdrm is a mandatory dependency,
and it uses pkg-config to find it.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/kodi/Config.in
package/kodi/kodi.mk

index 7d89b5b4b19f92d9187870e27a721b4887211fab..5141629711c8a881a21bc33a2e190be6ed6c4971 100644 (file)
@@ -85,6 +85,7 @@ menuconfig BR2_PACKAGE_KODI
        select BR2_PACKAGE_TAGLIB
        select BR2_PACKAGE_TIFF
        select BR2_PACKAGE_TINYXML
+       select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_KODI_GL
        select BR2_PACKAGE_XLIB_XMU if BR2_PACKAGE_KODI_GL # needed by rsxs screensaver
        select BR2_PACKAGE_XLIB_XRANDR if BR2_PACKAGE_KODI_GL
        select BR2_PACKAGE_XLIB_XT if BR2_PACKAGE_KODI_GL # needed by rsxs screensaver
index 1fb725617120f634bd8e11a5022bb280d3264a49..3e649f7bb17f5edb01d92d7e94be1d50c91268da 100644 (file)
@@ -77,9 +77,11 @@ endif
 
 # quote from kodi/configure.in: "GLES overwrites GL if both set to yes."
 # we choose the opposite because opengl offers more features, like libva support
+# GL means X11, and under X11, Kodi needs libdrm; libdrm is forcefully selected
+# by a modular Xorg server, which Kodi already depends on.
 ifeq ($(BR2_PACKAGE_KODI_GL),y)
 KODI_DEPENDENCIES += libglew libglu libgl sdl_image xlib_libX11 xlib_libXext \
-       xlib_libXmu xlib_libXrandr xlib_libXt
+       xlib_libXmu xlib_libXrandr xlib_libXt libdrm
 KODI_CONF_OPTS += --enable-gl --enable-sdl --enable-x11 --enable-xrandr --disable-gles
 ifeq ($(BR2_PACKAGE_KODI_RSXS),y)
 # fix rsxs compile