Date: Thu, 17 Jul 2008 06:16:41 GMT From: "Pedro F. Giffuni" <pfgshield-freebsd@yahoo.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/125706: Update math/vtk5 to version 5.0.4 Message-ID: <200807170616.m6H6GfZh035933@www.freebsd.org> Resent-Message-ID: <200807170620.m6H6K2ck037606@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 125706 >Category: ports >Synopsis: Update math/vtk5 to version 5.0.4 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Jul 17 06:20:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Pedro F. Giffuni >Release: 6.3-Release >Organization: >Environment: akumen# uname -a FreeBSD kakumen.cable.net.co 6.3-RELEASE FreeBSD 6.3-RELEASE #10: Sat Jan 19 01:13:55 COT 2008 root@kakumen.cable.net.co:/usr/src/sys/amd64/compile/SMP amd64 >Description: - Update to new version 5.0.4 - Add a new option for Mangled Mesa (see PR 125705) The MangledMesa option was set to On but setting it to Off is a possibility while the new mangled Mesa port is committed. VTK with a mangled Mesa is used by Visit: https://wci.llnl.gov/codes/visit/ following the instructions on that site and here: http://www.vtk.org/Wiki/VTK_OpenGL A faster alternative to the mangled Mesa called OSMesa is used by Paraview and described here: http://www.paraview.org/Wiki/Setting_up_a_ParaView_Server#OSMesa_support I added support for this option but it is commented while FreeBSD gets a libOSMesa port. >How-To-Repeat: >Fix: diff -ruN vtk5.orig/Makefile vtk5/Makefile --- vtk5.orig/Makefile 2008-07-15 10:04:57.000000000 -0500 +++ vtk5/Makefile 2008-07-17 00:25:56.000000000 -0500 @@ -7,8 +7,7 @@ # PORTNAME= vtk -PORTVERSION= 5.0.3 -PORTREVISION= 1 +PORTVERSION= 5.0.4 CATEGORIES= math graphics MASTER_SITES= http://www.vtk.org/files/release/5.0/ \ http://www.neuro.mcw.edu/Ports/distfiles/VTK5/ @@ -34,7 +33,7 @@ VTKDATAROOT= ${EXAMPLESDIR}/VTKData PYDISTUTILS_PKGNAME= VTK -CONFLICTS= vtk-4* vtk-5.0.[012456789]* +CONFLICTS= vtk-4* vtk-5.0.[012356789]* NO_FILTER_SHLIBS= yes VTK_KITS= Common Filtering GenericFiltering Graphics \ @@ -49,7 +48,8 @@ USE_GL= yes USE_LDCONFIG= yes -OPTIONS= VTKMPEG2 "Install patented MPEG2 encoder module" Off +OPTIONS= MANGLEDMESA "Use off-screen (Mangled) Mesa" On \ + VTKMPEG2 "Install patented MPEG2 encoder module" Off PLIST_SUB= VER=${PORTVERSION} VER1=${PORTVERSION:R} VER2=${PORTVERSION:R:R} @@ -80,7 +80,23 @@ -DTK_INCLUDE_PATH=${TK_INCLUDEDIR} \ -DDESIRED_QT_VERSION:STRING=3 \ -DVTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T:BOOL=ON \ - -DVTK_DATA_ROOT:PATH=${VTKDATAROOT} + -DVTK_DATA_ROOT:PATH=${VTKDATAROOT} \ + -DOPENGL_INCLUDE_DIR:PATH=${LOCALBASE}/include \ + -DOPENGL_gl_LIBRARY:FILEPATH=${LOCALBASE}/lib/libGL.so \ + -DOPENGL_glu_LIBRARY:FILEPATH=${LOCALBASE}/lib/libGLU.so + +.if defined(WITH_MANGLEDMESA) +LIB_DEPENDS+= MesaGL.14:${PORTSDIR}/graphics/mesagl +CMAKE_ARGS+= -DVTK_OPENGL_HAS_OSMESA:BOOL=OFF \ + -DVTK_USE_MANGLED_MESA:BOOL=ON \ + -DMANGLED_MESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \ + -DMANGLED_MESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libMesaGL.so \ + -DMANGLED_OSMESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \ + -DMANGLED_OSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libMesaOSMesa.so +#.else +#CMAKE_ARGS+= -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \ +# -DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa.so +.endif .if defined(WITH_VTKMPEG2) LIB_DEPENDS+= vtkMPEG2Encode.5:${PORTSDIR}/multimedia/vtkmpeg2encode diff -ruN vtk5.orig/distinfo vtk5/distinfo --- vtk5.orig/distinfo 2008-07-15 10:04:57.000000000 -0500 +++ vtk5/distinfo 2008-07-15 10:07:08.000000000 -0500 @@ -1,3 +1,3 @@ -MD5 (vtk-5.0.3.tar.gz) = 0148a3d3c46d0599ab63e79f7f406609 -SHA256 (vtk-5.0.3.tar.gz) = 3ba05f6cb33cfcfb9d448c332b9292d6fca836fd979249d086762a7ac1c65d5c -SIZE (vtk-5.0.3.tar.gz) = 8324346 +MD5 (vtk-5.0.4.tar.gz) = 1e353886bbd6559633e31436d88a1f03 +SHA256 (vtk-5.0.4.tar.gz) = f95f181d61b4af37157e733b4dee4f47c39804e987c2d033ecb81a82e53ecf84 +SIZE (vtk-5.0.4.tar.gz) = 8344794 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807170616.m6H6GfZh035933>