aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/nettle
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/nettle
parent51de0c6ca714396b98df466698f870c3afd77e04 (diff)
[depends] add tarball hash checking
Diffstat (limited to 'tools/depends/target/nettle')
-rw-r--r--tools/depends/target/nettle/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/depends/target/nettle/Makefile b/tools/depends/target/nettle/Makefile
index 2061470d41..2c609c7231 100644
--- a/tools/depends/target/nettle/Makefile
+++ b/tools/depends/target/nettle/Makefile
@@ -1,11 +1,13 @@
include ../../Makefile.include
-DEPS= ../../Makefile.include Makefile 01-disable_testsuite.patch
+DEPS = ../../Makefile.include Makefile 01-disable_testsuite.patch ../../download-files.include
# lib name, version
LIBNAME=nettle
VERSION=3.7.3
SOURCE=$(LIBNAME)-$(VERSION)
ARCHIVE=$(SOURCE).tar.gz
+SHA512=9901eba305421adff6d551ac7f478dff3f68a339d444c776724ab0b977fe6be792b1d2950c8705acbe76bd924fd6d898a65eded546777884be3b436d0e052437
+include ../../download-files.include
ifeq ($(OS),osx)
ifeq ($(CPU),arm64)
@@ -21,10 +23,8 @@ LIBDYLIB=$(PLATFORM)/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 ../01-disable_testsuite.patch