1
0

Makefile 981 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. PKG_NAME:=sed
  9. PKG_VERSION:=4.2.2
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  12. PKG_HASH:=f048d1838da284c8bc9753e4506b85a1e0cc1ea8999d36f6995bcb9460cddbd7
  13. PKG_CAT:=bzcat
  14. export SED:=
  15. HOST_BUILD_PARALLEL:=1
  16. HOSTCC := $(HOSTCC_NOCACHE)
  17. HOSTCXX := $(HOSTCXX_NOCACHE)
  18. include $(INCLUDE_DIR)/host-build.mk
  19. HOST_CONFIGURE_ARGS += \
  20. --disable-acl \
  21. --disable-nls \
  22. HOST_CONFIGURE_VARS += \
  23. ac_cv_search_setfilecon=no \
  24. ac_cv_header_selinux_context_h=no \
  25. ac_cv_header_selinux_selinux_h=no \
  26. define Host/Compile
  27. +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) SHELL="$(BASH)"
  28. endef
  29. define Host/Install
  30. $(INSTALL_BIN) $(HOST_BUILD_DIR)/sed/sed $(STAGING_DIR_HOST)/bin/
  31. endef
  32. define Host/Clean
  33. rm -f $(STAGING_DIR_HOST)/bin/sed
  34. endef
  35. $(eval $(call HostBuild))