From e36f3bfa6825095089f045fae182e3f405790755 Mon Sep 17 00:00:00 2001 From: thor Date: Sat, 8 May 2021 13:55:19 +0000 Subject: graphics/vtk: add Qt support (on by default) It is an option because VTK is usable for some without it, but it is strongly recommened to keep it on, as it is common for interactive software seems to use VTK via Qt. --- graphics/vtk/Makefile | 5 ++++- graphics/vtk/PLIST | 46 +++++++++++++++++++++++++++++++++++++++++++++- graphics/vtk/options.mk | 19 +++++++++++++++++++ 3 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 graphics/vtk/options.mk (limited to 'graphics/vtk') diff --git a/graphics/vtk/Makefile b/graphics/vtk/Makefile index 2163bad85ab..2e9b035dfbd 100644 --- a/graphics/vtk/Makefile +++ b/graphics/vtk/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.14 2021/05/04 14:48:34 prlw1 Exp $ +# $NetBSD: Makefile,v 1.15 2021/05/08 13:55:19 thor Exp $ DISTNAME= VTK-9.0.1 PKGNAME= ${DISTNAME:S/VTK/vtk/} +PKGREVISION= 1 CATEGORIES= graphics MASTER_SITES= https://www.vtk.org/files/release/9.0/ @@ -42,6 +43,8 @@ CMAKE_ARGS+= -DVTK_FORBID_DOWNLOADS=ON # https://discourse.vtk.org/t/9-0-0-rc1-contextopengl2-not-built/2933 CMAKE_ARGS+= -DVTK_MODULE_ENABLE_VTK_RenderingContextOpenGL2=YES +.include "options.mk" + .include "../../archivers/lz4/buildlink3.mk" .include "../../databases/sqlite3/buildlink3.mk" .include "../../devel/hdf5/buildlink3.mk" diff --git a/graphics/vtk/PLIST b/graphics/vtk/PLIST index 6d71dc98380..2a2f0290d0b 100644 --- a/graphics/vtk/PLIST +++ b/graphics/vtk/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.4 2021/05/04 14:48:34 prlw1 Exp $ +@comment $NetBSD: PLIST,v 1.5 2021/05/08 13:55:19 thor Exp $ bin/vtkProbeOpenGLVersion-9.0 include/vtk-9.0/DICOMAppHelper.h include/vtk-9.0/DICOMCMakeConfig.h @@ -3093,3 +3093,47 @@ share/licenses/VTK/vtkkwiml/Copyright.txt share/licenses/VTK/vtkmetaio/License.txt share/licenses/VTK/vtksys/Copyright.txt share/licenses/VTK/vtkverdict/Copyright.txt +${PLIST.qt}include/vtk-9.0/QFilterTreeProxyModel.h +${PLIST.qt}include/vtk-9.0/QVTKApplication.h +${PLIST.qt}include/vtk-9.0/QVTKInteractorAdapter.h +${PLIST.qt}include/vtk-9.0/QVTKInteractor.h +${PLIST.qt}include/vtk-9.0/QVTKOpenGLNativeWidget.h +${PLIST.qt}include/vtk-9.0/QVTKOpenGLStereoWidget.h +${PLIST.qt}include/vtk-9.0/QVTKOpenGLWindow.h +${PLIST.qt}include/vtk-9.0/QVTKRenderWindowAdapter.h +${PLIST.qt}include/vtk-9.0/QVTKWin32Header.h +${PLIST.qt}include/vtk-9.0/vtkEventQtSlotConnect.h +${PLIST.qt}include/vtk-9.0/vtkGUISupportQtModule.h +${PLIST.qt}include/vtk-9.0/vtkQImageToImageSource.h +${PLIST.qt}include/vtk-9.0/vtkQtAbstractModelAdapter.h +${PLIST.qt}include/vtk-9.0/vtkQtAnnotationLayersModelAdapter.h +${PLIST.qt}include/vtk-9.0/vtkQtAnnotationView.h +${PLIST.qt}include/vtk-9.0/vtkQtConnection.h +${PLIST.qt}include/vtk-9.0/vtkQtDebugLeaksModel.h +${PLIST.qt}include/vtk-9.0/vtkQtDebugLeaksView.h +${PLIST.qt}include/vtk-9.0/vtkQtInitialization.h +${PLIST.qt}include/vtk-9.0/vtkQtLabelRenderStrategy.h +${PLIST.qt}include/vtk-9.0/vtkQtListView.h +${PLIST.qt}include/vtk-9.0/vtkQtRecordView.h +${PLIST.qt}include/vtk-9.0/vtkQtStringToImage.h +${PLIST.qt}include/vtk-9.0/vtkQtTableModelAdapter.h +${PLIST.qt}include/vtk-9.0/vtkQtTableRepresentation.h +${PLIST.qt}include/vtk-9.0/vtkQtTableView.h +${PLIST.qt}include/vtk-9.0/vtkQtTreeModelAdapter.h +${PLIST.qt}include/vtk-9.0/vtkQtTreeRingLabelMapper.h +${PLIST.qt}include/vtk-9.0/vtkQtTreeView.h +${PLIST.qt}include/vtk-9.0/vtkQtView.h +${PLIST.qt}include/vtk-9.0/vtkQWidgetRepresentation.h +${PLIST.qt}include/vtk-9.0/vtkQWidgetTexture.h +${PLIST.qt}include/vtk-9.0/vtkQWidgetWidget.h +${PLIST.qt}include/vtk-9.0/vtkRenderingQtModule.h +${PLIST.qt}include/vtk-9.0/vtkViewsQtModule.h +${PLIST.qt}lib/libvtkGUISupportQt-9.0.so +${PLIST.qt}lib/libvtkGUISupportQt-9.0.so.1 +${PLIST.qt}lib/libvtkGUISupportQt-9.0.so.9.0.1 +${PLIST.qt}lib/libvtkRenderingQt-9.0.so +${PLIST.qt}lib/libvtkRenderingQt-9.0.so.1 +${PLIST.qt}lib/libvtkRenderingQt-9.0.so.9.0.1 +${PLIST.qt}lib/libvtkViewsQt-9.0.so +${PLIST.qt}lib/libvtkViewsQt-9.0.so.1 +${PLIST.qt}lib/libvtkViewsQt-9.0.so.9.0.1 diff --git a/graphics/vtk/options.mk b/graphics/vtk/options.mk new file mode 100644 index 00000000000..530df57eb08 --- /dev/null +++ b/graphics/vtk/options.mk @@ -0,0 +1,19 @@ +# $NetBSD: options.mk,v 1.1 2021/05/08 13:55:19 thor Exp $ +PKG_OPTIONS_VAR= PKG_OPTIONS.vtk + +PKG_SUPPORTED_OPTIONS= qt +PKG_SUGGESTED_OPTIONS= qt + +.include "../../mk/bsd.options.mk" + +PLIST_VARS+= qt +.if !empty(PKG_OPTIONS:Mqt) +CMAKE_ARGS+= -DVTK_MODULE_ENABLE_VTK_GUISupportQt=YES +CMAKE_ARGS+= -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL=NO +CMAKE_ARGS+= -DVTK_MODULE_ENABLE_VTK_RenderingQt=YES +CMAKE_ARGS+= -DVTK_MODULE_ENABLE_VTK_ViewsQt=YES +PLIST.qt= yes +.include "../../x11/qt5-qtbase/buildlink3.mk" +.else +CMAKE_ARGS+= -DVTK_GROUP_ENABLE_Qt=NO +.endif -- cgit v1.2.3