Skip to content

Commit 8458fdd

Browse files
committed
Update internal LibTIFF dependency to 4.7.0
CMake support was introduced in LibTIFF 4.0.5, and the issue worked around in c56ab7a was fixed in 4.0.10, which is now the minimum version required by the CBFlib CMake build.
1 parent 426f484 commit 8458fdd

File tree

7 files changed

+20
-24
lines changed

7 files changed

+20
-24
lines changed

CMakeLists.txt

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ fetchcontent_declare(pcre2
465465
URL_HASH MD5=88fe01e3f2ec144912ebecf7ef5cd595)
466466

467467
fetchcontent_declare(tiff
468-
URL "http://downloads.sf.net/cbflib/tiff-4.0.6_rev_3Nov16.tar.gz"
469-
URL_HASH MD5=594d1811ce715f7d5ec586bf5e0c4732)
468+
URL "https://download.osgeo.org/libtiff/tiff-4.7.0.tar.gz"
469+
URL_HASH MD5=3a0fa4a270a4a192b08913f88d0cfbdd)
470470

471471

472472
#
@@ -630,26 +630,22 @@ set(CBF_WITH_LIBTIFF ON CACHE BOOL
630630
mark_as_advanced(CBF_WITH_LIBTIFF)
631631

632632
if(CBF_WITH_LIBTIFF)
633-
# The first LibTIFF at https://gitlab.com/libtiff/libtiff with
633+
# The first LibTIFF at https://download.osgeo.org/libtiff with
634634
# native CMake support seems to be 4.0.5. The first version that
635635
# builds on current MSYS2 is 4.0.9.
636636
#
637637
# 4.0.3-rev-29Sep13 appears to have CMakeLists.txt patched in but
638638
# fails on MSYS2: multiple definition of ua_wcsicmp.
639+
#
640+
# 4.0.6_rev_3Nov16 fails on MSYS2: _FILE_OFFSET_BITS not defined
641+
#
642+
# 4.0.8 fails on MSYS2: _FILE_OFFSET_BITS
639643
set(tiff-contrib OFF CACHE INTERNAL "Build TIFF contrib")
640644
set(tiff-docs OFF CACHE INTERNAL "Build TIFF documentation")
641645
set(tiff-tests OFF CACHE INTERNAL "Build TIFF tests")
642646
set(tiff-tools OFF CACHE INTERNAL "Build TIFF tools")
643647
fetchcontent_makeavailable(tiff)
644648

645-
646-
# Always use tiffconf.h and tiffio.h from ${tiff_BUILD_DIR}/libtiff
647-
# and ${tiff_SOURCE_DIR}/libtiff, respectively, rather than
648-
# system-supplied headers.
649-
target_include_directories(tiff PUBLIC
650-
"$<BUILD_INTERFACE:${tiff_BINARY_DIR}/libtiff>"
651-
"$<BUILD_INTERFACE:${tiff_SOURCE_DIR}/libtiff>")
652-
653649
else()
654650
# find_package(TIFF) appears to miss the dependencies (Lerc, jbig,
655651
# etc) for a static LibTIFF. pkg_check_modules(... IMPORTED_TARGET
@@ -661,7 +657,7 @@ else()
661657
# cmake_pkg_config(), because e.g. Debian does not ship CMake config
662658
# files in their dev packages.
663659
find_package(PkgConfig REQUIRED)
664-
pkg_check_modules(tiff REQUIRED IMPORTED_TARGET libtiff-4)
660+
pkg_check_modules(tiff REQUIRED IMPORTED_TARGET libtiff-4>=4.0.10)
665661
add_library(tiff ALIAS PkgConfig::tiff)
666662
endif()
667663

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ endif
337337
#
338338
# Definition to get a version of tifflib to support tiff2cbf
339339
#
340-
TIFF ?= tiff-4.0.6_rev_3Nov16
340+
TIFF ?= tiff-4.7.0
341341
TIFF_PREFIX ?= $(PWD)
342342
TIFF_INSTALL = $(TIFF)_INSTALL
343343

@@ -782,7 +782,7 @@ PY3CIFRWURL = http://downloads.sf.net/cbflib/$(PY3CIFRW).tar.gz
782782
PY3PLYURL = http://downloads.sf.net/cbflib/$(PY3PLY).tar.gz
783783
endif
784784
REGEX_URL ?= https://github.com/PCRE2Project/pcre2/releases/download/$(REGEX)/$(REGEX).tar.gz
785-
TIFF_URL ?= http://downloads.sf.net/cbflib/$(TIFF).tar.gz
785+
TIFF_URL ?= https://download.osgeo.org/libtiff/$(TIFF).tar.gz
786786
HDF5_URL ?= https://github.com/HDFGroup/hdf5/releases/download/hdf5_1.14.6/$(HDF5).tar.gz
787787
ifneq ($(CBFLIB_DONT_USE_LOCAL_NUWEB),yes)
788788
NUWEB_URL ?= http://downloads.sf.net/cbflib/$(NUWEB_DEP).tar.gz

Makefile_LINUX

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ endif
337337
#
338338
# Definition to get a version of tifflib to support tiff2cbf
339339
#
340-
TIFF ?= tiff-4.0.6_rev_3Nov16
340+
TIFF ?= tiff-4.7.0
341341
TIFF_PREFIX ?= $(PWD)
342342
TIFF_INSTALL = $(TIFF)_INSTALL
343343

@@ -778,7 +778,7 @@ PY3CIFRWURL = http://downloads.sf.net/cbflib/$(PY3CIFRW).tar.gz
778778
PY3PLYURL = http://downloads.sf.net/cbflib/$(PY3PLY).tar.gz
779779
endif
780780
REGEX_URL ?= https://github.com/PCRE2Project/pcre2/releases/download/$(REGEX)/$(REGEX).tar.gz
781-
TIFF_URL ?= http://downloads.sf.net/cbflib/$(TIFF).tar.gz
781+
TIFF_URL ?= https://download.osgeo.org/libtiff/$(TIFF).tar.gz
782782
HDF5_URL ?= https://github.com/HDFGroup/hdf5/releases/download/hdf5_1.14.6/$(HDF5).tar.gz
783783
ifneq ($(CBFLIB_DONT_USE_LOCAL_NUWEB),yes)
784784
NUWEB_URL ?= http://downloads.sf.net/cbflib/$(NUWEB_DEP).tar.gz

Makefile_MINGW

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ endif
337337
#
338338
# Definition to get a version of tifflib to support tiff2cbf
339339
#
340-
TIFF ?= tiff-4.0.6_rev_3Nov16
340+
TIFF ?= tiff-4.7.0
341341
TIFF_PREFIX ?= $(PWD)
342342
TIFF_INSTALL = $(TIFF)_INSTALL
343343

@@ -792,7 +792,7 @@ PY3CIFRWURL = http://downloads.sf.net/cbflib/$(PY3CIFRW).tar.gz
792792
PY3PLYURL = http://downloads.sf.net/cbflib/$(PY3PLY).tar.gz
793793
endif
794794
REGEX_URL ?= https://github.com/PCRE2Project/pcre2/releases/download/$(REGEX)/$(REGEX).tar.gz
795-
TIFF_URL ?= http://downloads.sf.net/cbflib/$(TIFF).tar.gz
795+
TIFF_URL ?= https://download.osgeo.org/libtiff/$(TIFF).tar.gz
796796
HDF5_URL ?= https://github.com/HDFGroup/hdf5/releases/download/hdf5_1.14.6/$(HDF5).tar.gz
797797
ifneq ($(CBFLIB_DONT_USE_LOCAL_NUWEB),yes)
798798
NUWEB_URL ?= http://downloads.sf.net/cbflib/$(NUWEB_DEP).tar.gz

Makefile_MSYS2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ endif
336336
#
337337
# Definition to get a version of tifflib to support tiff2cbf
338338
#
339-
TIFF ?= tiff-4.0.6_rev_3Nov16
339+
TIFF ?= tiff-4.7.0
340340
TIFF_PREFIX ?= $(PWD)
341341
TIFF_INSTALL = $(TIFF)_INSTALL
342342

@@ -777,7 +777,7 @@ PY3CIFRWURL = http://downloads.sf.net/cbflib/$(PY3CIFRW).tar.gz
777777
PY3PLYURL = http://downloads.sf.net/cbflib/$(PY3PLY).tar.gz
778778
endif
779779
REGEX_URL ?= https://github.com/PCRE2Project/pcre2/releases/download/$(REGEX)/$(REGEX).tar.gz
780-
TIFF_URL ?= http://downloads.sf.net/cbflib/$(TIFF).tar.gz
780+
TIFF_URL ?= https://download.osgeo.org/libtiff/$(TIFF).tar.gz
781781
HDF5_URL ?= https://github.com/HDFGroup/hdf5/releases/download/hdf5_1.14.6/$(HDF5).tar.gz
782782
ifneq ($(CBFLIB_DONT_USE_LOCAL_NUWEB),yes)
783783
NUWEB_URL ?= http://downloads.sf.net/cbflib/$(NUWEB_DEP).tar.gz

Makefile_OSX

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ endif
337337
#
338338
# Definition to get a version of tifflib to support tiff2cbf
339339
#
340-
TIFF ?= tiff-4.0.6_rev_3Nov16
340+
TIFF ?= tiff-4.7.0
341341
TIFF_PREFIX ?= $(PWD)
342342
TIFF_INSTALL = $(TIFF)_INSTALL
343343

@@ -776,7 +776,7 @@ PY3CIFRWURL = http://downloads.sf.net/cbflib/$(PY3CIFRW).tar.gz
776776
PY3PLYURL = http://downloads.sf.net/cbflib/$(PY3PLY).tar.gz
777777
endif
778778
REGEX_URL ?= https://github.com/PCRE2Project/pcre2/releases/download/$(REGEX)/$(REGEX).tar.gz
779-
TIFF_URL ?= http://downloads.sf.net/cbflib/$(TIFF).tar.gz
779+
TIFF_URL ?= https://download.osgeo.org/libtiff/$(TIFF).tar.gz
780780
HDF5_URL ?= https://github.com/HDFGroup/hdf5/releases/download/hdf5_1.14.6/$(HDF5).tar.gz
781781
ifneq ($(CBFLIB_DONT_USE_LOCAL_NUWEB),yes)
782782
NUWEB_URL ?= http://downloads.sf.net/cbflib/$(NUWEB_DEP).tar.gz

m4/Makefile.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ endif
344344
#
345345
# Definition to get a version of tifflib to support tiff2cbf
346346
#
347-
TIFF ?= tiff-4.0.6_rev_3Nov16
347+
TIFF ?= tiff-4.7.0
348348
TIFF_PREFIX ?= $(PWD)
349349
TIFF_INSTALL = $(TIFF)_INSTALL
350350

@@ -1151,7 +1151,7 @@ PY3CIFRWURL = http://downloads.sf.net/cbflib/$(PY3CIFRW).tar.gz
11511151
PY3PLYURL = http://downloads.sf.net/cbflib/$(PY3PLY).tar.gz
11521152
endif
11531153
REGEX_URL ?= https://github.com/PCRE2Project/pcre2/releases/download/$(REGEX)/$(REGEX).tar.gz
1154-
TIFF_URL ?= http://downloads.sf.net/cbflib/$(TIFF).tar.gz
1154+
TIFF_URL ?= https://download.osgeo.org/libtiff/$(TIFF).tar.gz
11551155
HDF5_URL ?= https://github.com/HDFGroup/hdf5/releases/download/hdf5_1.14.6/$(HDF5).tar.gz
11561156
ifneq ($(CBFLIB_DONT_USE_LOCAL_NUWEB),yes)
11571157
NUWEB_URL ?= http://downloads.sf.net/cbflib/$(NUWEB_DEP).tar.gz

0 commit comments

Comments
 (0)