avahi: remove double dependency on gettext
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Thu, 1 Nov 2012 14:36:05 +0000 (15:36 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 30 Jul 2013 21:37:09 +0000 (23:37 +0200)
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/avahi/avahi.mk

index 028f3aeee409ccddf0cd2cbe302419d653caa3f6..eb76d795f961fea88f481e06cd33e47330dd1fe9 100644 (file)
@@ -135,10 +135,7 @@ else
 AVAHI_CONF_OPT += --disable-python
 endif
 
-ifeq ($(BR2_PACKAGE_GETTEXT),y)
-AVAHI_DEPENDENCIES += gettext
-AVAHI_MAKE_OPT = LIBS=-lintl
-endif
+AVAHI_MAKE_OPT += $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),LIBS=-lintl)
 
 define AVAHI_REMOVE_INITSCRIPT
        rm -rf $(TARGET_DIR)/etc/init.d/avahi-*