summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2018-01-31 06:08:34 +0000
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2018-01-31 06:09:16 +0000
commitb7cc2ebcacef98b0454ef6e6ccce305b8b074c98 (patch)
tree4622051ec664dbfca2ba8a9daadcca098498a54c
parent8e2f691484aa88561f8b8beb5a83fbc33b5b969e (diff)
kodi: allow to enable avahi support
-rw-r--r--package/kodi/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/package/kodi/Makefile b/package/kodi/Makefile
index 5ee09cecc..d4bd62361 100644
--- a/package/kodi/Makefile
+++ b/package/kodi/Makefile
@@ -38,10 +38,13 @@ WRKSRC= $(WRKDIR)/xbmc-$(PKG_VERSION)-Krypton/project/cmake
PKG_SYSTEM_DEPENDS:= raspberry-pi raspberry-pi2 raspberry-pi3
PKG_FLAVOURS_KODI:= WITH_ALSA WITH_CEC WITH_PULSEAUDIO WITH_SMB
-PKG_FLAVOURS_KODI+= WITH_MICROHTTPD WITH_SSH
+PKG_FLAVOURS_KODI+= WITH_MICROHTTPD WITH_SSH WITH_AVAHI
PKGFD_WITH_ALSA:= enable alsa support
PKGFS_WITH_ALSA:= alsa-lib
PKGFB_WITH_ALSA:= alsa-lib
+PKGFD_WITH_AVAHI:= enable avahi support
+PKGFS_WITH_AVAHI:= libavahi
+PKGFB_WITH_AVAHI:= avahi
PKGFD_WITH_CEC:= enable cec support
PKGFS_WITH_CEC:= libcec
PKGFB_WITH_CEC:= libcec
@@ -82,7 +85,6 @@ CMAKE_FLAGS+= -DENABLE_CCACHE=OFF \
-DENABLE_BLUETOOTH=OFF \
-DENABLE_BLURAY=OFF \
-DENABLE_AIRTUNES=OFF \
- -DENABLE_AVAHI=OFF \
-DENABLE_LCMS2=OFF \
-DENABLE_LIRC=OFF \
-DENABLE_UPNP=OFF \
@@ -111,6 +113,11 @@ CMAKE_FLAGS+= -DENABLE_ALSA=ON
else
CMAKE_FLAGS+= -DENABLE_ALSA=OFF
endif
+ifeq ($(ADK_PACKAGE_KODI_WITH_AVAHI),y)
+CMAKE_FLAGS+= -DENABLE_AVAHI=ON
+else
+CMAKE_FLAGS+= -DENABLE_AVAHI=OFF
+endif
ifeq ($(ADK_PACKAGE_KODI_WITH_CEC),y)
CMAKE_FLAGS+= -DENABLE_CEC=ON
else