Makefile 664 B

1234567891011121314151617181920212223242526272829303132
  1. #
  2. # Copyright (C) 2006-2010 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.1
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  12. PKG_MD5SUM:=7d310fbd76e01a01115075c1fd3f455a
  13. PKG_CAT:=bzcat
  14. export SED:=
  15. include $(INCLUDE_DIR)/host-build.mk
  16. define Host/Compile
  17. $(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)"
  18. endef
  19. define Host/Install
  20. $(INSTALL_BIN) $(HOST_BUILD_DIR)/sed/sed $(STAGING_DIR_HOST)/bin/
  21. endef
  22. define Host/Clean
  23. rm -f $(STAGING_DIR_HOST)/bin/sed
  24. endef
  25. $(eval $(call HostBuild))