2008-08-27 22:13:32 +08:00
|
|
|
#
|
2010-04-25 03:54:53 +08:00
|
|
|
# Copyright (C) 2006 -2010 OpenWrt.org
|
2008-08-27 22:13:32 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=quilt
|
2010-04-25 03:54:53 +08:00
|
|
|
PKG_VERSION:=0.48
|
2008-08-27 22:13:32 +08:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/$(PKG_NAME)
|
2010-04-25 03:54:53 +08:00
|
|
|
PKG_MD5SUM:=f77adda60039ffa753f3c584a286f12b
|
2008-08-27 22:13:32 +08:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2011-08-01 01:59:35 +08:00
|
|
|
GETOPT:=$(shell which getopt)
|
|
|
|
|
2010-10-07 19:33:54 +08:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
|
|
|
--with-patch=$(PATCH) \
|
2011-08-01 01:59:35 +08:00
|
|
|
--with-find=$(FIND) \
|
|
|
|
--with-getopt=$(GETOPT)
|
2010-10-07 19:33:54 +08:00
|
|
|
|
2009-02-22 12:37:20 +08:00
|
|
|
define Host/Configure
|
2010-07-28 01:21:30 +08:00
|
|
|
cd $(HOST_BUILD_DIR) && autoconf
|
2009-02-22 12:37:20 +08:00
|
|
|
$(call Host/Configure/Default)
|
|
|
|
[ -f $(HOST_BUILD_DIR)/Makefile ]
|
2009-01-26 03:02:48 +08:00
|
|
|
endef
|
|
|
|
|
2009-02-22 12:37:20 +08:00
|
|
|
define Host/Compile
|
2009-08-26 15:55:31 +08:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" all lib/backup-files
|
2008-08-27 22:13:32 +08:00
|
|
|
endef
|
|
|
|
|
2009-02-22 12:37:20 +08:00
|
|
|
define Host/Install
|
2009-08-26 15:55:31 +08:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" install
|
2008-08-27 22:13:32 +08:00
|
|
|
endef
|
|
|
|
|
2009-02-22 12:37:20 +08:00
|
|
|
define Host/Clean
|
2008-08-27 22:13:32 +08:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/quilt
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|