From ff86849a22e852d77781cd50a483ad0e1d3289d3 Mon Sep 17 00:00:00 2001 From: Larry-Hu Date: Thu, 28 Jun 2018 17:57:00 -0700 Subject: [PATCH] Update osg version to 3.6.2-rc3 to fix error C2039 --- ports/osg/CONTROL | 2 +- ports/osg/fix-C2039.patch | 13 ------------- ports/osg/portfile.cmake | 18 ++++++++---------- 3 files changed, 9 insertions(+), 24 deletions(-) delete mode 100644 ports/osg/fix-C2039.patch diff --git a/ports/osg/CONTROL b/ports/osg/CONTROL index 2a275500245c8d..f58156fd046598 100644 --- a/ports/osg/CONTROL +++ b/ports/osg/CONTROL @@ -1,4 +1,4 @@ Source: osg -Version: 3.5.6-3 +Version: 3.6.2-rc3 Description: The OpenSceneGraph is an open source high performance 3D graphics toolkit. Build-Depends: freetype, jasper, openexr, zlib, gdal, giflib, libjpeg-turbo, libpng, tiff diff --git a/ports/osg/fix-C2039.patch b/ports/osg/fix-C2039.patch deleted file mode 100644 index d5a32f544f94c3..00000000000000 --- a/ports/osg/fix-C2039.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/src/osgPlugins/osga/OSGA_Archive.cpp b/src/osgPlugins/osga/OSGA_Archive.cpp -index f96cca3..a80969f 100644 ---- a/src/osgPlugins/osga/OSGA_Archive.cpp -+++ b/src/osgPlugins/osga/OSGA_Archive.cpp -@@ -71,7 +71,7 @@ inline std::streampos STREAM_POS( const OSGA_Archive::pos_type pos ) - inline OSGA_Archive::pos_type ARCHIVE_POS( const std::streampos & pos ) - { - #if defined(_CPPLIB_VER)//newer Dinkumware(eg: one included with VC++ 2003,2005) -- fpos_t position = pos.seekpos(); -+ fpos_t position = pos; - #else // older Dinkumware (eg: one included in Win Server 2003 Platform SDK ) - fpos_t position = pos.get_fpos_t(); - #endif diff --git a/ports/osg/portfile.cmake b/ports/osg/portfile.cmake index 666883c3812419..c6eddae404135e 100644 --- a/ports/osg/portfile.cmake +++ b/ports/osg/portfile.cmake @@ -19,11 +19,9 @@ endif() vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO openscenegraph/OpenSceneGraph - REF OpenSceneGraph-3.5.6 - SHA512 bfd52115bc1f48dfb6eaeae1d8c62741c6487e6a8933b5ef97c979800b285e3a5300c9d55eb961e1973314c06b2525b547db683b0395c1f44b46d17cded38dba + REF OpenSceneGraph-3.6.2-rc3 + SHA512 369c0790ad990cc0f5403209b6e8afe73069f4a467883f9031ac0539bdd090f2cd71487285e515da39bb5a5f67a15548edd479d489dc57374b481ed32ebed0eb HEAD_REF master - PATCHES - "${CURRENT_PORT_DIR}/fix-C2039.patch" ) vcpkg_configure_cmake( @@ -49,12 +47,12 @@ file(REMOVE_RECURSE ${OSG_TOOLS}) file(GLOB OSG_TOOLS_DBG ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe) file(REMOVE_RECURSE ${OSG_TOOLS_DBG}) -file(GLOB OSG_PLUGINS_DBG ${CURRENT_PACKAGES_DIR}/debug/bin/osgPlugins-3.5.6/*.dll) -file(COPY ${OSG_PLUGINS_DBG} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/tools/osg/osgPlugins-3.5.6) -file(GLOB OSG_PLUGINS_REL ${CURRENT_PACKAGES_DIR}/bin/osgPlugins-3.5.6/*.dll) -file(COPY ${OSG_PLUGINS_REL} DESTINATION ${OSG_TOOL_PATH}/osgPlugins-3.5.6) -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin/osgPlugins-3.5.6/) -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin/osgPlugins-3.5.6/) +file(GLOB OSG_PLUGINS_DBG ${CURRENT_PACKAGES_DIR}/debug/bin/osgPlugins-3.6.2/*.dll) +file(COPY ${OSG_PLUGINS_DBG} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/tools/osg/osgPlugins-3.6.2) +file(GLOB OSG_PLUGINS_REL ${CURRENT_PACKAGES_DIR}/bin/osgPlugins-3.6.2/*.dll) +file(COPY ${OSG_PLUGINS_REL} DESTINATION ${OSG_TOOL_PATH}/osgPlugins-3.6.2) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin/osgPlugins-3.6.2/) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin/osgPlugins-3.6.2/) # Handle copyright file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/osg)