Skip to content

Commit

Permalink
Merge pull request #576 from microsoft/master
Browse files Browse the repository at this point in the history
[vcpkg baseline][osgearth/gdal] Re-fix dependency gdal (microsoft#16904)
  • Loading branch information
Jimmy-Hu authored Mar 28, 2021
2 parents 56dbd19 + 6d9ed56 commit 805124c
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 19 deletions.
15 changes: 0 additions & 15 deletions ports/gdal/CONTROL

This file was deleted.

2 changes: 1 addition & 1 deletion ports/gdal/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ else()
endif()

set(CONF_OPTS --enable-shared=${BUILD_DYNAMIC} --enable-static=${BUILD_STATIC})
list(APPEND CONF_OPTS --with-proj=${CURRENT_INSTALLED_DIR} --with-libjson-c=${CURRENT_INSTALLED_DIR})
list(APPEND CONF_OPTS --with-proj=${CURRENT_INSTALLED_DIR} --with-libjson-c=${CURRENT_INSTALLED_DIR} --without-freexl)
list(APPEND CONF_OPTS --without-jasper)

vcpkg_configure_make(
Expand Down
43 changes: 43 additions & 0 deletions ports/gdal/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "gdal",
"version-string": "3.1.3",
"port-version": 3,
"description": "The Geographic Data Abstraction Library for reading and writing geospatial raster and vector data.",
"homepage": "hhttps://gdal.org/",
"dependencies": [
"cfitsio",
"curl",
"expat",
"geos",
"hdf5",
{
"name": "json-c",
"platform": "!windows"
},
"libgeotiff",
"liblzma",
"libpng",
"libpq",
"libwebp",
"libxml2",
"netcdf-c",
"openjpeg",
"proj4",
"sqlite3",
"zlib"
],
"features": {
"libspatialite": {
"description": "Create or update SpatiaLite databases using libspatialite",
"dependencies": [
"libspatialite"
]
},
"mysql-libmariadb": {
"description": "Add mysql support using libmariadb",
"dependencies": [
"libmariadb"
]
}
}
}
5 changes: 5 additions & 0 deletions ports/protobuf/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ else()
file(COPY ${CURRENT_HOST_INSTALLED_DIR}/tools/${PORT} DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
endif()

vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/share/${PORT}/protobuf-config.cmake
"if(protobuf_MODULE_COMPATIBLE)"
"if(ON)"
)

if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
protobuf_try_remove_recurse_wait(${CURRENT_PACKAGES_DIR}/bin)
protobuf_try_remove_recurse_wait(${CURRENT_PACKAGES_DIR}/debug/bin)
Expand Down
2 changes: 1 addition & 1 deletion ports/protobuf/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "protobuf",
"version-string": "3.14.0",
"port-version": 2,
"port-version": 3,
"description": "Protocol Buffers - Google's data interchange format",
"homepage": "https://github.com/protocolbuffers/protobuf",
"dependencies": [
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2134,7 +2134,7 @@
},
"gdal": {
"baseline": "3.1.3",
"port-version": 2
"port-version": 3
},
"gdcm": {
"baseline": "3.0.7",
Expand Down Expand Up @@ -4798,7 +4798,7 @@
},
"protobuf": {
"baseline": "3.14.0",
"port-version": 2
"port-version": 3
},
"protobuf-c": {
"baseline": "1.3.2-2",
Expand Down
5 changes: 5 additions & 0 deletions versions/g-/gdal.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "548d5f5f1ad969bf88d86c17de3ee40ebb096a2f",
"version-string": "3.1.3",
"port-version": 3
},
{
"git-tree": "162ae61cb64d9bb9a485e611cca106ade9062c1a",
"version-string": "3.1.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/p-/protobuf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9f8c80db7cf8a925199facba3ba0c6c8436c41c8",
"version-string": "3.14.0",
"port-version": 3
},
{
"git-tree": "7dcdfe30568d5d0cde6564984e0488ec2c33d9dc",
"version-string": "3.14.0",
Expand Down

0 comments on commit 805124c

Please sign in to comment.