diff --git a/ports/openimageio/fix-dependency.patch b/ports/openimageio/fix-dependency.patch index abbc89114c7..c4df2184e60 100644 --- a/ports/openimageio/fix-dependency.patch +++ b/ports/openimageio/fix-dependency.patch @@ -1,5 +1,5 @@ diff --git a/src/cmake/externalpackages.cmake b/src/cmake/externalpackages.cmake -index 2f4f7ce..6419c79 100644 +index 2f4f7ce..7275804 100644 --- a/src/cmake/externalpackages.cmake +++ b/src/cmake/externalpackages.cmake @@ -169,10 +169,17 @@ checked_find_package (PNG REQUIRED) @@ -31,7 +31,12 @@ index 2f4f7ce..6419c79 100644 DEFINITIONS -DUSE_OPENCV=1) # Intel TBB -@@ -237,8 +244,12 @@ checked_find_package (OpenJpeg) +@@ -233,12 +240,16 @@ checked_find_package (Field3D + checked_find_package (GIF 4) + checked_find_package (Libheif 1.3) # For HEIF/HEIC format + checked_find_package (LibRaw) +-checked_find_package (OpenJpeg) ++checked_find_package (OpenJPEG CONFIG) checked_find_package (OpenVDB 5.0 DEPS TBB DEFINITIONS -DUSE_OPENVDB=1) @@ -56,6 +61,19 @@ index 2f4f7ce..6419c79 100644 if (USE_QT AND NOT Qt5_FOUND AND APPLE) message (STATUS " If you think you installed qt5 with Homebrew and it still doesn't work,") message (STATUS " try: export PATH=/usr/local/opt/qt5/bin:$PATH") +diff --git a/src/jpeg2000.imageio/CMakeLists.txt b/src/jpeg2000.imageio/CMakeLists.txt +index 7bc6adb..0ac8937 100644 +--- a/src/jpeg2000.imageio/CMakeLists.txt ++++ b/src/jpeg2000.imageio/CMakeLists.txt +@@ -3,7 +3,7 @@ + # https://github.com/OpenImageIO/oiio/blob/master/LICENSE.md + + if (OPENJPEG_FOUND) +- if (${OPENJPEG_VERSION} VERSION_LESS 2.0) ++ if (0) + # Old OpenJpeg 1.5. Remove this eventually. + # + # For reasons I don't understand, OpenJPEG 1.5 fails imageinout_test diff --git a/src/raw.imageio/CMakeLists.txt b/src/raw.imageio/CMakeLists.txt index 81a0ff5..23326a0 100644 --- a/src/raw.imageio/CMakeLists.txt