procd: make mDNS TXT record parsing more solid
[openwrt/openwrt.git] / tools / sed / Makefile
1 #
2 # Copyright (C) 2006-2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=sed
10 PKG_VERSION:=4.8
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
14 PKG_HASH:=f79b0cfea71b37a8eeec8490db6c5f7ae7719c35587f21edb0617f370eeff633
15 PKG_CPE_ID:=cpe:/a:gnu:sed
16 export SED:=
17
18 HOST_BUILD_PARALLEL:=1
19
20 HOSTCC := $(HOSTCC_NOCACHE)
21 HOSTCXX := $(HOSTCXX_NOCACHE)
22
23 include $(INCLUDE_DIR)/host-build.mk
24
25 HOST_CONFIGURE_ARGS += \
26 --disable-acl \
27 --disable-nls \
28 --enable-threads=posix \
29 --disable-i18n \
30 --without-selinux
31
32 HOST_CONFIGURE_VARS += \
33 ac_cv_search_setfilecon=no \
34 ac_cv_header_selinux_context_h=no \
35 ac_cv_header_selinux_selinux_h=no \
36
37 define Host/Compile
38 +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) SHELL="$(BASH)"
39 endef
40
41 define Host/Install
42 $(INSTALL_BIN) $(HOST_BUILD_DIR)/sed/sed $(STAGING_DIR_HOST)/bin/
43 endef
44
45 define Host/Clean
46 rm -f $(STAGING_DIR_HOST)/bin/sed
47 endef
48
49 $(eval $(call HostBuild))