[gdal] no absolute paths (#21451)

This commit is contained in:
autoantwort 2021-11-17 01:21:16 +01:00 committed by GitHub
parent f8dfd8509d
commit 7d293602a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 1 deletions

View File

@ -366,6 +366,11 @@ else()
vcpkg_replace_string("${pc_file_debug}" "${exec_prefix}/include" "${prefix}/../include")
endif()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/gdal/bin/gdal-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../..")
if(NOT VCPKG_BUILD_TYPE)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/gdal/debug/bin/gdal-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../../..")
endif()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/cpl_config.h" "#define GDAL_PREFIX \"${CURRENT_INSTALLED_DIR}\"" "")
endif()
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

View File

@ -1,6 +1,7 @@
{
"name": "gdal",
"version-semver": "3.4.0",
"port-version": 1,
"description": "The Geographic Data Abstraction Library for reading and writing geospatial raster and vector data",
"homepage": "https://gdal.org",
"supports": "!(arm & windows)",

View File

@ -2354,7 +2354,7 @@
},
"gdal": {
"baseline": "3.4.0",
"port-version": 0
"port-version": 1
},
"gdcm": {
"baseline": "3.0.7",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "d5580a73ced0a55c4659874d1755239c76e9168c",
"version-semver": "3.4.0",
"port-version": 1
},
{
"git-tree": "097ed3ccdf77735c5b36e354138da35cfd642bcc",
"version-semver": "3.4.0",