1
0

Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.9
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  11. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  12. PKG_HASH:=6e226b732e1cd739464ad6862bd1a1aba42d7982922da7a53519631d24975181
  13. PKG_CPE_ID:=cpe:/a:gnu:sed
  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. --enable-threads=posix \
  23. --disable-i18n \
  24. --without-selinux
  25. HOST_CONFIGURE_VARS += \
  26. ac_cv_search_setfilecon=no \
  27. ac_cv_header_selinux_context_h=no \
  28. ac_cv_header_selinux_selinux_h=no \
  29. define Host/Compile
  30. +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) SHELL="$(BASH)"
  31. endef
  32. define Host/Install
  33. $(INSTALL_BIN) $(HOST_BUILD_DIR)/sed/sed $(STAGING_DIR_HOST)/bin/
  34. endef
  35. define Host/Clean
  36. rm -f $(STAGING_DIR_HOST)/bin/sed
  37. endef
  38. $(eval $(call HostBuild))