package/mpd: fix zeroconf support
authorJörg Krause <jkrause@posteo.de>
Thu, 16 Oct 2014 22:29:03 +0000 (00:29 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 27 Oct 2014 21:54:33 +0000 (22:54 +0100)
Add a config option to explicitly enable Avahi support in MPD.

Signed-off-by: Jörg Krause <jkrause@posteo.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/mpd/Config.in
package/mpd/mpd.mk

index 98ac2b649ffb1009b71a222af9400af81ada32e0..ed0df7f00a6b67b36315d2fc8fcbc5cccbe538ff 100644 (file)
@@ -243,6 +243,20 @@ comment "pulseaudio support needs a toolchain w/ largefile"
 
 comment "Miscellaneous plugins"
 
+config BR2_PACKAGE_MPD_AVAHI_SUPPORT
+       bool "avahi (zeroconf) support"
+       depends on !BR2_PREFER_STATIC_LIB # avahi
+       select BR2_PACKAGE_AVAHI
+       select BR2_PACKAGE_AVAHI_DAEMON
+       select BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY
+       help
+         Enable Avahi (zeroconf) support.
+         Select this for multicast DNS/DNS-SD service discovery support. This allows
+         MPD to publish service information on a local network.
+
+comment "avahi support needs a toolchain w/ dynamic library"
+       depends on BR2_PREFER_STATIC_LIB
+
 config BR2_PACKAGE_MPD_TCP
        bool "tcp sockets"
        default y
index 4eca183d1aa1232a897258a8ad662d1b5af5d2f2..ae37b14e5dff0ef5c6c52d488e638f264ad03b3e 100644 (file)
@@ -13,8 +13,11 @@ MPD_LICENSE = GPLv2+
 MPD_LICENSE_FILES = COPYING
 
 # Some options need an explicit --disable or --enable
-ifeq ($(BR2_PACKAGE_AVAHI_DAEMON),y)
+
+# Zeroconf support depends on libdns_sd from avahi.
+ifeq ($(BR2_PACKAGE_MPD_AVAHI_SUPPORT),y)
 MPD_DEPENDENCIES += avahi
+MPD_CONF_OPTS += --with-zeroconf=avahi
 else
 MPD_CONF_OPTS += --with-zeroconf=no
 endif