diff --git a/ports/osg/CONTROL b/ports/osg/CONTROL index f5690f9bc798c3..690e79fe30745f 100644 --- a/ports/osg/CONTROL +++ b/ports/osg/CONTROL @@ -1,5 +1,5 @@ Source: osg -Version: 3.6.3-1 +Version: 3.6.3-2 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-link-error-caused-by-static-tiff.patch b/ports/osg/fix-link-error-caused-by-static-tiff.patch new file mode 100644 index 00000000000000..a80113c9ee0d08 --- /dev/null +++ b/ports/osg/fix-link-error-caused-by-static-tiff.patch @@ -0,0 +1,14 @@ +diff --git a/src/osgPlugins/tiff/CMakeLists.txt b/src/osgPlugins/tiff/CMakeLists.txt +index fc945d6..d7b7027 100644 +--- a/src/osgPlugins/tiff/CMakeLists.txt ++++ b/src/osgPlugins/tiff/CMakeLists.txt +@@ -2,7 +2,8 @@ INCLUDE_DIRECTORIES( ${TIFF_INCLUDE_DIR} ) + + SET(TARGET_SRC ReaderWriterTIFF.cpp ) + +-SET(TARGET_LIBRARIES_VARS TIFF_LIBRARY) ++# using TIFF_LIBRARIES instead of TIFF_LIBRARY to link dependency libs ++SET(TARGET_LIBRARIES_VARS TIFF_LIBRARIES) + + #### end var setup ### + SETUP_PLUGIN(tiff) diff --git a/ports/osg/portfile.cmake b/ports/osg/portfile.cmake index cb759ca1aa0b71..260725f4bb6bff 100644 --- a/ports/osg/portfile.cmake +++ b/ports/osg/portfile.cmake @@ -10,6 +10,7 @@ vcpkg_from_github( HEAD_REF master PATCHES collada.patch + fix-link-error-caused-by-static-tiff.patch ) if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")