diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/osg | |
Diffstat (limited to 'vcpkg/ports/osg')
| -rw-r--r-- | vcpkg/ports/osg/android.diff | 22 | ||||
| -rw-r--r-- | vcpkg/ports/osg/collada.patch | 126 | ||||
| -rw-r--r-- | vcpkg/ports/osg/fix-error-c3861.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/osg/fix-min-max-macro.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/osg/fix-nvtt-squish.patch | 22 | ||||
| -rw-r--r-- | vcpkg/ports/osg/fix-sdl.patch | 14 | ||||
| -rw-r--r-- | vcpkg/ports/osg/link-libraries.patch | 21 | ||||
| -rw-r--r-- | vcpkg/ports/osg/openexr3.patch | 46 | ||||
| -rw-r--r-- | vcpkg/ports/osg/osgdb_zip_nozip.patch | 52 | ||||
| -rw-r--r-- | vcpkg/ports/osg/plugin-pdb-install.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/osg/portfile.cmake | 188 | ||||
| -rw-r--r-- | vcpkg/ports/osg/unofficial-export.patch | 76 | ||||
| -rw-r--r-- | vcpkg/ports/osg/unofficial-osg-config.cmake | 23 | ||||
| -rw-r--r-- | vcpkg/ports/osg/usage | 5 | ||||
| -rw-r--r-- | vcpkg/ports/osg/vcpkg.json | 179 |
15 files changed, 813 insertions, 0 deletions
diff --git a/vcpkg/ports/osg/android.diff b/vcpkg/ports/osg/android.diff new file mode 100644 index 0000000..19b1b79 --- /dev/null +++ b/vcpkg/ports/osg/android.diff @@ -0,0 +1,22 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7d0acf8..d5ebe90 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -734,7 +734,7 @@ OPTION(OSG_USE_LOCAL_LUA_SOURCE "Enable to use local Lua source when building th + # you can use the following style of command line option when invoking Cmake (here illustrating ignoring PythonLibs) : + # cmake -DCMAKE_DISABLE_FIND_PACKAGE_PythonLibs=1 . + # +-IF(ANDROID) ++IF(0) + ANDROID_3RD_PARTY() + ELSE() + # Common to all platforms except android: +@@ -815,7 +815,7 @@ ENDIF(BUILD_OSG_EXAMPLES AND NOT ANDROID) + + # Image readers/writers depend on 3rd party libraries except for OS X which + # can use Quicktime. +-IF(NOT ANDROID) ++IF(1) + IF(NOT APPLE) + FIND_PACKAGE(GIFLIB) + FIND_PACKAGE(JPEG) diff --git a/vcpkg/ports/osg/collada.patch b/vcpkg/ports/osg/collada.patch new file mode 100644 index 0000000..80b2606 --- /dev/null +++ b/vcpkg/ports/osg/collada.patch @@ -0,0 +1,126 @@ +diff --git a/CMakeModules/FindCOLLADA.cmake b/CMakeModules/FindCOLLADA.cmake +index 7c7d290..5b456d7 100644 +--- a/CMakeModules/FindCOLLADA.cmake ++++ b/CMakeModules/FindCOLLADA.cmake +@@ -29,10 +29,7 @@ IF(APPLE) + ELSEIF(MINGW) + SET(COLLADA_BUILDNAME "mingw") + SET(COLLADA_BOOST_BUILDNAME ${COLLADA_BUILDNAME}) +-ELSEIF((MSVC_VERSION GREATER 1910) OR (MSVC_VERSION EQUAL 1910)) +- SET(COLLADA_BUILDNAME "vc14") +- SET(COLLADA_BOOST_BUILDNAME "vc141") +-ELSEIF(MSVC_VERSION EQUAL 1900) ++ELSEIF(MSVC_VERSION GREATER_EQUAL 1900) + SET(COLLADA_BUILDNAME "vc14") + SET(COLLADA_BOOST_BUILDNAME "vc140") + ELSEIF(MSVC_VERSION EQUAL 1800) +@@ -61,6 +58,7 @@ ENDIF() + + + FIND_PATH(COLLADA_INCLUDE_DIR dae.h ++ PATHS + ${COLLADA_DOM_ROOT}/include + $ENV{COLLADA_DIR}/include + $ENV{COLLADA_DIR} +@@ -68,27 +66,19 @@ FIND_PATH(COLLADA_INCLUDE_DIR dae.h + /Library/Frameworks + /opt/local/Library/Frameworks #macports + /usr/local/include +- /usr/local/include/colladadom +- /usr/local/include/collada-dom +- /usr/local/include/collada-dom2.5 +- /usr/local/include/collada-dom2.4 +- /usr/local/include/collada-dom2.2 +- /opt/local/include/collada-dom +- /opt/local/include/collada-dom2.5 +- /opt/local/include/collada-dom2.4 +- /opt/local/include/collada-dom2.2 + /usr/include/ +- /usr/include/colladadom +- /usr/include/collada-dom +- /usr/include/collada-dom2.5 +- /usr/include/collada-dom2.4 +- /usr/include/collada-dom2.2 + /sw/include # Fink + /opt/local/include # DarwinPorts + /opt/csw/include # Blastwave + /opt/include + /usr/freeware/include + ${ACTUAL_3DPARTY_DIR}/include ++ PATH_SUFFIXES ++ colladadom ++ collada-dom ++ collada-dom2.5 ++ collada-dom2.4 ++ collada-dom2.2 + ) + + FIND_LIBRARY(COLLADA_DYNAMIC_LIBRARY +@@ -116,7 +106,7 @@ FIND_LIBRARY(COLLADA_DYNAMIC_LIBRARY + ) + + FIND_LIBRARY(COLLADA_DYNAMIC_LIBRARY_DEBUG +- NAMES collada_dom-d collada14dom-d Collada14Dom-d libcollada14dom21-d libcollada14dom22-d collada-dom2.5-dp-d collada-dom2.5-dp-${COLLADA_BOOST_BUILDNAME}-mt-d collada-dom2.4-dp-d collada-dom2.4-dp-${COLLADA_BOOST_BUILDNAME}-mt-d ++ NAMES collada_dom-d collada14dom-d Collada14Dom-d libcollada14dom21-d libcollada14dom22-d collada-dom2.5-dp-d collada-dom2.5-dp-${COLLADA_BOOST_BUILDNAME}-mt-d collada-dom2.4-dp-d collada-dom2.4-dp-${COLLADA_BOOST_BUILDNAME}-mt-d collada-dom2.5-dp-${COLLADA_BOOST_BUILDNAME}-mt + PATHS + ${COLLADA_DOM_ROOT}/build/${COLLADA_BUILDNAME}-1.4-d + ${COLLADA_DOM_ROOT} +@@ -279,7 +269,7 @@ FIND_LIBRARY(COLLADA_STATIC_LIBRARY_DEBUG + ) + + FIND_LIBRARY(COLLADA_BOOST_FILESYSTEM_LIBRARY +- NAMES libboost_filesystem boost_filesystem boost_filesystem-mt libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_54 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_55 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_58 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_62 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_63 ++ NAMES libboost_filesystem boost_filesystem boost_filesystem-mt libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_54 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_55 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_58 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_62 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_63 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt + PATHS + ${COLLADA_DOM_ROOT}/external-libs/boost/lib/${COLLADA_BUILDNAME} + ${COLLADA_DOM_ROOT}/external-libs/boost/lib/mingw +@@ -287,7 +277,7 @@ FIND_LIBRARY(COLLADA_STATIC_LIBRARY_DEBUG + ) + + FIND_LIBRARY(COLLADA_BOOST_FILESYSTEM_LIBRARY_DEBUG +- NAMES libboost_filesystem-d boost_filesystem-d boost_filesystem-mt-d libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_54 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_55 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_58 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_62 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_63 ++ NAMES libboost_filesystem-d boost_filesystem-d boost_filesystem-mt-d libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_54 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_55 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_58 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_62 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_63 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd + PATHS + ${COLLADA_DOM_ROOT}/external-libs/boost/lib/${COLLADA_BUILDNAME} + ${COLLADA_DOM_ROOT}/external-libs/boost/lib/mingw +@@ -295,7 +285,7 @@ FIND_LIBRARY(COLLADA_STATIC_LIBRARY_DEBUG + ) + + FIND_LIBRARY(COLLADA_BOOST_SYSTEM_LIBRARY +- NAMES libboost_system boost_system boost_system-mt libboost_system-${COLLADA_BOOST_BUILDNAME}-mt libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_54 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_55 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_58 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_62 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_63 ++ NAMES libboost_system boost_system boost_system-mt libboost_system-${COLLADA_BOOST_BUILDNAME}-mt libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_54 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_55 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_58 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_62 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_63 boost_system-${COLLADA_BOOST_BUILDNAME}-mt + PATHS + ${COLLADA_DOM_ROOT}/external-libs/boost/lib/${COLLADA_BUILDNAME} + ${COLLADA_DOM_ROOT}/external-libs/boost/lib/mingw +@@ -303,7 +293,7 @@ FIND_LIBRARY(COLLADA_STATIC_LIBRARY_DEBUG + ) + + FIND_LIBRARY(COLLADA_BOOST_SYSTEM_LIBRARY_DEBUG +- NAMES libboost_system-d boost_system-d boost_system-mt-d libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_54 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_55 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_58 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_62 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_63 ++ NAMES libboost_system-d boost_system-d boost_system-mt-d libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_54 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_55 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_58 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_62 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_63 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd + PATHS + ${COLLADA_DOM_ROOT}/external-libs/boost/lib/${COLLADA_BUILDNAME} + ${COLLADA_DOM_ROOT}/external-libs/boost/lib/mingw +@@ -329,5 +319,3 @@ IF(COLLADA_DYNAMIC_LIBRARY OR COLLADA_STATIC_LIBRARY) + + ENDIF() + ENDIF() +- +- + +diff --git a/src/osgPlugins/dae/CMakeLists.txt b/src/osgPlugins/dae/CMakeLists.txt +index af03fb866..7eadfc2f3 100644 +--- a/src/osgPlugins/dae/CMakeLists.txt ++++ b/src/osgPlugins/dae/CMakeLists.txt +@@ -49,7 +49,9 @@ ELSE() + ENDIF() + + ADD_DEFINITIONS(-DNO_BOOST) +-ADD_DEFINITIONS(-DCOLLADA_DOM_SUPPORT141) ++ADD_DEFINITIONS(-DCOLLADA_DOM_USING_141 ++ -DCOLLADA_DOM_SUPPORT141 ++ -DCOLLADA_DOM_SUPPORT150) + + IF (COLLADA_DOM_2_4_OR_LATER) + ADD_DEFINITIONS(-DCOLLADA_DOM_2_4_OR_LATER) + diff --git a/vcpkg/ports/osg/fix-error-c3861.patch b/vcpkg/ports/osg/fix-error-c3861.patch new file mode 100644 index 0000000..7830717 --- /dev/null +++ b/vcpkg/ports/osg/fix-error-c3861.patch @@ -0,0 +1,13 @@ +diff --git a/src/osgPlugins/osga/OSGA_Archive.cpp b/src/osgPlugins/osga/OSGA_Archive.cpp +index b9f518a..19186a7 100644 +--- a/src/osgPlugins/osga/OSGA_Archive.cpp ++++ b/src/osgPlugins/osga/OSGA_Archive.cpp +@@ -77,7 +77,7 @@ inline OSGA_Archive::pos_type ARCHIVE_POS( const std::streampos & pos ) + #else // older Dinkumware (eg: one included in Win Server 2003 Platform SDK ) + fpos_t position = pos.get_fpos_t(); + #endif +- std::streamoff offset = pos.operator std::streamoff( ) - _FPOSOFF( position ); ++ std::streamoff offset = 0; + + return OSGA_Archive::pos_type( position + offset ); + } diff --git a/vcpkg/ports/osg/fix-min-max-macro.patch b/vcpkg/ports/osg/fix-min-max-macro.patch new file mode 100644 index 0000000..96a5f72 --- /dev/null +++ b/vcpkg/ports/osg/fix-min-max-macro.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2a58f19..7d0acf8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -375,7 +375,7 @@ IF(WIN32 AND NOT ANDROID) + #needed for net plugin + SET (OSG_SOCKET_LIBS wsock32) + # Both Cygwin and Msys need -DNOMINMAX ??? +- IF(UNIX) ++ IF(UNIX OR WIN32) + ADD_DEFINITIONS(-DNOMINMAX) + ENDIF() + diff --git a/vcpkg/ports/osg/fix-nvtt-squish.patch b/vcpkg/ports/osg/fix-nvtt-squish.patch new file mode 100644 index 0000000..fb7ef08 --- /dev/null +++ b/vcpkg/ports/osg/fix-nvtt-squish.patch @@ -0,0 +1,22 @@ +diff --git a/CMakeModules/FindNVTT.cmake b/CMakeModules/FindNVTT.cmake +index d0e7414..f6fb761 100644 +--- a/CMakeModules/FindNVTT.cmake ++++ b/CMakeModules/FindNVTT.cmake +@@ -120,7 +120,7 @@ FIND_LIBRARY(NVTHREAD_LIBRARY_DEBUG + + # SQUISH + FIND_LIBRARY(NVSQUISH_LIBRARY_RELEASE +- NAMES squish ++ NAMES nvsquish NAMES_PER_DIR + PATHS + /usr/local + /usr +@@ -129,7 +129,7 @@ FIND_LIBRARY(NVSQUISH_LIBRARY_RELEASE + PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static + ) + FIND_LIBRARY(NVSQUISH_LIBRARY_DEBUG +- NAMES squish_d ++ NAMES nvsquish_d NAMES_PER_DIR + PATHS + /usr/local + /usr diff --git a/vcpkg/ports/osg/fix-sdl.patch b/vcpkg/ports/osg/fix-sdl.patch new file mode 100644 index 0000000..c779235 --- /dev/null +++ b/vcpkg/ports/osg/fix-sdl.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 81328ea..c735419 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -755,7 +755,8 @@ ELSE() + FIND_PACKAGE(GStreamer COMPONENTS app pbutils) + FIND_PACKAGE(GLIB COMPONENTS gobject) + FIND_PACKAGE(DirectShow) +- FIND_PACKAGE(SDL2) ++ find_package(SDL2 CONFIG) ++ set(SDL2_LIBRARY SDL2::SDL2 SDL2::SDL2main) + FIND_PACKAGE(SDL) + FIND_PACKAGE(Poppler-glib) + FIND_PACKAGE(RSVG) diff --git a/vcpkg/ports/osg/link-libraries.patch b/vcpkg/ports/osg/link-libraries.patch new file mode 100644 index 0000000..b658444 --- /dev/null +++ b/vcpkg/ports/osg/link-libraries.patch @@ -0,0 +1,21 @@ +diff --git a/CMakeModules/OsgMacroUtils.cmake b/CMakeModules/OsgMacroUtils.cmake +index ce55be0..9b7107c 100644 +--- a/CMakeModules/OsgMacroUtils.cmake ++++ b/CMakeModules/OsgMacroUtils.cmake +@@ -37,6 +37,16 @@ SET(VALID_BUILDER_VERSION OFF) + + MACRO(LINK_WITH_VARIABLES TRGTNAME) + FOREACH(varname ${ARGN}) ++ string(REPLACE "_LIBRARY" "_LINK_LIBRARIES" lwv_link_libraries "${varname}") ++ if(DEFINED ${lwv_link_libraries}) ++ TARGET_LINK_LIBRARIES(${TRGTNAME} ${${lwv_link_libraries}}) ++ continue() ++ endif() ++ string(REPLACE "_LIBRARY" "_LIBRARIES" lwv_libraries "${varname}") ++ if(DEFINED ${lwv_libraries}) ++ TARGET_LINK_LIBRARIES(${TRGTNAME} ${${lwv_libraries}}) ++ continue() ++ endif() + IF(${varname}_DEBUG) + IF(${varname}_RELEASE) + TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${${varname}_RELEASE}" debug "${${varname}_DEBUG}") diff --git a/vcpkg/ports/osg/openexr3.patch b/vcpkg/ports/osg/openexr3.patch new file mode 100644 index 0000000..9d52500 --- /dev/null +++ b/vcpkg/ports/osg/openexr3.patch @@ -0,0 +1,46 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c7de889..2a58f19 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -743,6 +743,9 @@ ELSE() + FIND_PACKAGE(Inventor) + FIND_PACKAGE(Jasper) + FIND_PACKAGE(OpenEXR) ++ set(OPENEXR_FOUND "${OpenEXR_FOUND}") ++ set(OPENEXR_LIBRARIES OpenEXR::OpenEXR) ++ set(OPENEXR_LIBRARIES_VARS OPENEXR_LIBRARIES) + FIND_PACKAGE(OpenCascade) + FIND_PACKAGE(COLLADA) + FIND_PACKAGE(FBX) +diff --git a/src/osgPlugins/exr/ReaderWriterEXR.cpp b/src/osgPlugins/exr/ReaderWriterEXR.cpp +index 7132e97..bea1483 100644 +--- a/src/osgPlugins/exr/ReaderWriterEXR.cpp ++++ b/src/osgPlugins/exr/ReaderWriterEXR.cpp +@@ -41,11 +41,11 @@ public: + { + return _inStream->read(c,n).good(); + }; +- virtual Int64 tellg () ++ virtual uint64_t tellg () + { + return _inStream->tellg(); + }; +- virtual void seekg (Int64 pos) ++ virtual void seekg (uint64_t pos) + { + _inStream->seekg(pos); + }; +@@ -69,11 +69,11 @@ public: + { + _outStream->write(c,n); + }; +- virtual Int64 tellp () ++ virtual uint64_t tellp () + { + return _outStream->tellp(); + }; +- virtual void seekp (Int64 pos) ++ virtual void seekp (uint64_t pos) + { + _outStream->seekp(pos); + }; diff --git a/vcpkg/ports/osg/osgdb_zip_nozip.patch b/vcpkg/ports/osg/osgdb_zip_nozip.patch new file mode 100644 index 0000000..a16deca --- /dev/null +++ b/vcpkg/ports/osg/osgdb_zip_nozip.patch @@ -0,0 +1,52 @@ +From bee432e701c541f9a86bd051b795c3e056e36646 Mon Sep 17 00:00:00 2001
+From: Ankur Verma <ankurv@localhost.localdomain>
+Date: Sun, 16 Aug 2020 14:36:31 -0700
+Subject: [PATCH] osg
+
+---
+ src/osgPlugins/zip/unzip.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/osgPlugins/zip/unzip.cpp b/src/osgPlugins/zip/unzip.cpp
+index 0bec28f0c..74e7b2413 100644
+--- a/src/osgPlugins/zip/unzip.cpp
++++ b/src/osgPlugins/zip/unzip.cpp
+@@ -1742,8 +1742,8 @@ int inflate_blocks_free(inflate_blocks_statef *s, z_streamp z)
+
+
+
+-extern const char inflate_copyright[] =
+- " inflate 1.1.3 Copyright 1995-1998 Mark Adler ";
++//extern const char inflate_copyright[] =
++// " inflate 1.1.3 Copyright 1995-1998 Mark Adler ";
+ // If you use the zlib library in a product, an acknowledgment is welcome
+ // in the documentation of your product. If for some reason you cannot
+ // include such an acknowledgment, I would appreciate that you keep this
+--
+2.26.2
+
+From 24d4036036884b350bd6c519b64626faa2c7e660 Mon Sep 17 00:00:00 2001
+From: Ankur Verma <ankurv@localhost.localdomain>
+Date: Thu, 20 Aug 2020 23:16:12 -0700
+Subject: [PATCH] Symbol clashes
+
+---
+ src/osgPlugins/zip/unzip.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/osgPlugins/zip/unzip.cpp b/src/osgPlugins/zip/unzip.cpp
+index 74e7b2413..f5169c6f4 100644
+--- a/src/osgPlugins/zip/unzip.cpp
++++ b/src/osgPlugins/zip/unzip.cpp
+@@ -213,7 +213,7 @@ DWORD GetFilePosU(HANDLE hfout)
+ return ftell(hfout);
+ }
+
+-bool FileExists(const TCHAR *fn)
++static bool FileExists(const TCHAR *fn)
+ { struct stat st;
+ int res=stat(fn,&st);
+ return (res==0);
+--
+2.26.2
+
diff --git a/vcpkg/ports/osg/plugin-pdb-install.patch b/vcpkg/ports/osg/plugin-pdb-install.patch new file mode 100644 index 0000000..2ba4565 --- /dev/null +++ b/vcpkg/ports/osg/plugin-pdb-install.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeModules/OsgMacroUtils.cmake b/CMakeModules/OsgMacroUtils.cmake +index a12fcf1..ce55be0 100644 +--- a/CMakeModules/OsgMacroUtils.cmake ++++ b/CMakeModules/OsgMacroUtils.cmake +@@ -351,7 +351,7 @@ MACRO(SETUP_PLUGIN PLUGIN_NAME) + LIBRARY DESTINATION bin/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT}) + IF(MSVC AND DYNAMIC_OPENSCENEGRAPH) + INSTALL(FILES ${OUTPUT_BINDIR}/${OSG_PLUGINS}/${TARGET_TARGETNAME}${CMAKE_RELWITHDEBINFO_POSTFIX}.pdb DESTINATION bin/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT} CONFIGURATIONS RelWithDebInfo) +- INSTALL(FILES ${OUTPUT_BINDIR}/${OSG_PLUGINS}/${TARGET_TARGETNAME}${CMAKE_DEBUG_POSTFIX}.pdb DESTINATION bin/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT} CONFIGURATIONS Debug) ++ INSTALL(FILES $<TARGET_PDB_FILE:${TARGET_TARGETNAME}> DESTINATION bin/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT} CONFIGURATIONS Debug) + ENDIF(MSVC AND DYNAMIC_OPENSCENEGRAPH) + ELSE(WIN32) + INSTALL(TARGETS ${TARGET_TARGETNAME} diff --git a/vcpkg/ports/osg/portfile.cmake b/vcpkg/ports/osg/portfile.cmake new file mode 100644 index 0000000..3d6cda4 --- /dev/null +++ b/vcpkg/ports/osg/portfile.cmake @@ -0,0 +1,188 @@ +set(OSG_VER 3.6.5) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO openscenegraph/OpenSceneGraph + REF OpenSceneGraph-${OSG_VER} + SHA512 7002fa30a3bcf6551d2e1050b4ca75a3736013fd190e4f50953717406864da1952deb09f530bc8c5ddf6e4b90204baec7dbc283f497829846d46d561f66feb4b + HEAD_REF master + PATCHES + link-libraries.patch + collada.patch + fix-sdl.patch + fix-nvtt-squish.patch + plugin-pdb-install.patch + osgdb_zip_nozip.patch # This is fix symbol clashes with other libs when built in static-lib mode + openexr3.patch + unofficial-export.patch + fix-min-max-macro.patch + fix-error-c3861.patch + android.diff +) + +file(REMOVE + "${SOURCE_PATH}/CMakeModules/FindFontconfig.cmake" + "${SOURCE_PATH}/CMakeModules/FindFreetype.cmake" + "${SOURCE_PATH}/CMakeModules/Findilmbase.cmake" + "${SOURCE_PATH}/CMakeModules/FindOpenEXR.cmake" + "${SOURCE_PATH}/CMakeModules/FindSDL2.cmake" +) + +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" OSG_DYNAMIC) + +set(OPTIONS "") +if(VCPKG_TARGET_IS_WINDOWS) + list(APPEND OPTIONS -DOSG_USE_UTF8_FILENAME=ON) +endif() +# Skip try_run checks +if(VCPKG_TARGET_IS_MINGW) + list(APPEND OPTIONS -D_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED=0 -D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS=1) +elseif(VCPKG_TARGET_IS_WINDOWS) + list(APPEND OPTIONS -D_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED=1 -D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS=0) +elseif(VCPKG_TARGET_IS_IOS) + # handled by osg +elseif(VCPKG_CROSSCOMPILING) + message(WARNING "Atomics detection may fail for cross builds. You can set osg cmake variables in a custom triplet.") +endif() + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + tools BUILD_OSG_APPLICATIONS + examples BUILD_OSG_EXAMPLES + plugins BUILD_OSG_PLUGINS_BY_DEFAULT + plugins CMAKE_REQUIRE_FIND_PACKAGE_CURL + plugins CMAKE_REQUIRE_FIND_PACKAGE_Jasper + plugins CMAKE_REQUIRE_FIND_PACKAGE_GDAL + plugins CMAKE_REQUIRE_FIND_PACKAGE_GTA + packages BUILD_OSG_PACKAGES + docs BUILD_DOCUMENTATION + docs BUILD_REF_DOCS_SEARCHENGINE + docs BUILD_REF_DOCS_TAGFILE + fontconfig OSG_TEXT_USE_FONTCONFIG + freetype BUILD_OSG_PLUGIN_FREETYPE + freetype CMAKE_REQUIRE_FIND_PACKAGE_Freetype + collada BUILD_OSG_PLUGIN_DAE + collada CMAKE_REQUIRE_FIND_PACKAGE_COLLADA + nvtt BUILD_OSG_PLUGIN_NVTT + nvtt CMAKE_REQUIRE_FIND_PACKAGE_NVTT + openexr BUILD_OSG_PLUGIN_EXR + openexr CMAKE_REQUIRE_FIND_PACKAGE_OpenEXR + sdl1 BUILD_OSG_PLUGIN_SDL + sdl1 VCPKG_LOCK_FIND_PACKAGE_SDL +) + +# The package osg can be configured to use different OpenGL profiles via a custom triplet file: +# Possible values are GLCORE, GL2, GL3, GLES1, GLES2, GLES3, and GLES2+GLES3 +if(NOT DEFINED osg_OPENGL_PROFILE) + set(osg_OPENGL_PROFILE "GL2") + if(VCPKG_TARGET_IS_ANDROID) + set(osg_OPENGL_PROFILE "GLES2") + endif() +endif() + +# Plugin control variables are used only if prerequisites are satisfied. +set(plugin_vars "") +file(STRINGS "${SOURCE_PATH}/src/osgPlugins/CMakeLists.txt" plugin_lines REGEX "ADD_PLUGIN_DIRECTORY") +foreach(line IN LISTS plugin_lines) + if(NOT line MATCHES "ADD_PLUGIN_DIRECTORY\\(([^)]*)" OR NOT EXISTS "${SOURCE_PATH}/src/osgPlugins/${CMAKE_MATCH_1}/CMakeLists.txt") + continue() + endif() + string(TOUPPER "${CMAKE_MATCH_1}" plugin_upper) + list(APPEND plugin_vars "BUILD_OSG_PLUGIN_${plugin_upper}") +endforeach() + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${FEATURE_OPTIONS} + -DBUILD_DASHBOARD_REPORTS=OFF + -DCMAKE_CXX_STANDARD=11 + -DCMAKE_POLICY_DEFAULT_CMP0057=NEW + -DDYNAMIC_OPENSCENEGRAPH=${OSG_DYNAMIC} + -DDYNAMIC_OPENTHREADS=${OSG_DYNAMIC} + -DOPENGL_PROFILE=${osg_OPENGL_PROFILE} + -DOSG_MSVC_VERSIONED_DLL=OFF + -DOSG_DETERMINE_WIN_VERSION=OFF + -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON + -DUSE_3RDPARTY_BIN=OFF + # Plugins + -DBUILD_OSG_PLUGIN_DICOM=OFF + -DBUILD_OSG_PLUGIN_DIRECTSHOW=OFF + -DBUILD_OSG_PLUGIN_FBX=OFF + -DBUILD_OSG_PLUGIN_INVENTOR=OFF + -DBUILD_OSG_PLUGIN_LAS=OFF + -DBUILD_OSG_PLUGIN_LUA=OFF + -DBUILD_OSG_PLUGIN_OPENCASCADE=OFF + -DBUILD_OSG_PLUGIN_QTKIT=OFF + -DBUILD_OSG_PLUGIN_RESTHTTPDEVICE=OFF + -DBUILD_OSG_PLUGIN_SVG=OFF + -DBUILD_OSG_PLUGIN_VNC=OFF + -DBUILD_OSG_PLUGIN_ZEROCONFDEVICE=OFF + -DCMAKE_DISABLE_FIND_PACKAGE_FFmpeg=ON + -DCMAKE_DISABLE_FIND_PACKAGE_DCMTK=ON + -DCMAKE_DISABLE_FIND_PACKAGE_GStreamer=ON + -DCMAKE_DISABLE_FIND_PACKAGE_GLIB=ON + -DCMAKE_DISABLE_FIND_PACKAGE_Inventor=ON + ${OPTIONS} + OPTIONS_DEBUG + -DBUILD_OSG_APPLICATIONS=OFF + -DBUILD_OSG_EXAMPLES=OFF + -DBUILD_DOCUMENTATION=OFF + MAYBE_UNUSED_VARIABLES + BUILD_REF_DOCS_SEARCHENGINE + BUILD_REF_DOCS_TAGFILE + OSG_DETERMINE_WIN_VERSION + USE_3RDPARTY_BIN + ${plugin_vars} +) +vcpkg_cmake_install() +vcpkg_copy_pdbs() +configure_file("${CMAKE_CURRENT_LIST_DIR}/unofficial-osg-config.cmake" "${CURRENT_PACKAGES_DIR}/share/unofficial-osg/unofficial-osg-config.cmake" @ONLY) +vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-osg) + +# Add debug folder prefix for plugin targets. vcpkg_cmake_config_fixup only handles this for targets in bin/ and lib/. +set(osg_plugins_debug_targets "${CURRENT_PACKAGES_DIR}/share/unofficial-osg/osg-plugins-debug.cmake") +if(EXISTS "${osg_plugins_debug_targets}") + file(READ "${osg_plugins_debug_targets}" contents) + string(REPLACE "${CURRENT_INSTALLED_DIR}" "\${_IMPORT_PREFIX}" contents "${contents}") + string(REPLACE "\${_IMPORT_PREFIX}/plugins" "\${_IMPORT_PREFIX}/debug/plugins" contents "${contents}") + file(WRITE "${osg_plugins_debug_targets}" "${contents}") +endif() + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(APPEND "${CURRENT_PACKAGES_DIR}/include/osg/Config" "#ifndef OSG_LIBRARY_STATIC\n#define OSG_LIBRARY_STATIC 1\n#endif\n") +endif() + +set(osg_plugins_subdir "osgPlugins-${OSG_VER}") +vcpkg_list(SET tools) +if("examples" IN_LIST FEATURES AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") + list(APPEND tools osg2cpp osgshaderpipeline) +endif() +if("tools" IN_LIST FEATURES) + list(APPEND tools osgversion present3D) + if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") + list(APPEND tools osgviewer osgarchive osgconv osgfilecache) + endif() +endif() +if(tools) + set(osg_plugin_pattern "${VCPKG_TARGET_SHARED_LIBRARY_PREFIX}osgdb*${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX}") + file(GLOB osg_plugins "${CURRENT_PACKAGES_DIR}/plugins/${osg_plugins_subdir}/${osg_plugin_pattern}") + if(NOT osg_plugins STREQUAL "") + file(INSTALL ${osg_plugins} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/${osg_plugins_subdir}") + endif() + vcpkg_copy_tools(TOOL_NAMES ${tools} AUTO_CLEAN) +endif() + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/share" +) + +vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/openscenegraph.pc" "\\\n" " ") +if(NOT VCPKG_BUILD_TYPE) + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/openscenegraph.pc" "\\\n" " ") +endif() +vcpkg_fixup_pkgconfig() + +file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") diff --git a/vcpkg/ports/osg/unofficial-export.patch b/vcpkg/ports/osg/unofficial-export.patch new file mode 100644 index 0000000..2142b11 --- /dev/null +++ b/vcpkg/ports/osg/unofficial-export.patch @@ -0,0 +1,76 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c975d78..cc53332 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1374,3 +1374,6 @@ ADD_CUSTOM_TARGET(uninstall + # + include(FeatureSummary) + feature_summary(WHAT ALL) ++ ++INSTALL(EXPORT osg-targets NAMESPACE unofficial::osg:: DESTINATION share/unofficial-osg) ++INSTALL(EXPORT osg-plugins NAMESPACE unofficial::osg:: DESTINATION share/unofficial-osg) +diff --git a/CMakeModules/ModuleInstall.cmake b/CMakeModules/ModuleInstall.cmake +index f6714c5..d58f6fd 100644 +--- a/CMakeModules/ModuleInstall.cmake ++++ b/CMakeModules/ModuleInstall.cmake +@@ -27,6 +27,7 @@ ENDIF() + + INSTALL( + TARGETS ${LIB_NAME} ++ EXPORT osg-targets + RUNTIME DESTINATION ${INSTALL_BINDIR} COMPONENT libopenscenegraph + LIBRARY DESTINATION ${INSTALL_LIBDIR} COMPONENT libopenscenegraph + ARCHIVE DESTINATION ${INSTALL_ARCHIVEDIR} COMPONENT libopenscenegraph-dev +diff --git a/CMakeModules/OsgMacroUtils.cmake b/CMakeModules/OsgMacroUtils.cmake +index dcc1fe37d..76429b85a 100644 +--- a/CMakeModules/OsgMacroUtils.cmake ++++ b/CMakeModules/OsgMacroUtils.cmake +@@ -345,18 +350,20 @@ MACRO(SETUP_PLUGIN PLUGIN_NAME) + #the installation path are differentiated for win32 that install in bib versus other architecture that install in lib${LIB_POSTFIX}/${OSG_PLUGINS} + IF(WIN32) + INSTALL(TARGETS ${TARGET_TARGETNAME} ++ EXPORT osg-plugins + RUNTIME DESTINATION bin COMPONENT ${PACKAGE_COMPONENT} + ARCHIVE DESTINATION lib/${OSG_PLUGINS} COMPONENT libopenscenegraph-dev +- LIBRARY DESTINATION bin/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT}) ++ LIBRARY DESTINATION plugins/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT}) + IF(MSVC AND DYNAMIC_OPENSCENEGRAPH) +- INSTALL(FILES ${OUTPUT_BINDIR}/${OSG_PLUGINS}/${TARGET_TARGETNAME}${CMAKE_RELWITHDEBINFO_POSTFIX}.pdb DESTINATION bin/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT} CONFIGURATIONS RelWithDebInfo) +- INSTALL(FILES $<TARGET_PDB_FILE:${TARGET_TARGETNAME}> DESTINATION bin/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT} CONFIGURATIONS Debug) ++ INSTALL(FILES ${OUTPUT_BINDIR}/${OSG_PLUGINS}/${TARGET_TARGETNAME}${CMAKE_RELWITHDEBINFO_POSTFIX}.pdb DESTINATION plugins/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT} CONFIGURATIONS RelWithDebInfo) ++ INSTALL(FILES $<TARGET_PDB_FILE:${TARGET_TARGETNAME}> DESTINATION plugins/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT} CONFIGURATIONS Debug) + ENDIF(MSVC AND DYNAMIC_OPENSCENEGRAPH) + ELSE(WIN32) + INSTALL(TARGETS ${TARGET_TARGETNAME} ++ EXPORT osg-plugins + RUNTIME DESTINATION bin COMPONENT ${PACKAGE_COMPONENT} + ARCHIVE DESTINATION lib${LIB_POSTFIX}/${OSG_PLUGINS} COMPONENT libopenscenegraph-dev +- LIBRARY DESTINATION lib${LIB_POSTFIX}/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT}) ++ LIBRARY DESTINATION plugins${LIB_POSTFIX}/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT}) + ENDIF(WIN32) + ENDMACRO(SETUP_PLUGIN) + +diff --git a/src/OpenThreads/pthreads/CMakeLists.txt b/src/OpenThreads/pthreads/CMakeLists.txt +index e18969c..5a8ad62 100644 +--- a/src/OpenThreads/pthreads/CMakeLists.txt ++++ b/src/OpenThreads/pthreads/CMakeLists.txt +@@ -157,6 +157,7 @@ ELSE() + + INSTALL( + TARGETS OpenThreads ++ EXPORT osg-targets + ARCHIVE DESTINATION lib${LIB_POSTFIX} COMPONENT libopenthreads-dev + LIBRARY DESTINATION lib${LIB_POSTFIX} COMPONENT libopenthreads + RUNTIME DESTINATION bin COMPONENT libopenthreads +diff --git a/src/OpenThreads/win32/CMakeLists.txt b/src/OpenThreads/win32/CMakeLists.txt +index 0e816f7..0c083fd 100644 +--- a/src/OpenThreads/win32/CMakeLists.txt ++++ b/src/OpenThreads/win32/CMakeLists.txt +@@ -45,6 +45,7 @@ ENDIF() + + INSTALL( + TARGETS OpenThreads ++ EXPORT osg-targets + ARCHIVE DESTINATION lib COMPONENT libopenthreads-dev + LIBRARY DESTINATION lib COMPONENT libopenthreads + RUNTIME DESTINATION bin COMPONENT libopenthreads diff --git a/vcpkg/ports/osg/unofficial-osg-config.cmake b/vcpkg/ports/osg/unofficial-osg-config.cmake new file mode 100644 index 0000000..512253b --- /dev/null +++ b/vcpkg/ports/osg/unofficial-osg-config.cmake @@ -0,0 +1,23 @@ +cmake_policy(PUSH) +cmake_policy(SET CMP0012 NEW) +cmake_policy(SET CMP0054 NEW) +cmake_policy(SET CMP0057 NEW) +include("${CMAKE_CURRENT_LIST_DIR}/osg-targets.cmake") +include(CMakeFindDependencyMacro) +if("@OSG_TEXT_USE_FONTCONFIG@") + find_dependency(Fontconfig) # CMake 3.14 +endif() +if("plugins" IN_LIST ${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS) + include("${CMAKE_CURRENT_LIST_DIR}/osg-plugins.cmake") + if(TARGET unofficial::osg::osgdb_curl) + find_dependency(CURL) + endif() + if(TARGET unofficial::osg::osgdb_exr) + find_dependency(OpenEXR CONFIG) + endif() + if(TARGET unofficial::osg::osgdb_gdal OR TARGET unofficial::osg::osgdb_ogr) + find_dependency(GDAL) + endif() +endif() +set(${CMAKE_FIND_PACKAGE_NAME}_VERSION "@OSG_VER@") +cmake_policy(POP) diff --git a/vcpkg/ports/osg/usage b/vcpkg/ports/osg/usage new file mode 100644 index 0000000..7b7388f --- /dev/null +++ b/vcpkg/ports/osg/usage @@ -0,0 +1,5 @@ +The package osg can be configured to use different OpenGL profiles via a custom triplet file.
+Possible values are GLCORE, GL2, GL3, GLES1, GLES2, GLES3 and GLES2+GLES3.
+The default value is GL2. If you want use other profiles, please add the following
+code to a custom triplet file.
+set(osg_OPENGL_PROFILE GL3)
diff --git a/vcpkg/ports/osg/vcpkg.json b/vcpkg/ports/osg/vcpkg.json new file mode 100644 index 0000000..a71d95a --- /dev/null +++ b/vcpkg/ports/osg/vcpkg.json @@ -0,0 +1,179 @@ +{ + "name": "osg", + "version": "3.6.5", + "port-version": 27, + "description": "The OpenSceneGraph is an open source high performance 3D graphics toolkit.", + "homepage": "https://www.openscenegraph.com/", + "license": null, + "supports": "!uwp", + "dependencies": [ + { + "name": "expat", + "platform": "windows" + }, + "opengl-registry", + { + "name": "openimageio", + "default-features": false, + "platform": "osx" + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zlib" + ], + "default-features": [ + { + "name": "fontconfig", + "platform": "!android & !ios & !uwp" + }, + "freetype", + { + "name": "nvtt", + "platform": "x64 & (linux | osx | windows) & !uwp" + }, + { + "name": "openexr", + "platform": "!uwp" + }, + "plugins" + ], + "features": { + "collada": { + "description": "Support for Collada (.dae) files", + "dependencies": [ + "collada-dom" + ] + }, + "docs": { + "description": "Build OpenSceneGraph reference documentation using doxygen (use: make doc_openscenegraph doc_openthreads" + }, + "examples": { + "description": "Enable to build OSG Examples", + "supports": "!android", + "dependencies": [ + { + "name": "libiconv", + "platform": "windows" + }, + { + "name": "osg", + "default-features": false, + "features": [ + "freetype", + "plugins" + ] + }, + "sdl2" + ] + }, + "fontconfig": { + "description": "Enable Fontconfig support for osgText", + "dependencies": [ + "fontconfig", + { + "name": "osg", + "default-features": false, + "features": [ + "freetype" + ] + } + ] + }, + "freetype": { + "description": "Enable Freetype support", + "dependencies": [ + { + "name": "freetype", + "default-features": false + } + ] + }, + "nvtt": { + "description": "Build texture processing tools plugin", + "dependencies": [ + "nvtt" + ] + }, + "openexr": { + "description": "Build the exr plugin", + "dependencies": [ + "openexr" + ] + }, + "packages": { + "description": "Set to ON to generate CPack configuration files and packaging targets" + }, + "plugins": { + "description": "Build most OSG plugins", + "dependencies": [ + { + "name": "curl", + "default-features": false + }, + { + "name": "gdal", + "default-features": false + }, + { + "name": "giflib", + "platform": "windows" + }, + { + "name": "jasper", + "default-features": false + }, + "libgta", + { + "name": "libiconv", + "platform": "windows" + }, + "libjpeg-turbo", + "libpng", + { + "name": "libxml2", + "platform": "windows" + }, + { + "name": "tiff", + "default-features": false + } + ] + }, + "sdl1": { + "description": "Build SDL 1 plugin, and enable SDL 1 app features", + "dependencies": [ + "sdl1" + ] + }, + "tools": { + "description": "Enable to build OSG Applications (e.g. osgviewer)", + "supports": "!android", + "dependencies": [ + { + "name": "curl", + "default-features": false + }, + { + "name": "libiconv", + "platform": "windows" + }, + "libjpeg-turbo", + "libpng", + { + "name": "osg", + "default-features": false, + "features": [ + "freetype", + "plugins" + ] + } + ] + } + } +} |