summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-07-11 20:08:58 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-07-17 14:29:01 +0200
commit2aae80b209de91740fd57a36d42b3801f2793eeb (patch)
treefb2933be810dc7777077843a965e47d71f29cc2b
parent29ad494654266816d6b6a0e5818f8ff0f7465c7c (diff)
downloadbuildroot-2aae80b209de91740fd57a36d42b3801f2793eeb.tar.gz
buildroot-2aae80b209de91740fd57a36d42b3801f2793eeb.zip
package/kodi: Add suboption to control unrar support
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [Thomas: tweak Config.in description.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/kodi/Config.in6
-rw-r--r--package/kodi/kodi.mk8
2 files changed, 14 insertions, 0 deletions
diff --git a/package/kodi/Config.in b/package/kodi/Config.in
index a000e79a0b..a4cbab2da7 100644
--- a/package/kodi/Config.in
+++ b/package/kodi/Config.in
@@ -174,6 +174,12 @@ config BR2_PACKAGE_KODI_LIBNFS
comment "nfs support needs a toolchain w/ threads support"
depends on !(BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_HAS_NATIVE_RPC)
+config BR2_PACKAGE_KODI_NONFREE
+ bool "nonfree components"
+ help
+ Enable components with non-free licenses. This option
+ currently only controls support for RAR archives.
+
config BR2_PACKAGE_KODI_RTMPDUMP
bool "rtmp"
select BR2_PACKAGE_RTMPDUMP
diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
index 52593aa595..da5d1fa75a 100644
--- a/package/kodi/kodi.mk
+++ b/package/kodi/kodi.mk
@@ -86,6 +86,14 @@ else
KODI_CONF_OPTS += --disable-mysql
endif
+ifeq ($(BR2_PACKAGE_KODI_NONFREE),y)
+KODI_CONF_OPTS += --enable-non-free
+KODI_LICENSE := $(KODI_LICENSE), unrar
+KODI_LICENSE_FILES += lib/UnrarXLib/license.txt
+else
+KODI_CONF_OPTS += --disable-non-free
+endif
+
ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
KODI_DEPENDENCIES += rpi-userland
KODI_CONF_OPTS += --with-platform=raspberry-pi --enable-player=omxplayer
OpenPOWER on IntegriCloud