Makefile 675 B

1234567891011121314151617181920212223242526272829303132
  1. #
  2. # Copyright (C) 2006 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.1.2
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/$(PKG_NAME)
  12. PKG_MD5SUM:=928f0e06422f414091917401f1a834d0
  13. PKG_CAT:=zcat
  14. export SED:=
  15. include $(INCLUDE_DIR)/host-build.mk
  16. define Build/Compile
  17. $(MAKE) -C $(PKG_BUILD_DIR) SHELL="$(BASH)"
  18. endef
  19. define Build/Install
  20. $(INSTALL_BIN) $(PKG_BUILD_DIR)/sed/sed $(STAGING_DIR_HOST)/bin/
  21. endef
  22. define Build/Clean
  23. rm -f $(STAGING_DIR_HOST)/bin/sed
  24. endef
  25. $(eval $(call HostBuild))