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
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