Makefile 963 B

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