- Do not use X with OSMesa

- Fix lines > 80 chars in pkg-descr
- Remove unneeded dependencies on a couple of Qt4 components
This commit is contained in:
Pietro Cerutti 2012-07-10 10:54:11 +00:00
parent 5970ace1d6
commit a8b1aafd15
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300716
2 changed files with 17 additions and 15 deletions

View file

@ -8,7 +8,7 @@
PORTNAME= vtk PORTNAME= vtk
PORTVERSION= 5.8.0 PORTVERSION= 5.8.0
PORTREVISION= 2 PORTREVISION= 3
CATEGORIES= math graphics CATEGORIES= math graphics
MASTER_SITES= http://www.vtk.org/files/release/${PORTVERSION:R}/ \ MASTER_SITES= http://www.vtk.org/files/release/${PORTVERSION:R}/ \
http://www.neuro.mcw.edu/Ports/distfiles/VTK5/ http://www.neuro.mcw.edu/Ports/distfiles/VTK5/
@ -17,9 +17,9 @@ MAINTAINER= gahr@FreeBSD.org
COMMENT= The Visualization Toolkit COMMENT= The Visualization Toolkit
LIB_DEPENDS= expat.[5-6]:${PORTSDIR}/textproc/expat2 \ LIB_DEPENDS= expat.[5-6]:${PORTSDIR}/textproc/expat2 \
jpeg.11:${PORTSDIR}/graphics/jpeg \ jpeg:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png \ png15:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff tiff:${PORTSDIR}/graphics/tiff
LATEST_LINK= vtk5 LATEST_LINK= vtk5
@ -86,7 +86,7 @@ PLIST_SUB+= SHARED="@comment " \
.endif .endif
.if defined(WITH_VTKMPEG2) .if defined(WITH_VTKMPEG2)
LIB_DEPENDS+= vtkMPEG2Encode.5:${PORTSDIR}/multimedia/vtkmpeg2encode LIB_DEPENDS+= vtkMPEG2Encode:${PORTSDIR}/multimedia/vtkmpeg2encode
PLIST_SUB+= MPEG="" PLIST_SUB+= MPEG=""
CMAKE_ARGS+= -DVTK_USE_PATENTED:BOOL=ON \ CMAKE_ARGS+= -DVTK_USE_PATENTED:BOOL=ON \
-DVTK_USE_MPEG2_ENCODER:BOOL=ON \ -DVTK_USE_MPEG2_ENCODER:BOOL=ON \
@ -97,7 +97,7 @@ PLIST_SUB+= MPEG="@comment "
.endif .endif
.if defined(WITH_GL2PS) .if defined(WITH_GL2PS)
LIB_DEPENDS+= gl2ps.1:${PORTSDIR}/print/gl2ps LIB_DEPENDS+= gl2ps:${PORTSDIR}/print/gl2ps
CMAKE_ARGS+= -DVTK_USE_GL2PS:BOOL=ON CMAKE_ARGS+= -DVTK_USE_GL2PS:BOOL=ON
PLIST_SUB+= GL2PS="" PLIST_SUB+= GL2PS=""
.else .else
@ -105,22 +105,23 @@ PLIST_SUB+= GL2PS="@comment "
.endif .endif
.if defined(WITH_OSMESA) .if defined(WITH_OSMESA)
LIB_DEPENDS+= OSMesa32.8:${PORTSDIR}/graphics/libosmesa LIB_DEPENDS+= OSMesa32:${PORTSDIR}/graphics/libosmesa
CMAKE_ARGS+= -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \ CMAKE_ARGS+= -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \
-DOSMESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \ -DOSMESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \
-DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa32.so \ -DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa32.so \
-DOPENGL_gl_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa32.so \ -DOPENGL_gl_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa32.so \
-DOPENGL_glu_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSGLU.so -DOPENGL_glu_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSGLU.so \
-DVTK_USE_X:BOOL=OFF
PLIST_SUB+= X11="@comment " PLIST_SUB+= X11="@comment "
.else .else
USE_GL= yes USE_GL= yes
CMAKE_ARGS+= -DVTK_USE_X:BOOL=ON
PLIST_SUB+= X11="" PLIST_SUB+= X11=""
.endif .endif
.if defined(WITH_QT) .if defined(WITH_QT)
USE_QT4= corelib assistant assistantclient designer \ USE_QT4= corelib designer gui opengl qmake_build uic_build \
gui opengl qtestlib sql dbus \ moc_build rcc_build
qmake_build uic_build moc_build rcc_build
CMAKE_ARGS+= -DVTK_USE_GUISUPPORT:BOOL=ON \ CMAKE_ARGS+= -DVTK_USE_GUISUPPORT:BOOL=ON \
-DVTK_USE_QVTK:BOOL=ON \ -DVTK_USE_QVTK:BOOL=ON \
-DVTK_USE_QT:BOOL=ON \ -DVTK_USE_QT:BOOL=ON \

View file

@ -4,10 +4,11 @@ consists of a C++ class library and several interpreted interface layers
including Tcl/Tk, Java, and Python. Kitware, whose team created and continues including Tcl/Tk, Java, and Python. Kitware, whose team created and continues
to extend the toolkit, offers professional support and consulting services for to extend the toolkit, offers professional support and consulting services for
VTK. VTK supports a wide variety of visualization algorithms including: scalar, VTK. VTK supports a wide variety of visualization algorithms including: scalar,
vector, tensor, texture, and volumetric methods; and advanced modeling techniques vector, tensor, texture, and volumetric methods; and advanced modeling
such as: implicit modeling, polygon reduction, mesh smoothing, cutting, contouring, techniques such as: implicit modeling, polygon reduction, mesh smoothing,
and Delaunay triangulation. VTK has an extensive information visualization cutting, contouring, and Delaunay triangulation. VTK has an extensive
framework, has a suite of 3D interaction widgets, supports parallel processing, information visualization framework, has a suite of 3D interaction widgets,
and integrates with various databases on GUI toolkits such as Qt and Tk. supports parallel processing, and integrates with various databases on GUI
toolkits such as Qt and Tk.
WWW: http://www.vtk.org WWW: http://www.vtk.org