Makefile 985 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.7
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  11. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  12. PKG_HASH:=2885768cd0a29ff8d58a6280a270ff161f6a3deb5690b2be6c49f46d4c67bd6a
  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. --enable-threads=pth
  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))