summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2021-07-08 21:27:39 +0000
committermarkd <markd@pkgsrc.org>2021-07-08 21:27:39 +0000
commit6f874c60fee9b935ef8a5ca496bafea0b99b254b (patch)
tree08620a76d4e06dcf3b275e7443e7102ab0e3d8cb /graphics
parent02a9cc73b1cef6e91d9f1605d2778bca395373e7 (diff)
downloadpkgsrc-6f874c60fee9b935ef8a5ca496bafea0b99b254b.tar.gz
opencv: build with openexr3
Diffstat (limited to 'graphics')
-rw-r--r--graphics/opencv/Makefile4
-rw-r--r--graphics/opencv/distinfo4
-rw-r--r--graphics/opencv/patches/patch-cmake_OpenCVFindOpenEXR.cmake21
-rw-r--r--graphics/opencv/patches/patch-modules_imgcodecs_src_grfmt__exr.cpp14
4 files changed, 40 insertions, 3 deletions
diff --git a/graphics/opencv/Makefile b/graphics/opencv/Makefile
index 5e4c7f0f530..5ca1e2f00dc 100644
--- a/graphics/opencv/Makefile
+++ b/graphics/opencv/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.96 2020/12/04 20:45:23 nia Exp $
+# $NetBSD: Makefile,v 1.97 2021/07/08 21:27:39 markd Exp $
.include "Makefile.common"
DISTNAME= opencv-${OPENCV_VERSION}
-PKGREVISION= 7
+PKGREVISION= 8
MAINTAINER= anthony.mallet@laas.fr
COMMENT= Library for computer vision problems
diff --git a/graphics/opencv/distinfo b/graphics/opencv/distinfo
index 071675bff29..4c056708474 100644
--- a/graphics/opencv/distinfo
+++ b/graphics/opencv/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.49 2020/09/09 11:50:50 nia Exp $
+$NetBSD: distinfo,v 1.50 2021/07/08 21:27:39 markd Exp $
SHA1 (opencv-3.4.9.tar.gz) = bcd0fafc9f1a240d92af9007c9f8098da601d7a5
RMD160 (opencv-3.4.9.tar.gz) = 2ab36f669a70c876e739736e6b9daacabc5933fe
@@ -10,6 +10,7 @@ SHA1 (patch-CMakeLists.txt) = 029368ab14163640d1651f572810eb8eb0c043d9
SHA1 (patch-apps_visualisation_opencv__visualisation.cpp) = b62c32172049c6369fd62a5c72325eef995fd1d0
SHA1 (patch-cmake_OpenCVDetectCXXCompiler.cmake) = ac7deccedcc5071d3785c7827a06419713ba0529
SHA1 (patch-cmake_OpenCVDetectPython.cmake) = 4f3bfe574edf083ebc7e78d347355c58461b2c6b
+SHA1 (patch-cmake_OpenCVFindOpenEXR.cmake) = 202d0fdc84464d563dead955d5299b42098d52a6
SHA1 (patch-modules_core_include_opencv2_core_bindings__utils.hpp) = 9018a6124fb840be5213450b1bbe353078b37029
SHA1 (patch-modules_core_include_opencv2_core_opencl_opencl__info.hpp) = f0cff24b2a760086f54ab66536bdfee4f4f1a6d7
SHA1 (patch-modules_core_include_opencv2_core_types_c.h) = 75444e65677be99af8167f9060419d7970a7adaa
@@ -21,6 +22,7 @@ SHA1 (patch-modules_dnn_src_tensorflow_tf__importer.cpp) = 9b3628d91c2217c4b1ed7
SHA1 (patch-modules_dnn_src_torch_torch__importer.cpp) = 814a3cc929569b691d01e34252dbd185f31161c2
SHA1 (patch-modules_dnn_test__precomp.hpp) = 9bf15d32394f36b92e5fc5d57fd576b3860233ae
SHA1 (patch-modules_flann_include_opencv2_flann_defines.h) = ab848e67c4e03219670598ac2d21071a617a5c33
+SHA1 (patch-modules_imgcodecs_src_grfmt__exr.cpp) = 1a33d1b14e837b973b3ac2465d0b20fd6501e9bf
SHA1 (patch-modules_imgproc_src_resize.cpp) = e842d5960c4c00162a34f46cb45cf69d0e9f21ce
SHA1 (patch-modules_ts_src_ts.cpp) = b9a3992014b02dbd89d46375a2476385e91dc24c
SHA1 (patch-modules_videoio_src_cap__v4l.cpp) = 275e72e3c146cf15845fbb7272b28e21f51d6fb4
diff --git a/graphics/opencv/patches/patch-cmake_OpenCVFindOpenEXR.cmake b/graphics/opencv/patches/patch-cmake_OpenCVFindOpenEXR.cmake
new file mode 100644
index 00000000000..6851a1e3988
--- /dev/null
+++ b/graphics/opencv/patches/patch-cmake_OpenCVFindOpenEXR.cmake
@@ -0,0 +1,21 @@
+$NetBSD: patch-cmake_OpenCVFindOpenEXR.cmake,v 1.1 2021/07/08 21:27:39 markd Exp $
+
+openexr3
+
+--- cmake/OpenCVFindOpenEXR.cmake.orig 2019-12-19 15:16:47.000000000 +0000
++++ cmake/OpenCVFindOpenEXR.cmake
+@@ -9,6 +9,14 @@
+ # OPENEXR_LIBRARIES = libraries that are needed to use OpenEXR.
+ #
+
++find_package(OpenEXR 3.0 CONFIG QUIET)
++if(TARGET OpenEXR::OpenEXR)
++ SET(OPENEXR_FOUND TRUE)
++ SET(OPENEXR_LIBRARIES OpenEXR::OpenEXR)
++ SET(OPENEXR_VERSION ${OpenEXR_VERSION})
++ return()
++endif()
++
+ SET(OPENEXR_LIBRARIES "")
+ SET(OPENEXR_LIBSEARCH_SUFFIXES "")
+ file(TO_CMAKE_PATH "$ENV{ProgramFiles}" ProgramFiles_ENV_PATH)
diff --git a/graphics/opencv/patches/patch-modules_imgcodecs_src_grfmt__exr.cpp b/graphics/opencv/patches/patch-modules_imgcodecs_src_grfmt__exr.cpp
new file mode 100644
index 00000000000..29ec9639956
--- /dev/null
+++ b/graphics/opencv/patches/patch-modules_imgcodecs_src_grfmt__exr.cpp
@@ -0,0 +1,14 @@
+$NetBSD: patch-modules_imgcodecs_src_grfmt__exr.cpp,v 1.1 2021/07/08 21:27:39 markd Exp $
+
+openexr3
+
+--- modules/imgcodecs/src/grfmt_exr.cpp.orig 2019-12-19 15:16:47.000000000 +0000
++++ modules/imgcodecs/src/grfmt_exr.cpp
+@@ -56,6 +56,7 @@
+ #include <iostream>
+ #include <stdexcept>
+
++#include <ImfFrameBuffer.h>
+ #include <ImfHeader.h>
+ #include <ImfInputFile.h>
+ #include <ImfOutputFile.h>