math/vtk9: Add workaround for a regression in VTK that requires qmake and moc

find_package(VTK QUIET COMPONENTS GUISupportQt) erroneously
requires qmake and moc to be present.

misc/visp regressed for this reason after VTK was updated to 9.2.2
even though VTK is only a proxy dependency for visp.

Reported by:	fallout
This commit is contained in:
Yuri Victorovich 2022-11-02 06:58:49 -08:00
parent 9959a6a4cd
commit 2edab7ca82

View File

@ -1,5 +1,6 @@
PORTNAME= vtk
DISTVERSION= 9.2.2
PORTREVISION= 1
CATEGORIES= math graphics
MASTER_SITES= https://vtk.org/files/release/${VTK_SHORT_VER}/
PKGNAMESUFFIX= 9
@ -72,7 +73,7 @@ PYTHON_CMAKE_ON= -DVTK_PYTHON_VERSION=${PYTHON_MAJOR_VER} -DPython3_EXECUTABLE=$
PYTHON_VARS= SUB_FILES=PKG-INFO SUB_LIST=PORTVERSION=${PORTVERSION}
QT5_USES= qt:5
QT5_USE= QT=core,declarative,gui,network,opengl,sql,uiplugin,widgets,x11extras,qmake:build,buildtools:build
QT5_USE= QT=core,declarative,gui,network,opengl,sql,uiplugin,widgets,x11extras,qmake,buildtools # qmake and buildtools should be with :build, but see https://gitlab.kitware.com/vtk/vtk/-/issues/18705
QT5_CMAKE_ON= -DVTK_GROUP_ENABLE_Qt:STRING=YES \
-DCMAKE_PREFIX_PATH:STRING=${LOCALBASE}/lib/qt5