From d733bd626a47ed30e44c4aac6fc021eb20243fcc Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 22 Mar 2007 13:21:05 +0000 Subject: - download eventual mpfr patchfile to dl_dir. Closes #1283 --- package/mpfr/mpfr.mk | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'package/mpfr') diff --git a/package/mpfr/mpfr.mk b/package/mpfr/mpfr.mk index c30f7ebbc..f12fa9187 100644 --- a/package/mpfr/mpfr.mk +++ b/package/mpfr/mpfr.mk @@ -5,6 +5,7 @@ ############################################################# MPFR_VERSION:=2.2.1 MPFR_PATCH:=patches +MPFR_PATCH_FILE:=mpfr-$(MPFR_VERSION).patch MPFR_SOURCE:=mpfr-$(MPFR_VERSION).tar.bz2 MPFR_CAT:=$(BZCAT) MPFR_SITE:=http://www.mpfr.org/mpfr-current/ @@ -19,19 +20,30 @@ else MPFR_BE:=no endif +# No patch +ifeq ($(MPFR_PATCH),) $(DL_DIR)/$(MPFR_SOURCE): $(WGET) -P $(DL_DIR) $(MPFR_SITE)/$(MPFR_SOURCE) - libmpfr-source: $(DL_DIR)/$(MPFR_SOURCE) +endif +# need patch +ifneq ($(MPFR_PATCH),) +$(DL_DIR)/$(MPFR_SOURCE): + $(WGET) -P $(DL_DIR) $(MPFR_SITE)/$(MPFR_SOURCE) + +$(DL_DIR)/$(MPFR_PATCH_FILE): + $(WGET) -O $@ $(MPFR_SITE)/$(MPFR_PATCH) + +libmpfr-source: $(DL_DIR)/$(MPFR_SOURCE) $(DL_DIR)/$(MPFR_PATCH_FILE) +endif $(MPFR_DIR)/.unpacked: $(DL_DIR)/$(MPFR_SOURCE) $(MPFR_CAT) $(DL_DIR)/$(MPFR_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) - toolchain/patch-kernel.sh $(MPFR_DIR) package/mpfr/ \*.patch $(CONFIG_UPDATE) $(MPFR_DIR) ifneq ($(MPFR_PATCH),) - $(WGET) -P $(MPFR_DIR) $(MPFR_SITE)/$(MPFR_PATCH) - ( cd $(MPFR_DIR) ; patch -p1 < $(MPFR_PATCH) ; ) + ( cd $(MPFR_DIR) ; patch -p1 < $(MPFR_PATCH_FILE) ; ) endif touch $@ -- cgit v1.2.3