49cbc72e6e1db674e5046615bf7128ad4fde36ea
[openwrt/staging/stintel.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.9
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
14 PKG_HASH:=6e226b732e1cd739464ad6862bd1a1aba42d7982922da7a53519631d24975181
15 PKG_CPE_ID:=cpe:/a:gnu:sed
16
17 export SED:=
18
19 HOST_BUILD_PARALLEL:=1
20
21 HOSTCC := $(HOSTCC_NOCACHE)
22 HOSTCXX := $(HOSTCXX_NOCACHE)
23
24 include $(INCLUDE_DIR)/host-build.mk
25
26 HOST_CONFIGURE_ARGS += \
27 --disable-acl \
28 --disable-nls \
29 --enable-threads=posix \
30 --disable-i18n \
31 --without-selinux
32
33 HOST_CONFIGURE_VARS += \
34 ac_cv_search_setfilecon=no \
35 ac_cv_header_selinux_context_h=no \
36 ac_cv_header_selinux_selinux_h=no \
37
38 define Host/Compile
39 +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) SHELL="$(BASH)"
40 endef
41
42 define Host/Install
43 $(INSTALL_BIN) $(HOST_BUILD_DIR)/sed/sed $(STAGING_DIR_HOST)/bin/
44 endef
45
46 define Host/Clean
47 rm -f $(STAGING_DIR_HOST)/bin/sed
48 endef
49
50 $(eval $(call HostBuild))