From owner-svn-ports-head@FreeBSD.ORG Mon Feb 18 15:28:06 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 98F19C61; Mon, 18 Feb 2013 15:28:06 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 7B21D34F; Mon, 18 Feb 2013 15:28:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1IFS59L013371; Mon, 18 Feb 2013 15:28:05 GMT (envelope-from gahr@svn.freebsd.org) Received: (from gahr@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1IFS5hP013367; Mon, 18 Feb 2013 15:28:05 GMT (envelope-from gahr@svn.freebsd.org) Message-Id: <201302181528.r1IFS5hP013367@svn.freebsd.org> From: Pietro Cerutti Date: Mon, 18 Feb 2013 15:28:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r312511 - in head/math/vtk5: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2013 15:28:06 -0000 Author: gahr Date: Mon Feb 18 15:28:05 2013 New Revision: 312511 URL: http://svnweb.freebsd.org/changeset/ports/312511 Log: - Add an OPTION to build with leak debugging support - Add an OPTION to build without legacy code - Fix Qt4 includes (fixes a conflict when both Qt3 and Qt4 are installed) Reported upstream: http://www.vtk.org/Bug/view.php?id=13888 Added: head/math/vtk5/files/patch-qt4 (contents, props changed) Modified: head/math/vtk5/Makefile head/math/vtk5/pkg-plist Modified: head/math/vtk5/Makefile ============================================================================== --- head/math/vtk5/Makefile Mon Feb 18 14:54:44 2013 (r312510) +++ head/math/vtk5/Makefile Mon Feb 18 15:28:05 2013 (r312511) @@ -1,4 +1,4 @@ -# Created by: Mykola Khotyaintsev , +# Created by: Mykola Khotyaintsev # $FreeBSD$ PORTNAME= vtk @@ -29,13 +29,16 @@ USE_LDCONFIG= ${PREFIX}/lib/vtk-${PORTVE CXXFLAGS+= -DUSE_INTERP_ERRORLINE MAKE_JOBS_SAFE= yes -OPTIONS_DEFINE= SHARED VTKMPEG2 GL2PS OSMESA QT4 JAVA PYTHON TCLTK -OPTIONS_DEFAULT=SHARED GL2PS QT4 PYTHON TCLTK +OPTIONS_DEFINE= SHARED VTKMPEG2 GL2PS OSMESA QT4 JAVA PYTHON TCLTK \ + DBGLEAKS LEGACY +OPTIONS_DEFAULT=SHARED GL2PS QT4 PYTHON TCLTK LEGACY SHARED_DESC= Build shared libraries VTKMPEG2_DESC= Patented MPEG2 encoder module GL2PS_DESC= OpenGL to PostScript conversion module OSMESA_DESC= Use Mesa for off-screen rendering +DBGLEAKS_DESC= Build leak checking support +LEGACY_DESC= Include legacy code PLIST_SUB+= VER1="${PORTVERSION}" \ VER2="${PORTVERSION:R}" \ @@ -172,6 +175,7 @@ IGNORE= java wrapping requires shared l .if ${ARCH} == "amd64" CXXFLAGS+= -fPIC .endif +CATEGORIES+= java USE_JAVA= yes JAVA_VENDOR= openjdk JAVA_VERSION= 1.6+ @@ -193,6 +197,20 @@ PLIST_SUB+= WRAPPING="" PLIST_SUB+= WRAPPING="@comment " .endif +.if ${PORT_OPTIONS:MDBGLEAKS} +CMAKE_ARGS+= -DVTK_DEBUG_LEAKS:BOOL=ON +.else +CMAKE_ARGS+= -DVTK_DEBUG_LEAKS:BOOL=OFF +.endif + +.if ${PORT_OPTIONS:MLEGACY} +CMAKE_ARGS+= -DVTK_LEGACY_REMOVE:BOOL=OFF +PLIST_SUB+= LEGACY="" +.else +CMAKE_ARGS+= -DVTK_LEGACY_REMOVE:BOOL=ON +PLIST_SUB+= LEGACY="@comment " +.endif + post-patch: ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' \ ${WRKSRC}/Hybrid/vtkVRMLImporter.cxx Added: head/math/vtk5/files/patch-qt4 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/vtk5/files/patch-qt4 Mon Feb 18 15:28:05 2013 (r312511) @@ -0,0 +1,66 @@ +--- GUISupport/Qt/vtkQtConnection.h.orig 2013-02-18 14:31:05.000000000 +0100 ++++ GUISupport/Qt/vtkQtConnection.h 2013-02-18 14:30:33.000000000 +0100 +@@ -33,7 +33,7 @@ + + #include "vtkObject.h" + #include "vtkCommand.h" // for event defines +-#include "qobject.h" ++#include + + class QObject; + class vtkCallbackCommand; +--- GUISupport/Qt/QVTKWidget.cxx.orig 2013-02-18 14:31:29.000000000 +0100 ++++ GUISupport/Qt/QVTKWidget.cxx 2013-02-18 14:34:52.000000000 +0100 +@@ -38,11 +38,12 @@ + #include "QVTKInteractorAdapter.h" + #include "QVTKInteractor.h" + +-#include "qevent.h" +-#include "qapplication.h" +-#include "qpainter.h" +-#include "qsignalmapper.h" +-#include "qtimer.h" ++#include ++#include ++#include ++#include ++#include ++#include + #if defined(Q_WS_X11) + #include "qx11info_x11.h" + #endif +--- GUISupport/Qt/vtkQtSQLQuery.cxx.orig 2013-02-18 14:39:23.000000000 +0100 ++++ GUISupport/Qt/vtkQtSQLQuery.cxx 2013-02-18 14:39:53.000000000 +0100 +@@ -19,7 +19,7 @@ + -------------------------------------------------------------------------*/ + + // Check for Qt SQL module before defining this class. +-#include ++#include + #if (QT_EDITION & QT_MODULE_SQL) + + #include "vtkQtSQLQuery.h" +--- GUISupport/Qt/vtkQtConnection.cxx.orig 2013-02-18 14:43:41.000000000 +0100 ++++ GUISupport/Qt/vtkQtConnection.cxx 2013-02-18 14:43:54.000000000 +0100 +@@ -28,8 +28,8 @@ + #include "vtkEventQtSlotConnect.h" + #include "vtkCallbackCommand.h" + +-#include +-#include ++#include ++#include + + // constructor + vtkQtConnection::vtkQtConnection(vtkEventQtSlotConnect* owner) +--- GUISupport/Qt/vtkQtSQLDatabase.cxx.orig 2013-02-18 14:44:08.000000000 +0100 ++++ GUISupport/Qt/vtkQtSQLDatabase.cxx 2013-02-18 14:44:16.000000000 +0100 +@@ -19,7 +19,7 @@ + -------------------------------------------------------------------------*/ + + // Check for Qt SQL module before defining this class. +-#include ++#include + #if (QT_EDITION & QT_MODULE_SQL) + + #include "vtkQtSQLDatabase.h" Modified: head/math/vtk5/pkg-plist ============================================================================== --- head/math/vtk5/pkg-plist Mon Feb 18 14:54:44 2013 (r312510) +++ head/math/vtk5/pkg-plist Mon Feb 18 15:28:05 2013 (r312511) @@ -962,7 +962,7 @@ include/vtk-%%VER2%%/vtkExodusIIReaderPa include/vtk-%%VER2%%/vtkExodusIIReaderVariableCheck.h include/vtk-%%VER2%%/vtkExodusIIWriter.h include/vtk-%%VER2%%/vtkExodusModel.h -include/vtk-%%VER2%%/vtkExodusReader.h +%%LEGACY%%include/vtk-%%VER2%%/vtkExodusReader.h include/vtk-%%VER2%%/vtkExpandSelectedGraph.h include/vtk-%%VER2%%/vtkExplicitCell.h include/vtk-%%VER2%%/vtkExporter.h @@ -1204,7 +1204,7 @@ include/vtk-%%VER2%%/vtkIdFilter.h include/vtk-%%VER2%%/vtkIdList.h include/vtk-%%VER2%%/vtkIdListCollection.h include/vtk-%%VER2%%/vtkIdTypeArray.h -include/vtk-%%VER2%%/vtkIdentColoredPainter.h +%%LEGACY%%include/vtk-%%VER2%%/vtkIdentColoredPainter.h include/vtk-%%VER2%%/vtkIdentityTransform.h include/vtk-%%VER2%%/vtkImageAccumulate.h include/vtk-%%VER2%%/vtkImageActor.h @@ -1322,7 +1322,7 @@ include/vtk-%%VER2%%/vtkImageSobel2D.h include/vtk-%%VER2%%/vtkImageSobel3D.h include/vtk-%%VER2%%/vtkImageSource.h include/vtk-%%VER2%%/vtkImageSpatialAlgorithm.h -include/vtk-%%VER2%%/vtkImageSpatialFilter.h +%%LEGACY%%include/vtk-%%VER2%%/vtkImageSpatialFilter.h include/vtk-%%VER2%%/vtkImageStencil.h include/vtk-%%VER2%%/vtkImageStencilAlgorithm.h include/vtk-%%VER2%%/vtkImageStencilData.h @@ -1637,7 +1637,7 @@ include/vtk-%%VER2%%/vtkPDataSetReader.h include/vtk-%%VER2%%/vtkPDataSetWriter.h include/vtk-%%VER2%%/vtkPDescriptiveStatistics.h include/vtk-%%VER2%%/vtkPExodusIIReader.h -include/vtk-%%VER2%%/vtkPExodusReader.h +%%LEGACY%%include/vtk-%%VER2%%/vtkPExodusReader.h include/vtk-%%VER2%%/vtkPExtractArraysOverTime.h include/vtk-%%VER2%%/vtkPExtractHistogram2D.h include/vtk-%%VER2%%/vtkPHardwareSelector.h @@ -2286,7 +2286,7 @@ include/vtk-%%VER2%%/vtkViewUpdater.h include/vtk-%%VER2%%/vtkViewport.h include/vtk-%%VER2%%/vtkViewsInstantiator.h include/vtk-%%VER2%%/vtkVisibilitySort.h -include/vtk-%%VER2%%/vtkVisibleCellSelector.h +%%LEGACY%%include/vtk-%%VER2%%/vtkVisibleCellSelector.h include/vtk-%%VER2%%/vtkVoidArray.h include/vtk-%%VER2%%/vtkVolume.h include/vtk-%%VER2%%/vtkVolume16Reader.h @@ -2845,24 +2845,24 @@ include/vtk-%%VER2%%/vtknetcdf/include/n include/vtk-%%VER2%%/vtknetcdf/include/vtk_netcdf_config.h include/vtk-%%VER2%%/vtknetcdf/include/vtk_netcdf_mangle.h include/vtk-%%VER2%%/vtksqlite/vtk_sqlite3.h -include/vtk-%%VER2%%/vtkstd/algorithm -include/vtk-%%VER2%%/vtkstd/deque -include/vtk-%%VER2%%/vtkstd/exception -include/vtk-%%VER2%%/vtkstd/functional -include/vtk-%%VER2%%/vtkstd/iterator -include/vtk-%%VER2%%/vtkstd/limits -include/vtk-%%VER2%%/vtkstd/list -include/vtk-%%VER2%%/vtkstd/map -include/vtk-%%VER2%%/vtkstd/memory -include/vtk-%%VER2%%/vtkstd/new -include/vtk-%%VER2%%/vtkstd/numeric -include/vtk-%%VER2%%/vtkstd/queue -include/vtk-%%VER2%%/vtkstd/set -include/vtk-%%VER2%%/vtkstd/stack -include/vtk-%%VER2%%/vtkstd/stdexcept -include/vtk-%%VER2%%/vtkstd/string -include/vtk-%%VER2%%/vtkstd/utility -include/vtk-%%VER2%%/vtkstd/vector +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/algorithm +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/deque +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/exception +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/functional +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/iterator +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/limits +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/list +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/map +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/memory +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/new +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/numeric +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/queue +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/set +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/stack +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/stdexcept +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/string +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/utility +%%LEGACY%%include/vtk-%%VER2%%/vtkstd/vector include/vtk-%%VER2%%/vtksys/Base64.h include/vtk-%%VER2%%/vtksys/CommandLineArguments.hxx include/vtk-%%VER2%%/vtksys/Configure.h @@ -3172,7 +3172,7 @@ lib/vtk-%%VER2%%/vtkWidgetsKit.cmake @dirrm include/vtk-%%VER2%%/vtksys/stl @dirrm include/vtk-%%VER2%%/vtksys/ios @dirrm include/vtk-%%VER2%%/vtksys -@dirrm include/vtk-%%VER2%%/vtkstd +%%LEGACY%%@dirrm include/vtk-%%VER2%%/vtkstd @dirrm include/vtk-%%VER2%%/vtksqlite @dirrm include/vtk-%%VER2%%/vtknetcdf/include @dirrm include/vtk-%%VER2%%/vtknetcdf