2006-06-27 03:44:04 +03:00
|
|
|
#
|
2010-10-05 16:51:54 +03:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-06-27 03:44:04 +03:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-03-06 05:53:29 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2006-09-24 23:49:31 +03:00
|
|
|
PKG_NAME:=sed
|
2010-10-05 16:51:54 +03:00
|
|
|
PKG_VERSION:=4.2.1
|
2006-09-24 23:49:31 +03:00
|
|
|
|
2010-10-05 16:51:54 +03:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2009-05-31 13:07:35 +03:00
|
|
|
PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
|
2010-10-05 16:51:54 +03:00
|
|
|
PKG_MD5SUM:=7d310fbd76e01a01115075c1fd3f455a
|
|
|
|
PKG_CAT:=bzcat
|
2007-08-07 03:04:25 +03:00
|
|
|
export SED:=
|
2005-07-20 17:58:27 +03:00
|
|
|
|
2012-09-15 17:17:31 +03:00
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2005-07-20 17:58:27 +03:00
|
|
|
|
2012-08-11 00:41:44 +03:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
|
|
|
--disable-acl \
|
|
|
|
--disable-nls \
|
|
|
|
|
|
|
|
HOST_CONFIGURE_VARS += \
|
|
|
|
ac_cv_search_setfilecon=no \
|
2012-08-11 01:38:09 +03:00
|
|
|
ac_cv_header_selinux_context_h=no \
|
|
|
|
ac_cv_header_selinux_selinux_h=no \
|
2012-08-11 00:41:44 +03:00
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Compile
|
2012-09-15 17:17:31 +03:00
|
|
|
$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="$(HOST_STATIC_LINKING)"
|
2006-10-11 01:29:46 +03:00
|
|
|
endef
|
2005-07-20 17:58:27 +03:00
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/sed/sed $(STAGING_DIR_HOST)/bin/
|
2007-08-07 03:04:25 +03:00
|
|
|
endef
|
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Clean
|
2007-08-07 03:04:25 +03:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/sed
|
2006-10-11 01:29:46 +03:00
|
|
|
endef
|
2005-07-20 17:58:27 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
$(eval $(call HostBuild))
|