| 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 | HOST_BUILD_PARALLEL:=1 |
| 19 | |
| 20 | include $(INCLUDE_DIR)/host-build.mk |
| 21 | |
| 22 | HOST_CONFIGURE_ARGS += \ |
| 23 | --disable-acl \ |
| 24 | --disable-nls \ |
| 25 | |
| 26 | HOST_CONFIGURE_VARS += \ |
| 27 | ac_cv_search_setfilecon=no \ |
| 28 | ac_cv_header_selinux_context_h=no \ |
| 29 | ac_cv_header_selinux_selinux_h=no \ |
| 30 | |
| 31 | define Host/Compile |
| 32 | +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="$(HOST_STATIC_LINKING)" |
| 33 | endef |
| 34 | |
| 35 | define Host/Install |
| 36 | $(INSTALL_BIN) $(HOST_BUILD_DIR)/sed/sed $(STAGING_DIR_HOST)/bin/ |
| 37 | endef |
| 38 | |
| 39 | define Host/Clean |
| 40 | rm -f $(STAGING_DIR_HOST)/bin/sed |
| 41 | endef |
| 42 | |
| 43 | $(eval $(call HostBuild)) |
| 44 | |