diff options
author | Christoph Willing <chris.willing@linux.com> | 2018-02-08 16:56:05 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-02-10 08:09:33 +0700 |
commit | 9d3671ce67be5f0178fcfbea377fb4c83cfefca2 (patch) | |
tree | 8bd379e8d5c9baae562abfe2de079ef8307a6114 /libraries/opencv-legacy/patch_vtk7.diff | |
parent | 7a995de505bfbb5ecdfbe82007b1d14924e8cde0 (diff) | |
download | slackbuilds-9d3671ce67be5f0178fcfbea377fb4c83cfefca2.tar.gz |
libraries/opencv-legacy: Added (Open Source Computer Vision).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/opencv-legacy/patch_vtk7.diff')
-rw-r--r-- | libraries/opencv-legacy/patch_vtk7.diff | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libraries/opencv-legacy/patch_vtk7.diff b/libraries/opencv-legacy/patch_vtk7.diff new file mode 100644 index 0000000000..a34d3458b2 --- /dev/null +++ b/libraries/opencv-legacy/patch_vtk7.diff @@ -0,0 +1,21 @@ +# Patch for VTK-7.x derived by diff from upstream: +# https://raw.githubusercontent.com/opencv/opencv/master/cmake/OpenCVDetectVTK.cmake +# +--- cmake/OpenCVDetectVTK.cmake.orig 2015-12-19 01:02:16.000000000 +1000 ++++ cmake/OpenCVDetectVTK.cmake 2016-11-19 15:46:10.468197286 +1000 +@@ -3,7 +3,14 @@ + endif() + + # VTK 6.x components +-find_package(VTK QUIET COMPONENTS vtkRenderingOpenGL vtkInteractionStyle vtkRenderingLOD vtkIOPLY vtkFiltersTexture vtkRenderingFreeType vtkIOExport NO_MODULE) ++find_package(VTK QUIET COMPONENTS vtkInteractionStyle vtkRenderingLOD vtkIOPLY vtkFiltersTexture vtkRenderingFreeType vtkIOExport NO_MODULE) ++IF(VTK_FOUND) ++ IF(VTK_RENDERING_BACKEND) #in vtk 7, the rendering backend is exported as a var. ++ find_package(VTK QUIET COMPONENTS vtkRendering${VTK_RENDERING_BACKEND} vtkInteractionStyle vtkRenderingLOD vtkIOPLY vtkFiltersTexture vtkRenderingFreeType vtkIOExport vtkIOGeometry NO_MODULE) ++ ELSE(VTK_RENDERING_BACKEND) ++ find_package(VTK QUIET COMPONENTS vtkRenderingOpenGL vtkInteractionStyle vtkRenderingLOD vtkIOPLY vtkFiltersTexture vtkRenderingFreeType vtkIOExport NO_MODULE) ++ ENDIF(VTK_RENDERING_BACKEND) ++ENDIF(VTK_FOUND) + + # VTK 5.x components + if(NOT VTK_FOUND) |