Skip to content

Commit

Permalink
math/vtk9: Add workaround for a regression in VTK that requires qmake…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
yurivict committed Nov 2, 2022
1 parent 9959a6a commit 2edab7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion math/vtk9/Makefile
@@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 2edab7c

Please sign in to comment.