210feceb715f60d2b4b464ea39332dcc4ab06d8c
[openwrt.git] / tools / sed / Makefile
1
2 # Copyright (C) 2006-2010 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.1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
14 PKG_MD5SUM:=7d310fbd76e01a01115075c1fd3f455a
15 PKG_CAT:=bzcat
16 export SED:=
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 HOST_CONFIGURE_ARGS += \
21         --disable-acl \
22         --disable-nls \
23
24 HOST_CONFIGURE_VARS += \
25         ac_cv_search_setfilecon=no \
26         ac_cv_header_selinux_context_h=no \
27         ac_cv_header_selinux_selinux_h=no \
28
29 define Host/Compile
30         $(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="-static"
31 endef
32
33 define Host/Install
34         $(INSTALL_BIN) $(HOST_BUILD_DIR)/sed/sed $(STAGING_DIR_HOST)/bin/
35 endef
36
37 define Host/Clean
38         rm -f $(STAGING_DIR_HOST)/bin/sed
39 endef
40
41 $(eval $(call HostBuild))