[50221] trunk/dports/graphics

dweber at macports.org dweber at macports.org
Mon Apr 27 16:21:00 PDT 2009


Revision: 50221
          http://trac.macports.org/changeset/50221
Author:   dweber at macports.org
Date:     2009-04-27 16:21:00 -0700 (Mon, 27 Apr 2009)
Log Message:
-----------
First draft to adapt vtk port into vtk44; with minimal changes

Added Paths:
-----------
    trunk/dports/graphics/vtk44/
    trunk/dports/graphics/vtk44/Portfile
    trunk/dports/graphics/vtk44/files/
    trunk/dports/graphics/vtk44/files/patch-vtk3DSImporter.cxx
    trunk/dports/graphics/vtk44/files/patch-vtkAbstractMapper.cxx
    trunk/dports/graphics/vtk44/files/patch-vtkAbstractMapper3D.cxx
    trunk/dports/graphics/vtk44/files/patch-vtkAppendFilter.cxx
    trunk/dports/graphics/vtk44/files/patch-vtkBMPReader.cxx
    trunk/dports/graphics/vtk44/files/patch-vtkBooleanTexture.cxx
    trunk/dports/graphics/vtk44/files/patch-vtkBranchExtentTranslator.cxx
    trunk/dports/graphics/vtk44/files/patch-vtkCardinalSpline.cxx
    trunk/dports/graphics/vtk44/files/patch-vtkCocoaGLView.h
    trunk/dports/graphics/vtk44/files/patch-vtkCocoaGLView.mm
    trunk/dports/graphics/vtk44/files/patch-vtkCocoaRenderWindow.mm
    trunk/dports/graphics/vtk44/files/patch-vtkDecimate.cxx
    trunk/dports/graphics/vtk44/files/patch-vtkImageReader.cxx
    trunk/dports/graphics/vtk44/files/patch-vtkOSXRenderingTclInit.c
    trunk/dports/graphics/vtk44/files/patch-vtkTkWidgetsInit.cxx

Added: trunk/dports/graphics/vtk44/Portfile
===================================================================
--- trunk/dports/graphics/vtk44/Portfile	                        (rev 0)
+++ trunk/dports/graphics/vtk44/Portfile	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,92 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem  1.0
+
+name        vtk44
+version     4.4.2
+
+revision    0
+set branch  [join [lrange [split ${version} .] 0 1] .]
+
+categories  graphics
+maintainers css
+description 3D visualization toolkit
+long_description    an open source, freely available software system  \
+    for 3D computer graphics, image processing, and visualization     \
+    used by thousands of researchers and developers around the world. \
+    VTK consists of a C++ class library, and several interpreted      \
+    interface layers including Tcl/Tk, Java, and Python.
+
+homepage        http://www.vtk.org/
+master_sites    http://www.vtk.org/files/release/${branch}
+
+distname        vtk-${branch}
+distfiles       vtk-${version}.tar.gz
+
+checksums       vtk-${version}.tar.gz \
+                    md5 17a5006c4d7acca3e74d32e0e27f4739 \
+                    sha1 9a68ecefa35f97a79fedd830c369f5b4225d1f55
+
+platforms       darwin freebsd
+
+depends_build   bin:cmake:cmake
+
+post-extract {
+    system "cd ${workpath}; mv VTK ${distname}"
+}
+
+configure   { system "cd ${worksrcpath} && cmake ${configure.args} ${worksrcpath}" }
+
+configure.args  \
+    -DBUILD_SHARED_LIBS:BOOL=ON \
+    -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
+    -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+    -DVTK_USE_HYBRID:BOOL=ON \
+    -DVTK_USE_CARBON:BOOL=OFF \
+    -DVTK_USE_COCOA:BOOL=ON \
+    -DCMAKE_SKIP_RPATH:BOOL=OFF \
+    -DCMAKE_INSTALL_NAME_DIR:STRING=${prefix}/lib/${distname} \
+    -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON
+
+platform darwin {
+    if { ${os.major} >= 8 } {
+        # These patches make the code work with gcc4.
+        patchfiles \
+            patch-vtk3DSImporter.cxx \
+            patch-vtkAbstractMapper.cxx \
+            patch-vtkAbstractMapper3D.cxx \
+            patch-vtkAppendFilter.cxx \
+            patch-vtkBMPReader.cxx \
+            patch-vtkBooleanTexture.cxx \
+            patch-vtkBranchExtentTranslator.cxx \
+            patch-vtkCardinalSpline.cxx \
+            patch-vtkCocoaGLView.h \
+            patch-vtkCocoaGLView.mm \
+            patch-vtkCocoaRenderWindow.mm \
+            patch-vtkDecimate.cxx \
+            patch-vtkOSXRenderingTclInit.c \
+            patch-vtkTkWidgetsInit.cxx
+
+        pre-build {
+            reinplace "s;VTK_APPLE_SHARED_FLAGS_NEEDED 1;VTK_APPLE_SHARED_FLAGS_NEEDED 0;" ${worksrcpath}/CMakeLists.txt
+        }
+    }
+}
+
+variant x11 description {Build VTK with the MacPorts X11 libraries} {
+    depends_build-append \
+        port:xorg-libs \
+        port:mesa
+    configure.args-delete \
+        -DVTK_USE_COCOA:BOOL=ON
+    configure.args-append \
+        -DVTK_USE_COCOA:BOOL=OFF \
+        -DVTK_USE_X:BOOL=ON \
+        -DOPENGL_INCLUDE_DIR:PATH=${prefix}/include \
+        -DOPENGL_gl_LIBRARY:FILEPATH=${prefix}/lib/libGL.dylib \
+        -DOPENGL_glu_LIBRARY:FILEPATH=${prefix}/lib/libGLU.dylib
+}
+
+#variant system_x11 description {Build VTK with the Apple X11 libraries} {
+#}


Property changes on: trunk/dports/graphics/vtk44/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/graphics/vtk44/files/patch-vtk3DSImporter.cxx
===================================================================
--- trunk/dports/graphics/vtk44/files/patch-vtk3DSImporter.cxx	                        (rev 0)
+++ trunk/dports/graphics/vtk44/files/patch-vtk3DSImporter.cxx	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,20 @@
+--- ./Hybrid/vtk3DSImporter.cxx.orig	2007-11-11 15:54:01.000000000 -0500
++++ ./Hybrid/vtk3DSImporter.cxx	2007-11-11 15:58:48.000000000 -0500
+@@ -30,17 +30,6 @@
+ vtkCxxRevisionMacro(vtk3DSImporter, "$Revision: 1.36 $");
+ vtkStandardNewMacro(vtk3DSImporter);
+ 
+-//-----  This hack needed to compile using gcc3 on OSX until new stdc++.dylib
+-#ifdef __APPLE_CC__
+-extern "C"
+-{
+-  void oft_initHybrid() 
+-  {
+-  extern void _ZNSt8ios_base4InitC4Ev();
+-  _ZNSt8ios_base4InitC4Ev();
+-  }
+-}
+-#endif
+ 
+ 
+ static vtk3DSColour Black = {0.0, 0.0, 0.0};

Added: trunk/dports/graphics/vtk44/files/patch-vtkAbstractMapper.cxx
===================================================================
--- trunk/dports/graphics/vtk44/files/patch-vtkAbstractMapper.cxx	                        (rev 0)
+++ trunk/dports/graphics/vtk44/files/patch-vtkAbstractMapper.cxx	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,20 @@
+--- ./Common/vtkAbstractMapper.cxx.orig	2007-11-11 15:52:59.000000000 -0500
++++ ./Common/vtkAbstractMapper.cxx	2007-11-11 15:58:29.000000000 -0500
+@@ -26,17 +26,6 @@
+ 
+ vtkCxxSetObjectMacro(vtkAbstractMapper,ClippingPlanes,vtkPlaneCollection);
+ 
+-//-----  This hack needed to compile using gcc3 on OSX until new stdc++.dylib
+-#ifdef __APPLE_CC__
+-extern "C"
+-{void oft_initCommon() 
+- {
+-   extern void _ZNSt8ios_base4InitC4Ev();
+-   _ZNSt8ios_base4InitC4Ev();
+- }
+-}
+-#endif
+-
+ // Construct object.
+ vtkAbstractMapper::vtkAbstractMapper()
+ {

Added: trunk/dports/graphics/vtk44/files/patch-vtkAbstractMapper3D.cxx
===================================================================
--- trunk/dports/graphics/vtk44/files/patch-vtkAbstractMapper3D.cxx	                        (rev 0)
+++ trunk/dports/graphics/vtk44/files/patch-vtkAbstractMapper3D.cxx	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,20 @@
+--- ./Rendering/vtkAbstractMapper3D.cxx.orig	2007-11-11 15:56:25.000000000 -0500
++++ ./Rendering/vtkAbstractMapper3D.cxx	2007-11-11 15:59:09.000000000 -0500
+@@ -18,17 +18,6 @@
+ 
+ vtkCxxRevisionMacro(vtkAbstractMapper3D, "$Revision: 1.17 $");
+ 
+-//-----  This hack needed to compile using gcc3 on OSX until new stdc++.dylib
+-#ifdef __APPLE_CC__
+-extern "C"
+-{
+-  void oft_initRendering() 
+-  {
+-  extern void _ZNSt8ios_base4InitC4Ev();
+-  _ZNSt8ios_base4InitC4Ev();
+-  }
+-}
+-#endif
+ 
+ // Construct with initial range (0,1).
+ vtkAbstractMapper3D::vtkAbstractMapper3D()

Added: trunk/dports/graphics/vtk44/files/patch-vtkAppendFilter.cxx
===================================================================
--- trunk/dports/graphics/vtk44/files/patch-vtkAppendFilter.cxx	                        (rev 0)
+++ trunk/dports/graphics/vtk44/files/patch-vtkAppendFilter.cxx	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,20 @@
+--- ./Graphics/vtkAppendFilter.cxx.orig	2007-11-11 15:53:32.000000000 -0500
++++ ./Graphics/vtkAppendFilter.cxx	2007-11-11 15:58:44.000000000 -0500
+@@ -25,17 +25,6 @@
+ vtkCxxRevisionMacro(vtkAppendFilter, "$Revision: 1.64 $");
+ vtkStandardNewMacro(vtkAppendFilter);
+ 
+-//-----  This hack needed to compile using gcc3 on OSX until new stdc++.dylib
+-#ifdef __APPLE_CC__
+-extern "C"
+-{
+-  void oft_initGraphics() 
+-  {
+-  extern void _ZNSt8ios_base4InitC4Ev();
+-  _ZNSt8ios_base4InitC4Ev();
+-  }
+-}
+-#endif
+ 
+ //----------------------------------------------------------------------------
+ vtkAppendFilter::vtkAppendFilter()

Added: trunk/dports/graphics/vtk44/files/patch-vtkBMPReader.cxx
===================================================================
--- trunk/dports/graphics/vtk44/files/patch-vtkBMPReader.cxx	                        (rev 0)
+++ trunk/dports/graphics/vtk44/files/patch-vtkBMPReader.cxx	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,20 @@
+--- ./IO/vtkBMPReader.cxx.orig	2007-11-11 15:54:16.000000000 -0500
++++ ./IO/vtkBMPReader.cxx	2007-11-11 15:58:52.000000000 -0500
+@@ -27,17 +27,6 @@
+ #undef read
+ #endif
+ 
+-//-----  This hack needed to compile using gcc3 on OSX until new stdc++.dylib
+-#ifdef __APPLE_CC__
+-extern "C"
+-{
+-  void oft_initIO() 
+-  {
+-  extern void _ZNSt8ios_base4InitC4Ev();
+-  _ZNSt8ios_base4InitC4Ev();
+-  }
+-}
+-#endif
+ 
+ vtkBMPReader::vtkBMPReader()
+ {

Added: trunk/dports/graphics/vtk44/files/patch-vtkBooleanTexture.cxx
===================================================================
--- trunk/dports/graphics/vtk44/files/patch-vtkBooleanTexture.cxx	                        (rev 0)
+++ trunk/dports/graphics/vtk44/files/patch-vtkBooleanTexture.cxx	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,20 @@
+--- ./Imaging/vtkBooleanTexture.cxx.orig	2007-11-11 15:54:51.000000000 -0500
++++ ./Imaging/vtkBooleanTexture.cxx	2007-11-11 15:58:56.000000000 -0500
+@@ -22,17 +22,6 @@
+ vtkCxxRevisionMacro(vtkBooleanTexture, "$Revision: 1.37 $");
+ vtkStandardNewMacro(vtkBooleanTexture);
+ 
+-//-----  This hack needed to compile using gcc3 on OSX until new stdc++.dylib
+-#ifdef __APPLE_CC__
+-extern "C"
+-{
+-  void oft_initImaging() 
+-  {
+-  extern void _ZNSt8ios_base4InitC4Ev();
+-  _ZNSt8ios_base4InitC4Ev();
+-  }
+-}
+-#endif
+ 
+ vtkBooleanTexture::vtkBooleanTexture()
+ {

Added: trunk/dports/graphics/vtk44/files/patch-vtkBranchExtentTranslator.cxx
===================================================================
--- trunk/dports/graphics/vtk44/files/patch-vtkBranchExtentTranslator.cxx	                        (rev 0)
+++ trunk/dports/graphics/vtk44/files/patch-vtkBranchExtentTranslator.cxx	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,20 @@
+--- ./Parallel/vtkBranchExtentTranslator.cxx.orig	2007-11-11 15:55:37.000000000 -0500
++++ ./Parallel/vtkBranchExtentTranslator.cxx	2007-11-11 15:58:59.000000000 -0500
+@@ -23,17 +23,6 @@
+ 
+ vtkCxxSetObjectMacro(vtkBranchExtentTranslator,OriginalSource,vtkImageData);
+ 
+-//-----  This hack needed to compile using gcc3 on OSX until new stdc++.dylib
+-#ifdef __APPLE_CC__
+-extern "C"
+-{
+-  void oft_initParallel() 
+-  {
+-  extern void _ZNSt8ios_base4InitC4Ev();
+-  _ZNSt8ios_base4InitC4Ev();
+-  }
+-}
+-#endif
+ 
+ 
+ //----------------------------------------------------------------------------

Added: trunk/dports/graphics/vtk44/files/patch-vtkCardinalSpline.cxx
===================================================================
--- trunk/dports/graphics/vtk44/files/patch-vtkCardinalSpline.cxx	                        (rev 0)
+++ trunk/dports/graphics/vtk44/files/patch-vtkCardinalSpline.cxx	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,20 @@
+--- ./Filtering/vtkCardinalSpline.cxx.orig	2007-11-11 15:53:15.000000000 -0500
++++ ./Filtering/vtkCardinalSpline.cxx	2007-11-11 15:58:40.000000000 -0500
+@@ -20,17 +20,6 @@
+ vtkCxxRevisionMacro(vtkCardinalSpline, "$Revision: 1.23 $");
+ vtkStandardNewMacro(vtkCardinalSpline);
+ 
+-//-----  This hack needed to compile using gcc3 on OSX until new stdc++.dylib
+-#ifdef __APPLE_CC__
+-extern "C"
+-{
+-  void oft_initFiltering() 
+-  {
+-  extern void _ZNSt8ios_base4InitC4Ev();
+-  _ZNSt8ios_base4InitC4Ev();
+-  }
+-}
+-#endif
+ 
+ 
+ // Construct a Cardinal Spline.

Added: trunk/dports/graphics/vtk44/files/patch-vtkCocoaGLView.h
===================================================================
--- trunk/dports/graphics/vtk44/files/patch-vtkCocoaGLView.h	                        (rev 0)
+++ trunk/dports/graphics/vtk44/files/patch-vtkCocoaGLView.h	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,11 @@
+--- Rendering/vtkCocoaGLView.h.orig	2005-06-19 17:10:14.000000000 -0400
++++ Rendering/vtkCocoaGLView.h	2005-06-19 17:11:44.000000000 -0400
+@@ -8,7 +8,7 @@
+ 
+ @interface vtkCocoaGLView : NSOpenGLView
+ {
+-    enum NSOpenGLPixelFormatAttribute bitsPerPixel, depthSize;
++    NSOpenGLPixelFormatAttribute bitsPerPixel, depthSize;
+ 
+     @private
+     vtkCocoaRenderWindow *myVTKRenderWindow;


Property changes on: trunk/dports/graphics/vtk44/files/patch-vtkCocoaGLView.h
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/dports/graphics/vtk44/files/patch-vtkCocoaGLView.mm
===================================================================
--- trunk/dports/graphics/vtk44/files/patch-vtkCocoaGLView.mm	                        (rev 0)
+++ trunk/dports/graphics/vtk44/files/patch-vtkCocoaGLView.mm	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,22 @@
+--- Rendering/vtkCocoaGLView.mm.orig	2005-08-02 19:56:48.000000000 -0400
++++ Rendering/vtkCocoaGLView.mm	2005-08-02 19:59:15.000000000 -0400
+@@ -9,7 +9,7 @@
+ - (void)awakeFromNib
+ {
+     // Initialization
+-    bitsPerPixel = depthSize = (enum NSOpenGLPixelFormatAttribute)32;
++    bitsPerPixel = depthSize = (NSOpenGLPixelFormatAttribute)32;
+ }
+ 
+ - (id)initWithFrame:(NSRect)theFrame
+@@ -20,8 +20,8 @@
+         NSOpenGLPFAAccelerated,
+         NSOpenGLPFANoRecovery,
+         NSOpenGLPFADoubleBuffer,
+-        NSOpenGLPFADepthSize, (enum NSOpenGLPixelFormatAttribute)32,
+-        (enum NSOpenGLPixelFormatAttribute)nil};
++        NSOpenGLPFADepthSize, (NSOpenGLPixelFormatAttribute)32,
++        (NSOpenGLPixelFormatAttribute)nil};
+         
+   NSOpenGLPixelFormat *fmt;
+ 

Added: trunk/dports/graphics/vtk44/files/patch-vtkCocoaRenderWindow.mm
===================================================================
--- trunk/dports/graphics/vtk44/files/patch-vtkCocoaRenderWindow.mm	                        (rev 0)
+++ trunk/dports/graphics/vtk44/files/patch-vtkCocoaRenderWindow.mm	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,37 @@
+--- Rendering/vtkCocoaRenderWindow.mm.orig	2009-03-24 06:25:48.000000000 -0400
++++ Rendering/vtkCocoaRenderWindow.mm	2009-03-24 06:26:16.000000000 -0400
+@@ -189,14 +189,14 @@
+ 
+   // Obtain the OpenGL context in order to keep track of the current screen.
+   NSOpenGLContext* context = [[(vtkCocoaWindow*)this->WindowId getvtkCocoaGLView] openGLContext];
+-  int currentScreen = [context currentVirtualScreen];
++  GLint currentScreen = [context currentVirtualScreen];
+ 
+   // The NSOpenGLPixelFormat can only be queried for one particular
+   // attribute at a time. Just make repeated queries to get the
+   // pertinent settings.
+   NSOpenGLPixelFormat* pixelFormat = [[(vtkCocoaWindow*)this->WindowId getvtkCocoaGLView] pixelFormat];
+   strm << "PixelFormat Descriptor:" << endl;
+-  long pfd;
++  GLint pfd;
+   [pixelFormat getValues: &pfd forAttribute: NSOpenGLPFAColorSize forVirtualScreen: currentScreen];
+   strm  << "  colorSize:  " << pfd << endl;
+ 
+@@ -240,7 +240,7 @@
+   int currentScreen = [context currentVirtualScreen];
+ 
+   NSOpenGLPixelFormat* pixelFormat = [[(vtkCocoaWindow*)this->WindowId getvtkCocoaGLView] pixelFormat];
+-  long pfd;
++  GLint pfd;
+   [pixelFormat getValues: &pfd forAttribute: NSOpenGLPFACompliant forVirtualScreen: currentScreen];
+ 
+   return (pfd == YES ? 1 : 0);
+@@ -258,7 +258,7 @@
+   int currentScreen = [context currentVirtualScreen];
+ 
+   NSOpenGLPixelFormat* pixelFormat = [[(vtkCocoaWindow*)this->WindowId getvtkCocoaGLView] pixelFormat];
+-  long pfd;
++  GLint pfd;
+   [pixelFormat getValues: &pfd forAttribute: NSOpenGLPFAFullScreen forVirtualScreen: currentScreen];
+ 
+   return (pfd == YES ? 1 : 0);

Added: trunk/dports/graphics/vtk44/files/patch-vtkDecimate.cxx
===================================================================
--- trunk/dports/graphics/vtk44/files/patch-vtkDecimate.cxx	                        (rev 0)
+++ trunk/dports/graphics/vtk44/files/patch-vtkDecimate.cxx	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,20 @@
+--- ./Patented/vtkDecimate.cxx.orig	2007-11-11 15:56:07.000000000 -0500
++++ ./Patented/vtkDecimate.cxx	2007-11-11 15:59:04.000000000 -0500
+@@ -42,17 +42,6 @@
+ vtkCxxRevisionMacro(vtkDecimate, "$Revision: 1.78 $");
+ vtkStandardNewMacro(vtkDecimate);
+ 
+-//-----  This hack needed to compile using gcc3 on OSX until new stdc++.dylib
+-#ifdef __APPLE_CC__
+-extern "C"
+-{
+-  void oft_initPatented() 
+-  {
+-  extern void _ZNSt8ios_base4InitC4Ev();
+-  _ZNSt8ios_base4InitC4Ev();
+-  }
+-}
+-#endif
+ 
+ 
+ #define VTK_TOLERANCE 1.0e-05

Added: trunk/dports/graphics/vtk44/files/patch-vtkImageReader.cxx
===================================================================
--- trunk/dports/graphics/vtk44/files/patch-vtkImageReader.cxx	                        (rev 0)
+++ trunk/dports/graphics/vtk44/files/patch-vtkImageReader.cxx	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,20 @@
+--- IO/vtkImageReader.cxx.orig	2005-06-19 15:41:16.000000000 -0400
++++ IO/vtkImageReader.cxx	2005-06-19 15:42:22.000000000 -0400
+@@ -366,7 +366,7 @@
+       // if that happens, store the value in correction and apply later
+       if (filePos + streamSkip0 >= 0)
+         {
+-        self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip0, ios::beg);
++        self->GetFile()->seekg(static_cast<long>(self->GetFile()->tellg()) + streamSkip0, ios::beg);
+         correction = 0;
+         }
+       else
+@@ -376,7 +376,7 @@
+       outPtr1 += outIncr[1];
+       }
+     // move to the next image in the file and data
+-    self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip1 + correction, 
++    self->GetFile()->seekg(static_cast<long>(self->GetFile()->tellg()) + streamSkip1 + correction, 
+                       ios::beg);
+     outPtr2 += outIncr[2];
+     }

Added: trunk/dports/graphics/vtk44/files/patch-vtkOSXRenderingTclInit.c
===================================================================
--- trunk/dports/graphics/vtk44/files/patch-vtkOSXRenderingTclInit.c	                        (rev 0)
+++ trunk/dports/graphics/vtk44/files/patch-vtkOSXRenderingTclInit.c	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,11 @@
+--- ./Rendering/vtkOSXRenderingTclInit.c.orig	2007-11-11 15:56:34.000000000 -0500
++++ ./Rendering/vtkOSXRenderingTclInit.c	2007-11-11 15:59:28.000000000 -0500
+@@ -1,8 +1 @@
+-//-----  This hack needed to compile using gcc3 on OSX until new stdc++.dylib
+-#include <stdio.h>
+-void oft_initRenOSXInit() 
+-{
+-  extern void _ZNSt8ios_base4InitC4Ev();
+-  _ZNSt8ios_base4InitC4Ev();
+-}
+ 


Property changes on: trunk/dports/graphics/vtk44/files/patch-vtkOSXRenderingTclInit.c
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/dports/graphics/vtk44/files/patch-vtkTkWidgetsInit.cxx
===================================================================
--- trunk/dports/graphics/vtk44/files/patch-vtkTkWidgetsInit.cxx	                        (rev 0)
+++ trunk/dports/graphics/vtk44/files/patch-vtkTkWidgetsInit.cxx	2009-04-27 23:21:00 UTC (rev 50221)
@@ -0,0 +1,20 @@
+--- ./Rendering/vtkTkWidgetsInit.cxx.orig	2007-11-11 15:56:48.000000000 -0500
++++ ./Rendering/vtkTkWidgetsInit.cxx	2007-11-11 15:59:34.000000000 -0500
+@@ -20,17 +20,6 @@
+ #include "vtkImageData.h"
+ 
+ 
+-//-----  This hack needed to compile using gcc3 on OSX until new stdc++.dylib
+-#ifdef __APPLE_CC__
+-extern "C"
+-{
+-  void oft_initRenderingWidgets()
+-  {
+-    extern void _ZNSt8ios_base4InitC4Ev();
+-    _ZNSt8ios_base4InitC4Ev();
+-  }
+-}
+-#endif
+ 
+ 
+ //----------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090427/7e32e6d3/attachment.html>


More information about the macports-changes mailing list