Makefile 843 B

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