package/kodi: libxslt is an optional package
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sat, 29 Apr 2017 08:37:43 +0000 (10:37 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 29 Apr 2017 10:03:39 +0000 (12:03 +0200)
After this commit
https://github.com/xbmc/xbmc/commit/bad3902b4a2538a433f858c97b2cf91c44c7feff
libxslt, together with libxml2, are an optional package.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/kodi/Config.in
package/kodi/kodi.mk

index e8efd72bf5e43e43bcdd21989cb127db76dbb91b..cd58cf29019068a0ebbc90b4c510031acb0a80d0 100644 (file)
@@ -64,8 +64,6 @@ menuconfig BR2_PACKAGE_KODI
        select BR2_PACKAGE_LIBGLU if BR2_PACKAGE_KODI_GL_EGL
        select BR2_PACKAGE_LIBPLIST
        select BR2_PACKAGE_LIBSAMPLERATE
-       select BR2_PACKAGE_LIBXML2
-       select BR2_PACKAGE_LIBXSLT
        select BR2_PACKAGE_LZO
        select BR2_PACKAGE_NCURSES
        select BR2_PACKAGE_OPENSSL
index 7341cc39dfbb7ae54d4055744581b2ae89ddd6f0..4c7a2e808830c5ab363f0f2c093e37078a74a486 100644 (file)
@@ -33,8 +33,6 @@ KODI_DEPENDENCIES = \
        libfribidi \
        libplist \
        libsamplerate \
-       libxml2 \
-       libxslt \
        lzo \
        ncurses \
        openssl \
@@ -183,6 +181,13 @@ else
 KODI_CONF_OPTS += -DENABLE_CAP=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_LIBXML2)$(BR2_PACKAGE_LIBXSLT),yy)
+KODI_CONF_OPTS += -DENABLE_XSLT=ON
+KODI_DEPENDENCIES += libxml2 libxslt
+else
+KODI_CONF_OPTS += -DENABLE_XSLT=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_KODI_BLUEZ),y)
 KODI_CONF_OPTS += -DENABLE_BLUETOOTH=ON
 KODI_DEPENDENCIES += bluez5_utils