2004-04-04 04:33:03 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# dnsmasq
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2010-01-26 15:36:07 +01:00
|
|
|
DNSMASQ_VERSION = 2.52
|
2009-09-01 23:02:06 +02:00
|
|
|
DNSMASQ_SITE = http://thekelleys.org.uk/dnsmasq
|
|
|
|
DNSMASQ_AUTORECONF = NO
|
|
|
|
DNSMASQ_MAKE_ENV = CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)"
|
|
|
|
DNSMASQ_MAKE_OPT = COPTS="$(DNSMASQ_COPTS)" PREFIX=/usr
|
|
|
|
DNSMASQ_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) PREFIX=/usr install
|
2007-09-10 11:04:03 +02:00
|
|
|
|
2008-03-02 15:36:40 +01:00
|
|
|
ifneq ($(BR2_INET_IPV6),y)
|
2009-09-01 23:02:06 +02:00
|
|
|
DNSMASQ_COPTS += -DNO_IPV6
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_DNSMASQ_DHCP),y)
|
|
|
|
DNSMASQ_COPTS += -DNO_DHCP
|
2008-03-02 15:36:40 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_DNSMASQ_TFTP),y)
|
2009-09-01 23:02:06 +02:00
|
|
|
DNSMASQ_COPTS += -DNO_TFTP
|
2004-04-04 04:33:03 +02:00
|
|
|
endif
|
|
|
|
|
2009-11-13 16:12:09 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DNSMASQ_IDN),y)
|
|
|
|
DNSMASQ_MAKE_OPT += all-i18n
|
|
|
|
DNSMASQ_DEPENDENCIES += libidn libintl
|
|
|
|
DNSMASQ_MAKE_ENV += LDFLAGS+="-lintl"
|
|
|
|
endif
|
|
|
|
|
2008-08-08 20:15:29 +02:00
|
|
|
ifneq ($(BR2_LARGEFILE),y)
|
2009-09-01 23:02:06 +02:00
|
|
|
DNSMASQ_COPTS += -DNO_LARGEFILE
|
2008-08-08 20:15:29 +02:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DBUS),y)
|
2009-10-27 23:16:44 +01:00
|
|
|
DNSMASQ_DEPENDENCIES += host-pkg-config dbus
|
2008-03-02 15:36:43 +01:00
|
|
|
endif
|
|
|
|
|
2009-09-01 23:02:06 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,dnsmasq))
|
2004-04-04 04:33:03 +02:00
|
|
|
|
2009-09-01 23:02:06 +02:00
|
|
|
$(DNSMASQ_TARGET_CONFIGURE):
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DBUS),y)
|
2008-03-02 15:36:43 +01:00
|
|
|
$(SED) 's^.*#define HAVE_DBUS.*^#define HAVE_DBUS^' \
|
|
|
|
$(DNSMASQ_DIR)/src/config.h
|
2009-09-01 23:02:06 +02:00
|
|
|
$(SED) 's^PKG_CONFIG = pkg-config^PKG_CONFIG = $(PKG_CONFIG_HOST_BINARY)^' \
|
|
|
|
$(DNSMASQ_DIR)/Makefile
|
|
|
|
$(SED) 's^--cflags dbus-1^--cflags dbus-1 \| sed s\\\#-I/\\\#-I$(STAGING_DIR)/\\\#g^' \
|
|
|
|
$(DNSMASQ_DIR)/Makefile
|
2008-03-02 15:36:43 +01:00
|
|
|
else
|
|
|
|
$(SED) 's^.*#define HAVE_DBUS.*^/* #define HAVE_DBUS */^' \
|
|
|
|
$(DNSMASQ_DIR)/src/config.h
|
|
|
|
endif
|
2009-09-01 23:02:06 +02:00
|
|
|
touch $@
|
2004-04-04 04:33:03 +02:00
|
|
|
|
2009-09-01 23:02:06 +02:00
|
|
|
$(DNSMASQ_TARGET_UNINSTALL):
|
|
|
|
$(call MESSAGE,"Uninstalling")
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/dnsmasq
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/man/man8/dnsmasq.8
|
|
|
|
rm -f $(DNSMASQ_TARGET_INSTALL_TARGET) $(DNSMASQ_HOOK_POST_INSTALL)
|