mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-10 03:47:44 +00:00
- 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_VERSION:=2.2.1
|
||||||
MPFR_PATCH:=patches
|
MPFR_PATCH:=patches
|
||||||
|
MPFR_PATCH_FILE:=mpfr-$(MPFR_VERSION).patch
|
||||||
MPFR_SOURCE:=mpfr-$(MPFR_VERSION).tar.bz2
|
MPFR_SOURCE:=mpfr-$(MPFR_VERSION).tar.bz2
|
||||||
MPFR_CAT:=$(BZCAT)
|
MPFR_CAT:=$(BZCAT)
|
||||||
MPFR_SITE:=http://www.mpfr.org/mpfr-current/
|
MPFR_SITE:=http://www.mpfr.org/mpfr-current/
|
||||||
@ -19,19 +20,30 @@ else
|
|||||||
MPFR_BE:=no
|
MPFR_BE:=no
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# No patch
|
||||||
|
ifeq ($(MPFR_PATCH),)
|
||||||
$(DL_DIR)/$(MPFR_SOURCE):
|
$(DL_DIR)/$(MPFR_SOURCE):
|
||||||
$(WGET) -P $(DL_DIR) $(MPFR_SITE)/$(MPFR_SOURCE)
|
$(WGET) -P $(DL_DIR) $(MPFR_SITE)/$(MPFR_SOURCE)
|
||||||
|
|
||||||
|
|
||||||
libmpfr-source: $(DL_DIR)/$(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_DIR)/.unpacked: $(DL_DIR)/$(MPFR_SOURCE)
|
||||||
$(MPFR_CAT) $(DL_DIR)/$(MPFR_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
|
$(MPFR_CAT) $(DL_DIR)/$(MPFR_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
toolchain/patch-kernel.sh $(MPFR_DIR) package/mpfr/ \*.patch
|
toolchain/patch-kernel.sh $(MPFR_DIR) package/mpfr/ \*.patch
|
||||||
$(CONFIG_UPDATE) $(MPFR_DIR)
|
$(CONFIG_UPDATE) $(MPFR_DIR)
|
||||||
ifneq ($(MPFR_PATCH),)
|
ifneq ($(MPFR_PATCH),)
|
||||||
$(WGET) -P $(MPFR_DIR) $(MPFR_SITE)/$(MPFR_PATCH)
|
( cd $(MPFR_DIR) ; patch -p1 < $(MPFR_PATCH_FILE) ; )
|
||||||
( cd $(MPFR_DIR) ; patch -p1 < $(MPFR_PATCH) ; )
|
|
||||||
endif
|
endif
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user