2008-08-27 17:13:32 +03:00
|
|
|
#
|
2010-04-24 22:54:53 +03:00
|
|
|
# Copyright (C) 2006 -2010 OpenWrt.org
|
2008-08-27 17:13:32 +03: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-24 22:54:53 +03:00
|
|
|
PKG_VERSION:=0.48
|
2008-08-27 17:13:32 +03:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/$(PKG_NAME)
|
2010-04-24 22:54:53 +03:00
|
|
|
PKG_MD5SUM:=f77adda60039ffa753f3c584a286f12b
|
2008-08-27 17:13:32 +03:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2011-07-31 20:59:35 +03:00
|
|
|
GETOPT:=$(shell which getopt)
|
|
|
|
|
2010-10-07 14:33:54 +03:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
|
|
|
--with-patch=$(PATCH) \
|
2011-07-31 20:59:35 +03:00
|
|
|
--with-find=$(FIND) \
|
|
|
|
--with-getopt=$(GETOPT)
|
2010-10-07 14:33:54 +03:00
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Configure
|
2010-07-27 20:21:30 +03:00
|
|
|
cd $(HOST_BUILD_DIR) && autoconf
|
2009-02-22 06:37:20 +02:00
|
|
|
$(call Host/Configure/Default)
|
|
|
|
[ -f $(HOST_BUILD_DIR)/Makefile ]
|
2009-01-25 21:02:48 +02:00
|
|
|
endef
|
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Compile
|
2009-08-26 10:55:31 +03:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" all lib/backup-files
|
2008-08-27 17:13:32 +03:00
|
|
|
endef
|
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Install
|
2009-08-26 10:55:31 +03:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" install
|
2008-08-27 17:13:32 +03:00
|
|
|
endef
|
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Clean
|
2008-08-27 17:13:32 +03:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/quilt
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|