Makefile 925 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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_MD5SUM:=7ffe1c7cdc3233e1e0c4b502df253974
  13. PKG_CAT:=bzcat
  14. export SED:=
  15. HOST_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/host-build.mk
  17. HOST_CONFIGURE_ARGS += \
  18. --disable-acl \
  19. --disable-nls \
  20. HOST_CONFIGURE_VARS += \
  21. ac_cv_search_setfilecon=no \
  22. ac_cv_header_selinux_context_h=no \
  23. ac_cv_header_selinux_selinux_h=no \
  24. define Host/Compile
  25. +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="$(HOST_STATIC_LINKING)"
  26. endef
  27. define Host/Install
  28. $(INSTALL_BIN) $(HOST_BUILD_DIR)/sed/sed $(STAGING_DIR_HOST)/bin/
  29. endef
  30. define Host/Clean
  31. rm -f $(STAGING_DIR_HOST)/bin/sed
  32. endef
  33. $(eval $(call HostBuild))