diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-03-02 14:36:43 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-03-02 14:36:43 +0000 |
commit | 16db1fed27cd256ba482e325af3dbd8e3d8d7e0f (patch) | |
tree | 64638b0e306eee9e0045703030d76deb42c83bf0 /package | |
parent | ecd6931abeb60ca3b60762766c296506f8680efd (diff) | |
download | buildroot-novena-16db1fed27cd256ba482e325af3dbd8e3d8d7e0f.tar.gz buildroot-novena-16db1fed27cd256ba482e325af3dbd8e3d8d7e0f.zip |
dnsmasq: Enable dbus support if available
Diffstat (limited to 'package')
-rw-r--r-- | package/dnsmasq/dnsmasq.mk | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/package/dnsmasq/dnsmasq.mk b/package/dnsmasq/dnsmasq.mk index c5dbefaec..c6fcb39aa 100644 --- a/package/dnsmasq/dnsmasq.mk +++ b/package/dnsmasq/dnsmasq.mk @@ -21,6 +21,12 @@ ifneq ($(BR2_PACKAGE_DNSMASQ_TFTP),y) DNSMASQ_COPTS+=-DNO_TFTP endif +ifeq ($(strip $(BR2_PACKAGE_DBUS)),y) +DNSMASQ_DBUS:=$(TARGET_DIR)/usr/bin/dbus-daemon +else +DNSMASQ_DBUS:= +endif + $(DL_DIR)/$(DNSMASQ_SOURCE): $(WGET) -P $(DL_DIR) $(DNSMASQ_SITE)/$(DNSMASQ_SOURCE) @@ -29,7 +35,14 @@ $(DNSMASQ_DIR)/.source: $(DL_DIR)/$(DNSMASQ_SOURCE) toolchain/patch-kernel.sh $(DNSMASQ_DIR) package/dnsmasq/ \*.patch touch $@ -$(DNSMASQ_DIR)/src/$(DNSMASQ_BINARY): $(DNSMASQ_DIR)/.source +$(DNSMASQ_DIR)/src/$(DNSMASQ_BINARY): $(DNSMASQ_DIR)/.source $(DNSMASQ_DBUS) +ifeq ($(strip $(BR2_PACKAGE_DBUS)),y) + $(SED) 's^.*#define HAVE_DBUS.*^#define HAVE_DBUS^' \ + $(DNSMASQ_DIR)/src/config.h +else + $(SED) 's^.*#define HAVE_DBUS.*^/* #define HAVE_DBUS */^' \ + $(DNSMASQ_DIR)/src/config.h +endif $(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" \ COPTS='$(DNSMASQ_COPTS)' PREFIX=/usr -C $(DNSMASQ_DIR) |