math/vtk9: Add the PYTHON option for python binding

Also fix WWW and MASTER_SITES URLs.
This commit is contained in:
Yuri Victorovich 2021-01-21 18:26:07 +00:00
parent d51024ef57
commit 989e452e46
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=562228
2 changed files with 10 additions and 5 deletions

View file

@ -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" \

View file

@ -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/