libavahi: Don't build libdns_sd if not selected
authorTed Hess <thess@kitschensync.net>
Sat, 1 Nov 2014 22:49:32 +0000 (18:49 -0400)
committerTed Hess <thess@kitschensync.net>
Sat, 1 Nov 2014 22:49:38 +0000 (18:49 -0400)
Signed-off-by: Ted Hess <thess@kitschensync.net>
libs/avahi/Makefile

index 3dd174c206e21d4c91e616aa76cfab80bf7b3597..ea4353be8c9afb71213f23b28af8bb102451c71f 100644 (file)
@@ -217,9 +217,9 @@ CONFIGURE_ARGS+= \
        --disable-gtk3 \
        --with-xml=expat \
        --disable-dbm \
-       --enable-compat-libdns_sd \
        --enable-gdbm \
        --enable-libdaemon \
+       $(if $(CONFIG_PACKAGE_libavahi-compat-libdnssd),--enable-compat-libdns_sd) \
        --disable-python \
        --disable-pygtk \
        --disable-python-dbus \
@@ -263,7 +263,10 @@ define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
        $(INSTALL_DIR) $(1)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/{libavahi-*,libdns_sd*} $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavahi-* $(1)/usr/lib/
+ifneq ($(CONFIG_PACKAGE_libavahi-compat-libdnssd),)
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdns_sd* $(1)/usr/lib/
+endif
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
 endef