package/kodi: add optional support for pulseaudio
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sat, 29 Apr 2017 11:14:10 +0000 (13:14 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 29 Apr 2017 11:47:45 +0000 (13:47 +0200)
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 bf4ea01549ea98b705e1024716091cc9fc40f092..fc403432fdf30c15cd9d9ab188d609f38f280746 100644 (file)
@@ -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
index a4835f0207817e0f1bca57b67d49c56a226aa7d9..12dc3117f8581937879443104b7ae1fc09adf496 100644 (file)
@@ -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