RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/graphics/vtk/Portfile,v
retrieving revision 1.8
diff -u -r1.8 Portfile
|
|
|
3 | 3 | PortSystem 1.0 |
4 | 4 | name VTK |
5 | 5 | version 4.2.6 |
| 6 | revision 1 |
6 | 7 | categories graphics |
7 | 8 | maintainers cssdev@mac.com |
8 | 9 | description 3D visualization toolkit |
… |
… |
|
33 | 34 | } |
34 | 35 | } |
35 | 36 | |
36 | | configure { system "cd ${worksrcpath} && cmake ${worksrcpath}" } |
37 | | post-configure { |
38 | | reinplace "s;BUILD_SHARED_LIBS:BOOL=.*;BUILD_SHARED_LIBS:BOOL=ON;" ${worksrcpath}/CMakeCache.txt |
39 | | reinplace "s;CMAKE_INSTALL_PREFIX:PATH=.*;CMAKE_INSTALL_PREFIX:PATH=${prefix};" ${worksrcpath}/CMakeCache.txt |
40 | | reinplace "s;VTK_USE_CARBON:BOOL=.*;VTK_USE_CARBON:BOOL=OFF;" ${worksrcpath}/CMakeCache.txt |
41 | | reinplace "s;VTK_USE_COCOA:BOOL=.*;VTK_USE_COCOA:BOOL=ON;" ${worksrcpath}/CMakeCache.txt |
42 | | } |
43 | | |
44 | | #variant devel { |
45 | | # version 4.5.0 |
46 | | # fetch.type cvs |
47 | | # cvs.root :pserver:anonymous@public.kitware.com:/cvsroot/VTK |
48 | | # cvs.module VTK |
49 | | # cvs.password vtk |
50 | | #} |
| 37 | configure { system "cd ${worksrcpath} && cmake ${configure.args} ${worksrcpath}" } |
| 38 | configure.args -D BUILD_SHARED_LIBS:BOOL=ON \ |
| 39 | -D CMAKE_INSTALL_PREFIX:PATH=${prefix} \ |
| 40 | -D VTK_USE_HYBRID:BOOL=ON \ |
| 41 | -D VTK_USE_CARBON:BOOL=OFF \ |
| 42 | -D VTK_USE_COCOA:BOOL=ON |
51 | 43 | |
52 | 44 | platform darwin 8 { |
53 | | patchfiles patch-vtkAbstractMapper.cxx \ |
| 45 | patchfiles patch-vtk3DSImporter.cxx \ |
| 46 | patch-vtkAbstractMapper.cxx \ |
54 | 47 | patch-vtkAbstractMapper3D.cxx \ |
55 | 48 | patch-vtkAppendFilter.cxx \ |
56 | 49 | patch-vtkBMPReader.cxx \ |
… |
… |
|
58 | 51 | patch-vtkCardinalSpline.cxx \ |
59 | 52 | patch-vtkCocoaGLView.h \ |
60 | 53 | patch-vtkCocoaGLView.mm \ |
61 | | patch-vtkImageReader.cxx |
| 54 | patch-vtkImageReader.cxx \ |
| 55 | patch-vtkOSXRenderingTclInit.c \ |
| 56 | patch-vtkTkWidgetsInit.cxx |
62 | 57 | |
63 | 58 | pre-build { |
64 | 59 | reinplace "s;VTK_APPLE_SHARED_FLAGS_NEEDED 1;VTK_APPLE_SHARED_FLAGS_NEEDED 0;" ${worksrcpath}/CMakeLists.txt |
65 | 60 | } |
66 | 61 | } |
| 62 | |
| 63 | variant x11 { |
| 64 | depends_build-append lib:libX11:XFree86 |
| 65 | configure.args-delete "-D VTK_USE_COCOA:BOOL=ON" |
| 66 | configure.args-append -D VTK_USE_COCOA:BOOL=OFF \ |
| 67 | -D VTK_USE_X:BOOL=ON \ |
| 68 | -D OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib \ |
| 69 | -D OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.dylib |
| 70 | } |
| 71 | |
| 72 | |