aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/gnutls
diff options
context:
space:
mode:
authorwsnipex <wsnipex@a1.net>2022-01-22 09:25:35 +0100
committerwsnipex <wsnipex@a1.net>2022-02-07 06:24:58 +0100
commitc70f7b16e27347df41f4ca1dfeb144a290d4dd26 (patch)
treeaa53286c9631a4020b829010e9b706fbd3d35558 /tools/depends/target/gnutls
parent51de0c6ca714396b98df466698f870c3afd77e04 (diff)
[depends] add tarball hash checking
Diffstat (limited to 'tools/depends/target/gnutls')
-rw-r--r--tools/depends/target/gnutls/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/depends/target/gnutls/Makefile b/tools/depends/target/gnutls/Makefile
index 3c0b389393..368535f0dd 100644
--- a/tools/depends/target/gnutls/Makefile
+++ b/tools/depends/target/gnutls/Makefile
@@ -1,11 +1,13 @@
include ../../Makefile.include
-DEPS= ../../Makefile.include Makefile size-max.patch add-dl-as-private-lib.patch 03-support-correct-cisdigit.patch
+DEPS = ../../Makefile.include Makefile size-max.patch add-dl-as-private-lib.patch 03-support-correct-cisdigit.patch ../../download-files.include
# lib name, version
LIBNAME=gnutls
VERSION=3.6.16
SOURCE=$(LIBNAME)-$(VERSION)
ARCHIVE=$(SOURCE).tar.xz
+SHA512=72c78d7fcb024393c1d15f2a1856608ae4460ba43cc5bbbb4c29b80508cae6cb822df4638029de2363437d110187e0a3cc19a7288c3b2f44b2f648399a028438
+include ../../download-files.include
ifeq ($(OS),osx)
ifeq ($(CPU),arm64)
@@ -22,10 +24,8 @@ LIBDYLIB=$(PLATFORM)/lib/.libs/lib$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(TARBALLS_LOCATION)/$(ARCHIVE):
- cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
+$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../size-max.patch