2006-06-27 00:44:04 +00:00
|
|
|
#
|
2013-02-28 00:52:28 +00:00
|
|
|
# Copyright (C) 2006-2013 OpenWrt.org
|
2006-06-27 00:44:04 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-03-06 03:53:29 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2006-09-24 20:49:31 +00:00
|
|
|
PKG_NAME:=sed
|
2020-02-03 13:09:49 +00:00
|
|
|
PKG_VERSION:=4.8
|
2006-09-24 20:49:31 +00:00
|
|
|
|
2017-03-15 07:52:29 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2009-05-31 10:07:35 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
|
2020-02-03 13:09:49 +00:00
|
|
|
PKG_HASH:=f79b0cfea71b37a8eeec8490db6c5f7ae7719c35587f21edb0617f370eeff633
|
2007-08-07 00:04:25 +00:00
|
|
|
export SED:=
|
2005-07-20 14:58:27 +00:00
|
|
|
|
2012-09-15 14:17:31 +00:00
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
|
2017-01-07 17:25:33 +00:00
|
|
|
HOSTCC := $(HOSTCC_NOCACHE)
|
|
|
|
HOSTCXX := $(HOSTCXX_NOCACHE)
|
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2005-07-20 14:58:27 +00:00
|
|
|
|
2012-08-10 21:41:44 +00:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
|
|
|
--disable-acl \
|
|
|
|
--disable-nls \
|
2020-02-03 13:09:49 +00:00
|
|
|
--enable-threads=posix \
|
|
|
|
--disable-i18n \
|
|
|
|
--without-selinux
|
2012-08-10 21:41:44 +00:00
|
|
|
|
|
|
|
HOST_CONFIGURE_VARS += \
|
|
|
|
ac_cv_search_setfilecon=no \
|
2012-08-10 22:38:09 +00:00
|
|
|
ac_cv_header_selinux_context_h=no \
|
|
|
|
ac_cv_header_selinux_selinux_h=no \
|
2012-08-10 21:41:44 +00:00
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Compile
|
2015-02-06 00:00:43 +00:00
|
|
|
+$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) SHELL="$(BASH)"
|
2006-10-10 22:29:46 +00:00
|
|
|
endef
|
2005-07-20 14:58:27 +00:00
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/sed/sed $(STAGING_DIR_HOST)/bin/
|
2007-08-07 00:04:25 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Clean
|
2007-08-07 00:04:25 +00:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/sed
|
2006-10-10 22:29:46 +00:00
|
|
|
endef
|
2005-07-20 14:58:27 +00:00
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
$(eval $(call HostBuild))
|