mpd: add optional avahi support
authorPeter Korsgaard <peter@korsgaard.com>
Tue, 3 Jun 2014 21:50:33 +0000 (23:50 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 3 Jun 2014 21:50:33 +0000 (23:50 +0200)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/mpd/mpd.mk

index 0e8a510ffba66be9ad0f0ac1c3be8b27d76c82ec..2f0b37ed2feda98a36ce99f2016890e3a4287332 100644 (file)
@@ -13,6 +13,11 @@ MPD_LICENSE = GPLv2+
 MPD_LICENSE_FILES = COPYING
 
 # Some options need an explicit --disable or --enable
+ifeq ($(BR2_PACKAGE_AVAHI_DAEMON),y)
+MPD_DEPENDENCIES += avahi
+else
+MPD_CONF_OPT += --with-zeroconf=no
+endif
 
 ifeq ($(BR2_PACKAGE_MPD_ALSA),y)
 MPD_DEPENDENCIES += alsa-lib