git: b5ce2eb869cf - main - graphics/opencv: fix VTK option

From: Tobias C. Berner <tcberner_at_FreeBSD.org>
Date: Fri, 28 Jan 2022 11:42:25 UTC
The branch main has been updated by tcberner:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b5ce2eb869cf89fe02e6954ddd72e1127e7bdf1f

commit b5ce2eb869cf89fe02e6954ddd72e1127e7bdf1f
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2022-01-28 11:40:44 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-01-28 11:42:16 +0000

    graphics/opencv: fix VTK option
    
    As VTK is built with Qt5 support, bring in the required
    dependencies for the build system.
    
    Submitted by:   Oleg Sidorkin <osidorkin@gmail.com>
    PR:             261519
---
 graphics/opencv/Makefile  | 2 ++
 graphics/opencv/pkg-plist | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/graphics/opencv/Makefile b/graphics/opencv/Makefile
index 2b1b6b5ea444..180d1a26afc7 100644
--- a/graphics/opencv/Makefile
+++ b/graphics/opencv/Makefile
@@ -120,6 +120,8 @@ GTK3_CMAKE_BOOL=	WITH_GTK
 VTK_DESC=		Include VTK library support (build opencv_viz module)
 VTK_CMAKE_BOOL=		WITH_VTK
 VTK_LIB_DEPENDS=	libvtkCommonCore-9.1.so:math/vtk9
+VTK_USES=		qt:5
+VTK_USE=		QT=buildtools_build,qmake_build
 ###
 
 # IMAGE group options (GPHOTO2 JPEG OPENEXR PNG TIFF)
diff --git a/graphics/opencv/pkg-plist b/graphics/opencv/pkg-plist
index 68706cd34d54..1b37924e900a 100644
--- a/graphics/opencv/pkg-plist
+++ b/graphics/opencv/pkg-plist
@@ -719,6 +719,9 @@ lib/libopencv_videoio.so.405
 lib/libopencv_videostab.so
 lib/libopencv_videostab.so.%%SHLIB_VER%%
 lib/libopencv_videostab.so.405
+%%VTK%%lib/libopencv_viz.so
+%%VTK%%lib/libopencv_viz.so.%%SHLIB_VER%%
+%%VTK%%lib/libopencv_viz.so.405
 %%PROTOBUF%%lib/libopencv_wechat_qrcode.so
 %%PROTOBUF%%lib/libopencv_wechat_qrcode.so.%%SHLIB_VER%%
 %%PROTOBUF%%lib/libopencv_wechat_qrcode.so.405