summaryrefslogtreecommitdiff
path: root/package/mpfr
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-03-22 13:21:05 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-03-22 13:21:05 +0000
commitd733bd626a47ed30e44c4aac6fc021eb20243fcc (patch)
tree80dd7d770b61fc828daa47887ecbd6cd3510afa8 /package/mpfr
parent44d3e98efa6e5909200237a41e9220592feaf73b (diff)
- download eventual mpfr patchfile to dl_dir. Closes #1283
Diffstat (limited to 'package/mpfr')
-rw-r--r--package/mpfr/mpfr.mk18
1 files changed, 15 insertions, 3 deletions
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 $@