soft-float shouldn't be used on targets with FPU
[openwrt/svn-archive/archive.git] / package / dnsmasq / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=dnsmasq
12 PKG_VERSION:=2.41
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
17 PKG_MD5SUM:=b067598c3e9b91819a8be5cb59cbf90e
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/dnsmasq
22 SECTION:=net
23 CATEGORY:=Base system
24 TITLE:=A lightweight DNS and DHCP server
25 URL:=http://www.thekelleys.org.uk/dnsmasq/
26 endef
27
28 define Package/dnsmasq/description
29 It is intended to provide coupled DNS and DHCP service to a LAN.
30 endef
31
32 define Build/Compile
33 $(MAKE) -C $(PKG_BUILD_DIR) \
34 $(TARGET_CONFIGURE_OPTS) \
35 CFLAGS="$(TARGET_CFLAGS) -DHAVE_ISC_READER=1" \
36 BINDIR="/usr/sbin" MANDIR="/usr/man" \
37 AWK="awk" \
38 all
39 endef
40
41 define Package/dnsmasq/install
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dnsmasq $(1)/usr/sbin/
44 $(INSTALL_DIR) $(1)/etc/config
45 $(INSTALL_DATA) ./files/dhcp.conf $(1)/etc/config/dhcp
46 $(INSTALL_DIR) $(1)/etc/init.d
47 $(INSTALL_BIN) ./files/dnsmasq.init $(1)/etc/init.d/dnsmasq
48 endef
49
50 $(eval $(call BuildPackage,dnsmasq))