From aab1690637755d638101ddd490a858f4a9e447c4 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Mon, 11 Jul 2016 20:09:01 +0200 Subject: [PATCH] package/kodi: add optional support for libvdpau Signed-off-by: Bernd Kuhls [Thomas: drop select of libX11 and libXext, since the libvdpau package already selects them.] Signed-off-by: Thomas Petazzoni --- package/kodi/Config.in | 10 ++++++++++ package/kodi/kodi.mk | 8 +++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/package/kodi/Config.in b/package/kodi/Config.in index 9a5baa8b37..afb834ecd7 100644 --- a/package/kodi/Config.in +++ b/package/kodi/Config.in @@ -236,6 +236,16 @@ config BR2_PACKAGE_KODI_LIBVA help Enable libva support. +config BR2_PACKAGE_KODI_LIBVDPAU + bool "vdpau" + depends on BR2_PACKAGE_XORG7 + select BR2_PACKAGE_LIBVDPAU + help + Enable libvdpau support. + +comment "libvdpau support needs X.org" + depends on !BR2_PACKAGE_XORG7 + config BR2_PACKAGE_KODI_UPNP bool "upnp" help diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk index e291947021..9f21bf2988 100644 --- a/package/kodi/kodi.mk +++ b/package/kodi/kodi.mk @@ -74,7 +74,6 @@ KODI_CONF_OPTS += \ --disable-joystick \ --disable-openmax \ --disable-pulse \ - --disable-vdpau \ --disable-vtbdecoder \ --enable-optimizations @@ -243,6 +242,13 @@ else KODI_CONF_OPTS += --disable-vaapi endif +ifeq ($(BR2_PACKAGE_KODI_LIBVDPAU),y) +KODI_DEPENDENCIES += libvdpau +KODI_CONF_OPTS += --enable-vdpau +else +KODI_CONF_OPTS += --disable-vdpau +endif + ifeq ($(BR2_PACKAGE_KODI_UPNP),y) KODI_CONF_OPTS += --enable-upnp else -- 2.30.2