1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00

- Add OPTIONal off-screen rendering support with graphics/libosmesa

This commit is contained in:
Pietro Cerutti 2014-07-01 14:21:27 +00:00
parent 844d0d2237
commit 21e68952ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360015
2 changed files with 17 additions and 5 deletions

View File

@ -46,12 +46,13 @@ VTK_WRAPS= JAVA TCLTK # PYTHON
OPTIONS_GROUP= Groups Wrapping
OPTIONS_GROUP_Groups=${VTK_GROUPS}
OPTIONS_GROUP_Wrapping=${VTK_WRAPS}
OPTIONS_DEFINE= DESIGNER DOCS
OPTIONS_DEFINE= DESIGNER DOCS OSMESA
OPTIONS_RADIO= Qt
OPTIONS_RADIO_Qt= QT4 QT5
Qt_DESC= Qt GUI support
QT4_DESC= Qt 4 toolkit support
QT5_DESC= Qt 5 toolkit support
OSMESA_DESC= Use Mesa for off-screen rendering
#OPTIONS_DEFAULT=MPI Qt JAVA PYTHON TCLTK DESIGNER
.for g in ${VTK_GROUPS}
@ -87,8 +88,18 @@ CMAKE_ARGS+= -DVTK_Group_${g}:BOOL=OFF
. endif
.endfor
.if ${PORT_OPTIONS:MDOCS}
CMAKE_ARGS+= -DBUILD_DOCUMENTATION:BOOL=ON
.if ${PORT_OPTIONS:MOSMESA}
LIB_DEPENDS+= libOSMesa.so:${PORTSDIR}/graphics/libosmesa
CMAKE_ARGS+= -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \
-DOSMESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \
-DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa.so \
-DOPENGL_gl_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa.so \
-DVTK_USE_X:BOOL=OFF
PLIST_SUB+= X11="@comment " \
OSMESA=""
.else
PLIST_SUB+= X11="" \
OSMESA="@comment "
.endif
.if ${PORT_OPTIONS:MEXAMPLES}

View File

@ -2157,8 +2157,9 @@ include/vtk-%%VER2%%/vtkXMLUnstructuredGridWriter.h
include/vtk-%%VER2%%/vtkXMLUtilities.h
include/vtk-%%VER2%%/vtkXMLWriter.h
include/vtk-%%VER2%%/vtkXMLWriterC.h
include/vtk-%%VER2%%/vtkXOpenGLRenderWindow.h
include/vtk-%%VER2%%/vtkXRenderWindowInteractor.h
%%X11%%include/vtk-%%VER2%%/vtkXOpenGLRenderWindow.h
%%X11%%include/vtk-%%VER2%%/vtkXRenderWindowInteractor.h
%%OSMESA%%include/vtk-%%VER2%%/vtkOSOpenGLRenderWindow.h
include/vtk-%%VER2%%/vtkXYPlotActor.h
include/vtk-%%VER2%%/vtkXYPlotWidget.h
include/vtk-%%VER2%%/vtkXYZMolReader.h