ath79: set lzma-loader variables to null by default
[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 export SED:=
16
17 HOST_BUILD_PARALLEL:=1
18
19 HOSTCC := $(HOSTCC_NOCACHE)
20 HOSTCXX := $(HOSTCXX_NOCACHE)
21
22 include $(INCLUDE_DIR)/host-build.mk
23
24 HOST_CONFIGURE_ARGS += \
25 --disable-acl \
26 --disable-nls \
27 --enable-threads=posix \
28 --disable-i18n \
29 --without-selinux
30
31 HOST_CONFIGURE_VARS += \
32 ac_cv_search_setfilecon=no \
33 ac_cv_header_selinux_context_h=no \
34 ac_cv_header_selinux_selinux_h=no \
35
36 define Host/Compile
37 +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) SHELL="$(BASH)"
38 endef
39
40 define Host/Install
41 $(INSTALL_BIN) $(HOST_BUILD_DIR)/sed/sed $(STAGING_DIR_HOST)/bin/
42 endef
43
44 define Host/Clean
45 rm -f $(STAGING_DIR_HOST)/bin/sed
46 endef
47
48 $(eval $(call HostBuild))