From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 17 06:20:02 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8ED001065674 for ; Thu, 17 Jul 2008 06:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 654C88FC12 for ; Thu, 17 Jul 2008 06:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6H6K2Gj037607 for ; Thu, 17 Jul 2008 06:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6H6K2ck037606; Thu, 17 Jul 2008 06:20:02 GMT (envelope-from gnats) Resent-Date: Thu, 17 Jul 2008 06:20:02 GMT Resent-Message-Id: <200807170620.m6H6K2ck037606@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Pedro F. Giffuni" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16AD51065673 for ; Thu, 17 Jul 2008 06:16:42 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id F3FF08FC2F for ; Thu, 17 Jul 2008 06:16:41 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m6H6GfoQ035934 for ; Thu, 17 Jul 2008 06:16:41 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m6H6GfZh035933; Thu, 17 Jul 2008 06:16:41 GMT (envelope-from nobody) Message-Id: <200807170616.m6H6GfZh035933@www.freebsd.org> Date: Thu, 17 Jul 2008 06:16:41 GMT From: "Pedro F. Giffuni" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/125706: Update math/vtk5 to version 5.0.4 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2008 06:20:02 -0000 >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: