From 989e452e46c8f375e800bb3a9ef3138c3ccc22a2 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Thu, 21 Jan 2021 18:26:07 +0000 Subject: [PATCH] math/vtk9: Add the PYTHON option for python binding Also fix WWW and MASTER_SITES URLs. --- math/vtk9/Makefile | 13 +++++++++---- math/vtk9/pkg-descr | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/math/vtk9/Makefile b/math/vtk9/Makefile index 5a1a4381eda6..1f5b818970b3 100644 --- a/math/vtk9/Makefile +++ b/math/vtk9/Makefile @@ -2,8 +2,9 @@ PORTNAME= vtk DISTVERSION= 9.0.1 +PORTREVISION= 1 CATEGORIES= math graphics -MASTER_SITES= http://www.vtk.org/files/release/${VTK_SHORT_VER}/ +MASTER_SITES= https://vtk.org/files/release/${VTK_SHORT_VER}/ PKGNAMESUFFIX= 9 DISTNAME= ${PORTNAME:tu}-${DISTVERSION} @@ -25,7 +26,7 @@ CMAKE_ON= BUILD_SHARED_LIBS \ VTK_INSTALL_NO_DOCUMENTATION VTK_USE_SYSTEM_EXPAT VTK_USE_SYSTEM_TIFF \ VTK_USE_SYSTEM_PNG VTK_USE_SYSTEM_JPEG VTK_USE_SYSTEM_FREETYPE VTK_USE_SYSTEM_ZLIB \ Module_vtkTestingCore Module_vtkTestingRendering -CMAKE_ARGS+= -DVTK_INSTALL_LIBRARY_DIR=lib/vtk-${VTK_SHORT_VER} \ +CMAKE_ARGS= -DVTK_INSTALL_LIBRARY_DIR=lib/vtk-${VTK_SHORT_VER} \ -DVTK_INSTALL_ARCHIVE_DIR=lib/vtk-${VTK_SHORT_VER} \ -DVTK_INSTALL_QT_DIR=/${QT_LIBDIR_REL}/plugins/designer \ -DSTAGEDIR=${STAGEDIR} @@ -36,8 +37,8 @@ DOCSDIR= ${PREFIX}/share/doc/vtk-${VTK_SHORT_VER} DATADIR= ${PREFIX}/share/vtk-${VTK_SHORT_VER} # Options -OPTIONS_DEFINE= DESIGNER DOCS OSMESA QT5 EXAMPLES -OPTIONS_DEFAULT= MPI QT5 +OPTIONS_DEFINE= DESIGNER DOCS OSMESA PYTHON QT5 EXAMPLES +OPTIONS_DEFAULT= MPI PYTHON QT5 # vtk python binding is needed by other packages, and is unfortunately is unseparable. It is a candidate to be a subpackage. OSMESA_DESC= Use Mesa for off-screen rendering DESIGNER_DESC= Build the Qt Designer plugin OPTIONS_SUB= yes @@ -58,6 +59,10 @@ $g_DESC= Build the $g group $w_DESC= $w wrapping .endfor +PYTHON_USES= python:3.6+ +PYTHON_CMAKE_BOOL= VTK_WRAP_PYTHON +PYTHON_CMAKE_ON= -DVTK_PYTHON_VERSION=${PYTHON_MAJOR_VER} + QT5_USES= qt:5 QT5_USE= QT=core,gui,sql,uiplugin,widgets,x11extras,qmake_build,buildtools_build QT5_CMAKE_ON= -DVTK_QT_VERSION:STRING="5" \ diff --git a/math/vtk9/pkg-descr b/math/vtk9/pkg-descr index 3d7d485e4f0e..702f9013bffb 100644 --- a/math/vtk9/pkg-descr +++ b/math/vtk9/pkg-descr @@ -11,4 +11,4 @@ information visualization framework, has a suite of 3D interaction widgets, supports parallel processing, and integrates with various databases on GUI toolkits such as Qt and Tk. -WWW: https://www.vtk.org +WWW: https://vtk.org/