Skip to content

Commit

Permalink
[osgearth] Update to version 3.4 (microsoft#31569)
Browse files Browse the repository at this point in the history
* [osgearth] Update to version 3.4

* Fix patch indentation

* Add missing dependency

* Fix tool installation
  • Loading branch information
cbrl authored May 24, 2023
1 parent b9fc501 commit a4c3f11
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 114 deletions.
18 changes: 9 additions & 9 deletions ports/osgearth/find-package.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 36ea6c81f..8ed39eb24 100755
index cf8245b8b..233390a5f 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -124,9 +124,9 @@ option(OSGEARTH_ENABLE_GEOCODER "Enable the geocoder (GDAL/OGR must be built wit
@@ -127,9 +127,9 @@ mark_as_advanced(OSGEARTH_ASSUME_SINGLE_GL_CONTEXT)

# Mobile/GLES:
IF (OSGEARTH_USE_GLES)
Expand All @@ -14,7 +14,7 @@ index 36ea6c81f..8ed39eb24 100755
ENDIF (OSGEARTH_USE_GLES)


@@ -144,35 +144,54 @@ if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
@@ -147,35 +147,54 @@ if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
endif()

# required
Expand Down Expand Up @@ -44,7 +44,7 @@ index 36ea6c81f..8ed39eb24 100755
-find_package(Protobuf)
-find_package(WEBP)
-find_package(Blend2D)
-find_package(blosc)
-find_package(Blosc)
+find_package(GEOS CONFIG REQUIRED)
+set(GEOS_LIBRARY GEOS::geos_c)
+find_package(SQLITE3 NAMES unofficial-sqlite3 REQUIRED)
Expand All @@ -67,8 +67,8 @@ index 36ea6c81f..8ed39eb24 100755
endif()

if(OSGEARTH_BUILD_ZIP_PLUGIN)
- find_package(LIBZIP)
+ find_package(LIBZIP CONFIG REQUIRED)
- find_package(LibZip)
+ find_package(libzip CONFIG REQUIRED)
+ set(LIBZIP_LIBRARY libzip::zip)
endif()

Expand All @@ -83,7 +83,7 @@ index 36ea6c81f..8ed39eb24 100755
endif()

# Sqlite enables the MBTiles format:
@@ -214,7 +233,7 @@ SET (PROTOBUF_USE_DLLS FALSE CACHE BOOL "Set this to true if Protobuf is compile
@@ -221,7 +240,7 @@ SET (PROTOBUF_USE_DLLS FALSE CACHE BOOL "Set this to true if Protobuf is compile
# Duktape is the JavaScript interpreter
SET (WITH_EXTERNAL_DUKTAPE FALSE CACHE BOOL "Use bundled or system wide version of Duktape")
IF (WITH_EXTERNAL_DUKTAPE)
Expand All @@ -92,7 +92,7 @@ index 36ea6c81f..8ed39eb24 100755
ENDIF (WITH_EXTERNAL_DUKTAPE)

# Whether to install shaders (glsl files).
@@ -225,7 +244,8 @@ OPTION(OSGEARTH_INSTALL_SHADERS "Whether to deploy GLSL shaders when doing a Mak
@@ -232,7 +251,8 @@ 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)
Expand All @@ -102,7 +102,7 @@ index 36ea6c81f..8ed39eb24 100755
ENDIF (WITH_EXTERNAL_TINYXML)

# postfix settings for various configs
@@ -300,6 +320,7 @@ IF(OSGEARTH_BUILD_SHARED_LIBS)
@@ -307,6 +327,7 @@ IF(OSGEARTH_BUILD_SHARED_LIBS)
SET(OSGEARTH_DYNAMIC_OR_STATIC "SHARED")
ELSE()
SET(OSGEARTH_DYNAMIC_OR_STATIC "STATIC")
Expand Down
86 changes: 0 additions & 86 deletions ports/osgearth/fix-osgearth-config.patch

This file was deleted.

10 changes: 5 additions & 5 deletions ports/osgearth/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO gwaldron/osgearth
REF 6b5fb806a9190f7425c32db65d3ea905a55a9c16 #version 3.3
SHA512 fe79ce6c73341f83d4aee8cb4da5341dead56a92f998212f7898079b79725f46b2209d64e68fe3b4d99d3c5c25775a8efd1bf3c3b3a049d4f609d3e30172d3bf
REF "osgearth-${VERSION}"
SHA512 f65c31922bebcbf722474a047dc29c8c1ceec9c037b0704811af2627fc2d0a124b6e95888e7d3b9b0e5acc146a88ebf8669e3f864a75a91751c3a4571d05a630
HEAD_REF master
PATCHES
link-libraries.patch
find-package.patch
remove-tool-debug-suffix.patch
remove-lerc-gltf.patch
fix-osgearth-config.patch
export-plugins.patch
)

Expand Down Expand Up @@ -86,11 +85,12 @@ if("tools" IN_LIST FEATURES)
file(INSTALL ${osg_plugins} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/${osg_plugins_subdir}")
endif()
endif()
vcpkg_copy_tools(TOOL_NAMES osgearth_3pv osgearth_atlas osgearth_boundarygen osgearth_clamp
osgearth_conv osgearth_imgui osgearth_tfs osgearth_toc osgearth_version osgearth_viewer
vcpkg_copy_tools(TOOL_NAMES osgearth_3pv osgearth_atlas osgearth_bakefeaturetiles osgearth_boundarygen
osgearth_clamp osgearth_conv osgearth_imgui osgearth_tfs osgearth_toc osgearth_version osgearth_viewer
osgearth_createtile osgearth_mvtindex
AUTO_CLEAN
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug")
endif()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
Expand Down
18 changes: 8 additions & 10 deletions ports/osgearth/remove-lerc-gltf.patch
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
diff --git a/src/osgEarthDrivers/CMakeLists.txt b/src/osgEarthDrivers/CMakeLists.txt
index d178f951b..010896310 100644
index 79acbe9c4..89e28b141 100644
--- a/src/osgEarthDrivers/CMakeLists.txt
+++ b/src/osgEarthDrivers/CMakeLists.txt
@@ -30,7 +30,6 @@ add_subdirectory(earth)
@@ -31,7 +31,6 @@ add_subdirectory(earth)
add_subdirectory(engine_rex)
add_subdirectory(featurefilter_intersect)
add_subdirectory(featurefilter_join)
-add_subdirectory(gltf)
add_subdirectory(kml)
add_subdirectory(mapinspector)
add_subdirectory(monitor)
@@ -40,7 +39,6 @@ add_subdirectory(sky_simple)
add_subdirectory(template)
add_subdirectory(terrainshader)
add_subdirectory(webp)
-add_subdirectory(lerc)
add_subdirectory(vdatum_egm2008)
add_subdirectory(vdatum_egm84)
add_subdirectory(vdatum_egm96)
@@ -61,5 +60,4 @@ endif()

IF(NOT APPLE AND NOT ANDROID)
add_subdirectory(fastdxt)
- add_subdirectory(lerc)
ENDIF()
4 changes: 2 additions & 2 deletions ports/osgearth/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "osgearth",
"version": "3.3",
"port-version": 7,
"version": "3.4",
"description": "osgEarth - Dynamic map generation toolkit for OpenSceneGraph Copyright 2021 Pelican Mapping.",
"homepage": "https://github.com/gwaldron/osgearth",
"license": "LGPL-3.0-or-later",
"supports": "!(arm | x86 | wasm32)",
"dependencies": [
"basisu",
"blosc",
"cfitsio",
"draco",
"geos",
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6065,8 +6065,8 @@
"port-version": 3
},
"osgearth": {
"baseline": "3.3",
"port-version": 7
"baseline": "3.4",
"port-version": 0
},
"osi": {
"baseline": "0.108.6",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/osgearth.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "765cddcfc821c355b20c1fed7a43f181f8eb0817",
"version": "3.4",
"port-version": 0
},
{
"git-tree": "c39e21352cff6e65fe8f6315ee9b7828143e0eb8",
"version": "3.3",
Expand Down

0 comments on commit a4c3f11

Please sign in to comment.