9ff2e66905d50c54a37e814a6097c7cb72973332
[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.2.2
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
14 PKG_HASH:=f048d1838da284c8bc9753e4506b85a1e0cc1ea8999d36f6995bcb9460cddbd7
15 PKG_CAT:=bzcat
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
29 HOST_CONFIGURE_VARS += \
30 ac_cv_search_setfilecon=no \
31 ac_cv_header_selinux_context_h=no \
32 ac_cv_header_selinux_selinux_h=no \
33
34 define Host/Compile
35 +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) SHELL="$(BASH)"
36 endef
37
38 define Host/Install
39 $(INSTALL_BIN) $(HOST_BUILD_DIR)/sed/sed $(STAGING_DIR_HOST)/bin/
40 endef
41
42 define Host/Clean
43 rm -f $(STAGING_DIR_HOST)/bin/sed
44 endef
45
46 $(eval $(call HostBuild))