aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorwsnipex <wsnipex@a1.net>2020-04-10 09:40:37 +0200
committerLukas Rusak <lorusak@gmail.com>2020-04-15 17:22:01 -0700
commit856221fdc533164607712b5a14072b2db9dbae00 (patch)
treeeff4993cb9c85e9f5d0499a1796f2a8804bf069c /tools
parent2436179acea74da95390bee22830b9d9827646b7 (diff)
libudfread: add download target
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/target/libudfread/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/tools/depends/target/libudfread/Makefile b/tools/depends/target/libudfread/Makefile
index 1e2c67b712..11ebf831db 100644
--- a/tools/depends/target/libudfread/Makefile
+++ b/tools/depends/target/libudfread/Makefile
@@ -1,6 +1,16 @@
-include ../../Makefile.include
+-include ../../Makefile.include
include UDFREAD-VERSION
-DEPS = ../../Makefile.include Makefile UDFREAD-VERSION
+DEPS = Makefile UDFREAD-VERSION
+
+ifeq ($(CROSS_COMPILING), yes)
+ DEPS += ../../Makefile.include
+else
+ ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
+ TARBALLS_LOCATION ?= $(ROOT_DIR)
+ BASE_URL ?= http://mirrors.kodi.tv/build-deps/sources
+ RETRIEVE_TOOL := curl -Ls --retry 10 --retry-delay 3 -o $(ARCHIVE)
+ ARCHIVE_TOOL := tar --strip-components=1 -xf
+endif
# configuration settings
CONFIGURE = ./configure --prefix=$(PREFIX) --disable-shared --enable-static
@@ -8,6 +18,7 @@ CONFIGURE = ./configure --prefix=$(PREFIX) --disable-shared --enable-static
LIBDYLIB=$(PLATFORM)/lib/lib$(LIBNAME).a
all: .installed-$(PLATFORM)
+download: $(TARBALLS_LOCATION)/$(ARCHIVE)
$(TARBALLS_LOCATION)/$(ARCHIVE):
cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)