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