- download eventual mpfr patchfile to dl_dir. Closes #1283
This commit is contained in:
parent
44d3e98efa
commit
d733bd626a
@ -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 $@
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user