diff options
Diffstat (limited to 'package')
-rw-r--r-- | package/mpfr/mpfr.mk | 18 |
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 $@ |