diff --git a/ports/libgeotiff/CONTROL b/ports/libgeotiff/CONTROL index c91671eddd4401..c51eb962e8d54a 100644 --- a/ports/libgeotiff/CONTROL +++ b/ports/libgeotiff/CONTROL @@ -1,5 +1,6 @@ Source: libgeotiff Version: 1.6.0 +Port-Version: 1 Homepage: https://github.com/OSGeo/libgeotiff Description: Libgeotiff is an open source library normally hosted on top of libtiff for reading, and writing GeoTIFF information tags. Build-Depends: tiff, proj4, zlib, libjpeg-turbo diff --git a/ports/libgeotiff/cmakelists.patch b/ports/libgeotiff/cmakelists.patch index 64c09bf66f6bee..169ca0bc8dc930 100644 --- a/ports/libgeotiff/cmakelists.patch +++ b/ports/libgeotiff/cmakelists.patch @@ -75,7 +75,7 @@ index 47a2b00..3809ba3 100644 set (PROJECT_ROOT_DIR "..") endif () +else() -+ set (INSTALL_CMAKE_DIR "share/${PROJECT_NAME}") ++ set (INSTALL_CMAKE_DIR "share/${PROJECT_NAME_LOWER}") + set (PROJECT_ROOT_DIR "../..") +endif() diff --git a/ports/libgeotiff/fix-config-version.patch b/ports/libgeotiff/fix-config-version.patch new file mode 100644 index 00000000000000..173f483d176e64 --- /dev/null +++ b/ports/libgeotiff/fix-config-version.patch @@ -0,0 +1,21 @@ +diff --git a/libgeotiff/cmake/project-config-version.cmake.in b/libgeotiff/cmake/project-config-version.cmake.in +index d695aa2..efe32ba 100644 +--- a/libgeotiff/cmake/project-config-version.cmake.in ++++ b/libgeotiff/cmake/project-config-version.cmake.in +@@ -5,14 +5,14 @@ set (PACKAGE_VERSION_MAJOR "@PROJECT_VERSION_MAJOR@") + set (PACKAGE_VERSION_MINOR "@PROJECT_VERSION_MINOR@") + set (PACKAGE_VERSION_PATCH "@PROJECT_VERSION_PATCH@") + +-if (NOT PACKAGE_FIND_NAME STREQUAL "@PROJECT_NAME@") ++if (NOT PACKAGE_FIND_NAME STREQUAL "@PROJECT_NAME_LOWER@") + # Check package name (in particular, because of the way cmake finds + # package config files, the capitalization could easily be "wrong"). + # This is necessary to ensure that the automatically generated + # variables, e.g., _FOUND, are consistently spelled. Make + # this a WARNING, because this is a user error that needs to be fixed. + message (WARNING +- "Mismatched package names: use find_package(@PROJECT_NAME@ ...) instead" ++ "Mismatched package names: use find_package(@PROJECT_NAME_LOWER@ ...) instead" + " of find_package(${PACKAGE_FIND_NAME} ...)") + set (PACKAGE_VERSION_UNSUITABLE TRUE) + elseif (NOT (APPLE OR CMAKE_SIZEOF_VOID_P EQUAL @CMAKE_SIZEOF_VOID_P@)) diff --git a/ports/libgeotiff/portfile.cmake b/ports/libgeotiff/portfile.cmake index b9eb519e3bcad4..952ce8fe928cce 100644 --- a/ports/libgeotiff/portfile.cmake +++ b/ports/libgeotiff/portfile.cmake @@ -9,6 +9,7 @@ vcpkg_from_github( geotiff-config.patch fix-proj4.patch fix-staticbuild.patch + fix-config-version.patch ) set(SOURCE_PATH ${SOURCE_PATH}/libgeotiff) @@ -32,10 +33,10 @@ vcpkg_install_cmake() vcpkg_copy_tools(TOOL_NAMES applygeo geotifcp listgeo makegeo AUTO_CLEAN) vcpkg_copy_pdbs() -vcpkg_fixup_cmake_targets(CONFIG_PATH share/GeoTIFF TARGET_PATH share/GeoTIFF) +vcpkg_fixup_cmake_targets(CONFIG_PATH share/geotiff TARGET_PATH share/geotiff) if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") - vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/share/GeoTIFF/geotiff-config.cmake "if (GeoTIFF_USE_STATIC_LIBS)" "if (1)") + vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/share/geotiff/geotiff-config.cmake "if (GeoTIFF_USE_STATIC_LIBS)" "if (1)") file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin ${CURRENT_PACKAGES_DIR}/bin) endif() diff --git a/ports/liblas/CONTROL b/ports/liblas/CONTROL index f6ca886cf00372..91735159fc6e17 100644 --- a/ports/liblas/CONTROL +++ b/ports/liblas/CONTROL @@ -1,6 +1,6 @@ Source: liblas Version: 1.8.1 -Port-Version: 5 +Port-Version: 6 Build-Depends: boost, boost-thread, boost-system, boost-iostreams, boost-filesystem, boost-detail, libgeotiff Description: A C/C++ library for reading and writing the very common LAS LiDAR format. diff --git a/ports/liblas/fix-geotiff.patch b/ports/liblas/fix-geotiff.patch index e812c3d91f44f1..360aec7ef44a99 100644 --- a/ports/liblas/fix-geotiff.patch +++ b/ports/liblas/fix-geotiff.patch @@ -7,7 +7,7 @@ index d246a88..d0bba6f 100644 set(WITH_GEOTIFF TRUE CACHE BOOL "Choose if GeoTIFF support should be built") -find_package (GeoTIFF 1.3.0 ) -+find_package (GeoTIFF CONFIG 1.3.0 ) ++find_package (geotiff CONFIG REQUIRED) if(GEOTIFF_FOUND) set(WITH_GEOTIFF TRUE) # Confirm required API is available diff --git a/ports/pdal/CONTROL b/ports/pdal/CONTROL index 9098db285dd4e0..99643803d3173b 100644 --- a/ports/pdal/CONTROL +++ b/ports/pdal/CONTROL @@ -1,5 +1,5 @@ Source: pdal Version: 1.7.1 -Port-Version: 10 +Port-Version: 11 Description: PDAL - Point Data Abstraction Library is a library for manipulating point cloud data. Build-Depends: gdal, geos, jsoncpp, libgeotiff, laszip, boost-system, boost-filesystem diff --git a/ports/pdal/fix-dependency.patch b/ports/pdal/fix-dependency.patch index 352eb1d43f1b17..ea2bcf8f844bd9 100644 --- a/ports/pdal/fix-dependency.patch +++ b/ports/pdal/fix-dependency.patch @@ -53,7 +53,7 @@ index a03ef14..9d073e6 100644 endforeach(_dir) +include(CMakeFindDependencyMacro) -+find_dependency(GeoTIFF) ++find_dependency(geotiff) +find_dependency(CURL) +find_dependency(Boost COMPONENTS system filesystem) +find_dependency(geos CONFIG) diff --git a/ports/pdal/geotiff.patch b/ports/pdal/geotiff.patch new file mode 100644 index 00000000000000..00e376583d34b0 --- /dev/null +++ b/ports/pdal/geotiff.patch @@ -0,0 +1,15 @@ +diff --git a/cmake/geotiff.cmake b/cmake/geotiff.cmake +index 1d1e8af..ec077bc 100644 +--- a/cmake/geotiff.cmake ++++ b/cmake/geotiff.cmake +@@ -2,8 +2,8 @@ + # GeoTIFF support + # + +-find_package(GeoTIFF REQUIRED 1.3.0) +-set_package_properties(GeoTIFF PROPERTIES TYPE REQUIRED) ++find_package(geotiff REQUIRED 1.3.0) ++set_package_properties(geotiff PROPERTIES TYPE REQUIRED) + if (GEOTIFF_FOUND) + include_directories("${GEOTIFF_INCLUDE_DIR}") + set(PDAL_HAVE_LIBGEOTIFF 1) diff --git a/ports/pdal/portfile.cmake b/ports/pdal/portfile.cmake index 8099bed6f92ec3..18d27a4c4b1cd2 100644 --- a/ports/pdal/portfile.cmake +++ b/ports/pdal/portfile.cmake @@ -17,6 +17,7 @@ vcpkg_extract_source_archive_ex( libpq.patch fix-CPL_DLL.patch 0004-fix-const-overloaded.patch + geotiff.patch ) file(REMOVE "${SOURCE_PATH}/pdal/gitsha.cpp") @@ -32,13 +33,7 @@ foreach(_module IN ITEMS FindGEOS) # Overwritten Modules. ) endforeach() -if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") - set(VCPKG_BUILD_SHARED_LIBS ON) - set(VCPKG_BUILD_STATIC_LIBS OFF) -else() - set(VCPKG_BUILD_SHARED_LIBS OFF) - set(VCPKG_BUILD_STATIC_LIBS ON) -endif() +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" VCPKG_BUILD_STATIC_LIBS) vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} diff --git a/versions/baseline.json b/versions/baseline.json index ad344df5b8ca28..626c17a916e9e5 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2966,7 +2966,7 @@ }, "libgeotiff": { "baseline": "1.6.0", - "port-version": 0 + "port-version": 1 }, "libgit2": { "baseline": "1.1.0", @@ -3058,7 +3058,7 @@ }, "liblas": { "baseline": "1.8.1", - "port-version": 5 + "port-version": 6 }, "liblbfgs": { "baseline": "1.10", @@ -4466,7 +4466,7 @@ }, "pdal": { "baseline": "1.7.1", - "port-version": 10 + "port-version": 11 }, "pdal-c": { "baseline": "1.8-2", diff --git a/versions/l-/libgeotiff.json b/versions/l-/libgeotiff.json index 0876dcc9a40c9b..f132e503316a4e 100644 --- a/versions/l-/libgeotiff.json +++ b/versions/l-/libgeotiff.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "413293d224293f65999b988ba07734ad78793405", + "version-string": "1.6.0", + "port-version": 1 + }, { "git-tree": "66eb337495fb9ac5d8cfdb96195b5d1c063088b6", "version-string": "1.6.0", diff --git a/versions/l-/liblas.json b/versions/l-/liblas.json index 6f2e219f0444ad..6059275c2d4f31 100644 --- a/versions/l-/liblas.json +++ b/versions/l-/liblas.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "98b46cc84b9efb95b95bfa0111c22e59a4d9e477", + "version-string": "1.8.1", + "port-version": 6 + }, { "git-tree": "3574373c93114a9a7bac598140a5a7c875830b4c", "version-string": "1.8.1", diff --git a/versions/p-/pdal.json b/versions/p-/pdal.json index 0b4ac1dc2510ef..a05e1ec8acb9c7 100644 --- a/versions/p-/pdal.json +++ b/versions/p-/pdal.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "b6a58e13d646cb435d82143c23a3e9e8f54f495e", + "version-string": "1.7.1", + "port-version": 11 + }, { "git-tree": "e8b9d999c233cc564ff9eac48cf8e1d9b3094f1b", "version-string": "1.7.1",