The daemon registers local IP addresses and services using
mDNS/DNS-SD.
+config BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY
+ bool "libdns_sd compatibility (Bonjour)"
+ depends on BR2_PACKAGE_AVAHI_DAEMON
+ select BR2_PACKAGE_DBUS
+ help
+ Enable the libdns_sd (Bonjour) compatibility library support
+ for legacy applications.
+
endif
comment "avahi needs a toolchain w/ threads"
AVAHI_CONF_OPT += --with-xml=none
endif
+ifeq ($(BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY),y)
+AVAHI_CONF_OPT += --enable-compat-libdns_sd
+endif
+
ifeq ($(BR2_PACKAGE_DBUS),y)
AVAHI_DEPENDENCIES += dbus
else
endif
+# applications expects to be able to #include <dns_sd.h>
+define AVAHI_STAGING_INSTALL_LIBDNSSD_LINK
+ ln -sf avahi-compat-libdns_sd/dns_sd.h \
+ $(STAGING_DIR)/usr/include/dns_sd.h
+endef
+
+ifeq ($(BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY),y)
+AVAHI_POST_INSTALL_STAGING_HOOKS += AVAHI_STAGING_INSTALL_LIBDNSSD_LINK
+endif
+
$(eval $(autotools-package))