Ticket #3688: patch-Portfile.diff
File patch-Portfile.diff, 2.5 KB (added by cssdev, 17 years ago) |
---|
-
Portfile
2 2 3 3 PortSystem 1.0 4 4 name VTK 5 version 4.2.6 6 revision 2 5 version 4.4.2 7 6 categories graphics 8 7 maintainers css@macports.org 9 8 description 3D visualization toolkit … … 15 14 16 15 homepage http://www.vtk.org/ 17 16 platforms darwin freebsd 18 master_sites sourceforge:vtk 19 checksums md5 41382fb3f8d15e76d7464c11045ee7a5 17 master_sites ${homepage}/files/release/4.4/ 18 checksums md5 17a5006c4d7acca3e74d32e0e27f4739 \ 19 sha1 9a68ecefa35f97a79fedd830c369f5b4225d1f55 20 20 21 21 depends_build bin:cmake:cmake 22 distfiles ${name}-4.2-LatestRelease${extract.suffix} 23 distname ${name} 22 worksrcdir ${name} 24 23 25 post-extract {26 set fl [open "| grep VTK_BUILD_VERSION ${worksrcpath}/CMakeLists.txt | grep 6"]27 set data [read $fl]28 close $fl29 if {$data != "SET(VTK_BUILD_VERSION 6)\n"} { ui_msg "$data30 ================================================================31 Warning : the Latest VTK version is not the same as the Portfile32 The build may still succeed but this should be reported as a bug33 ================================================================"34 }35 }36 37 24 configure { system "cd ${worksrcpath} && cmake ${configure.args} ${worksrcpath}" } 38 25 configure.args -D BUILD_SHARED_LIBS:BOOL=ON \ 39 26 -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON \ … … 45 32 -D CMAKE_INSTALL_NAME_DIR:STRING=${prefix}/lib/vtk \ 46 33 -D CMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON 47 34 35 # These patches make the code work with gcc4. 48 36 platform darwin 8 { 49 37 patchfiles patch-vtk3DSImporter.cxx \ 50 38 patch-vtkAbstractMapper.cxx \ … … 52 40 patch-vtkAppendFilter.cxx \ 53 41 patch-vtkBMPReader.cxx \ 54 42 patch-vtkBooleanTexture.cxx \ 43 patch-vtkBranchExtentTranslator.cxx \ 55 44 patch-vtkCardinalSpline.cxx \ 56 patch-vtkCocoaGLView.h \ 57 patch-vtkCocoaGLView.mm \ 58 patch-vtkImageReader.cxx \ 45 patch-vtkDecimate.cxx \ 59 46 patch-vtkOSXRenderingTclInit.c \ 60 47 patch-vtkTkWidgetsInit.cxx 61 48 … … 69 56 configure.args-delete "-D VTK_USE_COCOA:BOOL=ON" 70 57 configure.args-append -D VTK_USE_COCOA:BOOL=OFF \ 71 58 -D VTK_USE_X:BOOL=ON \ 59 -D OPENGL_INCLUDE_DIR:PATH=/usr/X11R6/include/ \ 72 60 -D OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib \ 73 61 -D OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.dylib 74 62 } 75 76