summaryrefslogtreecommitdiffstats
path: root/package/kodi
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2017-04-29 13:14:10 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-04-29 13:47:45 +0200
commitff45194b3c61a5b88b3cac047b16ba85bef8a15e (patch)
tree2426a9d9d9089ad06a83d26bfb29557afafbeda9 /package/kodi
parenta29a0c96194aaf12b482f76486c19479d5769c2d (diff)
downloadbuildroot-ff45194b3c61a5b88b3cac047b16ba85bef8a15e.tar.gz
buildroot-ff45194b3c61a5b88b3cac047b16ba85bef8a15e.zip
package/kodi: add optional support for pulseaudio
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/kodi')
-rw-r--r--package/kodi/Config.in11
-rw-r--r--package/kodi/kodi.mk7
2 files changed, 18 insertions, 0 deletions
diff --git a/package/kodi/Config.in b/package/kodi/Config.in
index bf4ea01549..fc403432fd 100644
--- a/package/kodi/Config.in
+++ b/package/kodi/Config.in
@@ -192,6 +192,17 @@ config BR2_PACKAGE_KODI_NONFREE
Enable components with non-free licenses. This option
currently only controls support for RAR archives.
+config BR2_PACKAGE_KODI_PULSEAUDIO
+ bool "pulseaudio"
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pulseaudio -> json-c
+ # Pulseaudio support in kodi needs glib support in Pulseaudio,
+ # see FindPulseAudio.cmake. Kodi meets all dependencies of
+ # libglib2, so there is no need to propagate them here.
+ select BR2_PACKAGE_LIBGLIB2
+ select BR2_PACKAGE_PULSEAUDIO
+ help
+ Enable Pulseaudio support.
+
config BR2_PACKAGE_KODI_LIBSHAIRPLAY
bool "shairport"
select BR2_PACKAGE_LIBSHAIRPLAY
diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
index a4835f0207..12dc3117f8 100644
--- a/package/kodi/kodi.mk
+++ b/package/kodi/kodi.mk
@@ -333,6 +333,13 @@ else
KODI_CONF_OPTS += -DENABLE_OPTICAL=OFF
endif
+ifeq ($(BR2_PACKAGE_KODI_PULSEAUDIO),y)
+KODI_CONF_OPTS += -DENABLE_PULSEAUDIO=ON
+KODI_DEPENDENCIES += pulseaudio
+else
+KODI_CONF_OPTS += -DENABLE_PULSEAUDIO=OFF
+endif
+
# Remove versioncheck addon, updating Kodi is done by building a new
# buildroot image.
KODI_ADDON_MANIFEST = $(TARGET_DIR)/usr/share/kodi/system/addon-manifest.xml
OpenPOWER on IntegriCloud