Makefile 886 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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:=quilt
  9. PKG_VERSION:=0.48
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/$(PKG_NAME)
  12. PKG_MD5SUM:=f77adda60039ffa753f3c584a286f12b
  13. include $(INCLUDE_DIR)/host-build.mk
  14. HOST_CONFIGURE_ARGS += \
  15. --with-patch=$(PATCH) \
  16. --with-find=$(FIND)
  17. define Host/Configure
  18. cd $(HOST_BUILD_DIR) && autoconf
  19. $(call Host/Configure/Default)
  20. [ -f $(HOST_BUILD_DIR)/Makefile ]
  21. endef
  22. define Host/Compile
  23. $(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" all lib/backup-files
  24. endef
  25. define Host/Install
  26. $(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" install
  27. endef
  28. define Host/Clean
  29. rm -f $(STAGING_DIR_HOST)/bin/quilt
  30. endef
  31. $(eval $(call HostBuild))