fix tiff-4.3.0 build

This commit is contained in:
Thomas Bernard 2021-05-04 00:11:25 +02:00
parent 6ab99ee657
commit 56b3974622
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF

7
3rdparty/Makefile vendored
View File

@ -95,12 +95,17 @@ JPEGURL = https://www.ijg.org/files/$(JPEGARCH)
# http://www.simplesystems.org/libtiff/
# https://gitlab.com/libtiff/libtiff
LIBTIFFVER = $(LATESTLIBTIFFVER)
LATESTLIBTIFFVER = $(shell curl -s -S http://www.simplesystems.org/libtiff/ |grep -A1 Latest|tail -n1|sed 's/.*>v\([0-9.]*\).*/\1/')
LATESTLIBTIFFVER := $(shell curl -s -S http://www.simplesystems.org/libtiff/ |grep -A1 Latest|tail -n1|sed 's/.*>v\([0-9.]*\).*/\1/')
LIBTIFF = tiff-$(LIBTIFFVER)
LIBTIFFARCH = $(LIBTIFF).tar.gz
LIBTIFFURL = https://download.osgeo.org/libtiff/$(LIBTIFFARCH)
LIBTIFFURLALT = https://fossies.org/linux/misc/$(LIBTIFFARCH)
LIBTIFFVERMAJOR = $(shell echo $(LIBTIFFVER) | cut -d. -f1)
LIBTIFFVERMINOR = $(shell echo $(LIBTIFFVER) | cut -d. -f2)
ifeq ($(shell if [ $(LIBTIFFVERMAJOR) -lt 4 ] || [ \( $(LIBTIFFVERMAJOR) -eq 4 \) -a \( $(LIBTIFFVERMINOR) -lt 3 \) ] ; then echo true ; fi),true)
# this patch is needed up to version 4.2.0
LIBTIFFPATCHES = tiff-uint64_long_long.patch
endif
# additionnal variables for the generic rules to work :
TIFFARCH = $(LIBTIFFARCH)
TIFFSIG = $(TIFFARCH).sig