diff options
author | wsnipex <wsnipex@a1.net> | 2022-01-22 09:25:35 +0100 |
---|---|---|
committer | wsnipex <wsnipex@a1.net> | 2022-02-07 06:24:58 +0100 |
commit | c70f7b16e27347df41f4ca1dfeb144a290d4dd26 (patch) | |
tree | aa53286c9631a4020b829010e9b706fbd3d35558 /tools/depends/target/flatbuffers | |
parent | 51de0c6ca714396b98df466698f870c3afd77e04 (diff) |
[depends] add tarball hash checking
Diffstat (limited to 'tools/depends/target/flatbuffers')
-rw-r--r-- | tools/depends/target/flatbuffers/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tools/depends/target/flatbuffers/Makefile b/tools/depends/target/flatbuffers/Makefile index 4f99048e6d..cd65e66c7f 100644 --- a/tools/depends/target/flatbuffers/Makefile +++ b/tools/depends/target/flatbuffers/Makefile @@ -1,6 +1,6 @@ -include ../../Makefile.include include FLATBUFFERS-VERSION -DEPS=Makefile FLATBUFFERS-VERSION +DEPS = Makefile FLATBUFFERS-VERSION ../../download-files.include ifeq ($(PLATFORM),) # Building stand-alone @@ -13,6 +13,8 @@ ifeq ($(PLATFORM),) CMAKE := cmake CMAKE_OPTIONS := -DCMAKE_INSTALL_PREFIX=$(PREFIX) $(CMAKE_OPTIONS) BUILD_FLATC=ON + HASH_TOOL := sha512sum + HASH_TOOL_FLAGS = -c --status else # Building as part of depends DEPS += ../../Makefile.include @@ -31,18 +33,17 @@ CMAKE_OPTIONS := -DCMAKE_BUILD_TYPE=Release \ $(CMAKE_OPTIONS) BUILDDIR = $(PLATFORM)/build-cmake # 'build' conflicts with file BUILD on case-insensitive FS -all: .installed-$(PLATFORM) +include ../../download-files.include -$(TARBALLS_LOCATION)/$(ARCHIVE): - cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE) +all: .installed-$(PLATFORM) -$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS) +$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS) ifeq ($(PREFIX),) @echo @echo "ERROR: please set PREFIX to the kodi install path e.g. make PREFIX=/usr/local" @exit 1 endif - rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM) + rm -rf ./$(PLATFORM); mkdir -p $(PLATFORM) cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) mkdir -p $(BUILDDIR) cd $(BUILDDIR); $(CMAKE) $(CMAKE_OPTIONS) .. |