Makefile 944 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. GETOPT:=$(shell which getopt)
  15. HOST_CONFIGURE_ARGS += \
  16. --with-patch=$(PATCH) \
  17. --with-find=$(FIND) \
  18. --with-getopt=$(GETOPT)
  19. define Host/Configure
  20. cd $(HOST_BUILD_DIR) && autoconf
  21. $(call Host/Configure/Default)
  22. [ -f $(HOST_BUILD_DIR)/Makefile ]
  23. endef
  24. define Host/Compile
  25. $(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" all lib/backup-files
  26. endef
  27. define Host/Install
  28. $(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" install
  29. endef
  30. define Host/Clean
  31. rm -f $(STAGING_DIR_HOST)/bin/quilt
  32. endef
  33. $(eval $(call HostBuild))