diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2021-01-27 14:24:07 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-27 14:24:07 -0800 |
| commit | f53d9799c3c5212486e57ea82c95dda33b6a0e38 (patch) | |
| tree | 7df9535506bca37751cb6a710cd6c7cf8e7f18fb /ports | |
| parent | 5f215c65fe6e5ae19df981ad02c2d7c29f778a84 (diff) | |
| download | vcpkg-f53d9799c3c5212486e57ea82c95dda33b6a0e38.tar.gz vcpkg-f53d9799c3c5212486e57ea82c95dda33b6a0e38.zip | |
[vcpkg baseline][osgearth] Fix and add dependency tinyxml (#15900)
* [osgearth] Fix and add dependency tinyxml
* update version record
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/osgearth/fix-tinyxml.patch | 15 | ||||
| -rw-r--r-- | ports/osgearth/portfile.cmake | 4 | ||||
| -rw-r--r-- | ports/osgearth/vcpkg.json | 5 |
3 files changed, 22 insertions, 2 deletions
diff --git a/ports/osgearth/fix-tinyxml.patch b/ports/osgearth/fix-tinyxml.patch new file mode 100644 index 000000000..9f9a6d96f --- /dev/null +++ b/ports/osgearth/fix-tinyxml.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c78bd16..bf31091 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -193,7 +193,9 @@ OPTION(OSGEARTH_INSTALL_SHADERS "Whether to deploy GLSL shaders when doing a Mak + # TinyXML is an XML parsing library + SET (WITH_EXTERNAL_TINYXML FALSE CACHE BOOL "Use bundled or system wide version of TinyXML") + IF (WITH_EXTERNAL_TINYXML) +- find_package(TinyXML REQUIRED) ++ find_package(tinyxml CONFIG REQUIRED) ++ set(TINYXML_FOUND 1) ++ set(TINYXML_LIBRARY unofficial-tinyxml::unofficial-tinyxml) + ENDIF (WITH_EXTERNAL_TINYXML) + + # postfix settings for various configs diff --git a/ports/osgearth/portfile.cmake b/ports/osgearth/portfile.cmake index 57d42b523..816aa50e3 100644 --- a/ports/osgearth/portfile.cmake +++ b/ports/osgearth/portfile.cmake @@ -15,8 +15,12 @@ vcpkg_from_github( HEAD_REF master PATCHES make-all-find-packages-required.patch + fix-tinyxml.patch ) +# Upstream bug, see https://github.com/gwaldron/osgearth/issues/1002 +file(REMOVE ${SOURCE_PATH}/src/osgEarth/tinyxml.h) + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA diff --git a/ports/osgearth/vcpkg.json b/ports/osgearth/vcpkg.json index 7d7a22015..aef74120b 100644 --- a/ports/osgearth/vcpkg.json +++ b/ports/osgearth/vcpkg.json @@ -1,7 +1,7 @@ { "name": "osgearth", "version": "3.1", - "port-version": 1, + "port-version": 2, "description": "osgEarth - Dynamic map generation toolkit for OpenSceneGraph Copyright 2015 Pelican Mapping.", "homepage": "https://github.com/gwaldron/osgearth", "supports": "!(x86 | wasm32) & !staticcrt", @@ -20,6 +20,7 @@ ] }, "protobuf", - "sqlite3" + "sqlite3", + "tinyxml" ] } |
