avahi: move libdns_sd compat hook definition inside conditional block
authorDanomi Manchego <danomimanchego123@gmail.com>
Wed, 2 Mar 2016 02:56:07 +0000 (21:56 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 2 Mar 2016 20:20:27 +0000 (21:20 +0100)
As directed in the buildroot manual, "Optional hooks: keep hook
definition and assignment together in one if block".  And also
to be consistent with the rest of avahi.mk.

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/avahi/avahi.mk

index cad7acd30257afadc51ec04f40dab63283d1af75..8cf5f2321067aa0015f88d1209f23df834f10591 100644 (file)
@@ -216,13 +216,13 @@ define AVAHI_INSTALL_INIT_SYSV
        $(AVAHI_INSTALL_DAEMON_INIT_SYSV)
 endef
 
+ifeq ($(BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY),y)
 # 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