Ticket #3688: patch-Portfile.diff

File patch-Portfile.diff, 2.5 KB (added by cssdev, 16 years ago)

update to vtk 4.4 with adjusted patches

  • Portfile

     
    22
    33PortSystem 1.0
    44name            VTK
    5 version         4.2.6
    6 revision        2
     5version         4.4.2
    76categories      graphics
    87maintainers     css@macports.org
    98description     3D visualization toolkit
     
    1514
    1615homepage        http://www.vtk.org/
    1716platforms       darwin freebsd
    18 master_sites    sourceforge:vtk
    19 checksums       md5 41382fb3f8d15e76d7464c11045ee7a5
     17master_sites    ${homepage}/files/release/4.4/
     18checksums       md5 17a5006c4d7acca3e74d32e0e27f4739 \
     19                sha1 9a68ecefa35f97a79fedd830c369f5b4225d1f55
    2020
    2121depends_build   bin:cmake:cmake
    22 distfiles       ${name}-4.2-LatestRelease${extract.suffix}
    23 distname        ${name}
     22worksrcdir      ${name}
    2423
    25 post-extract {
    26     set fl [open "| grep VTK_BUILD_VERSION ${worksrcpath}/CMakeLists.txt | grep 6"]
    27     set data [read $fl]
    28     close $fl
    29     if {$data != "SET(VTK_BUILD_VERSION 6)\n"} { ui_msg "$data
    30 ================================================================
    31 Warning : the Latest VTK version is not the same as the Portfile
    32 The build may still succeed but this should be reported as a bug
    33 ================================================================"
    34     }
    35 }
    36 
    3724configure       { system "cd ${worksrcpath} && cmake ${configure.args} ${worksrcpath}" }
    3825configure.args  -D BUILD_SHARED_LIBS:BOOL=ON \
    3926                -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON \
     
    4532                -D CMAKE_INSTALL_NAME_DIR:STRING=${prefix}/lib/vtk \
    4633                -D CMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON
    4734
     35# These patches make the code work with gcc4.
    4836platform darwin 8 {
    4937    patchfiles patch-vtk3DSImporter.cxx \
    5038               patch-vtkAbstractMapper.cxx \
     
    5240               patch-vtkAppendFilter.cxx \
    5341               patch-vtkBMPReader.cxx \
    5442               patch-vtkBooleanTexture.cxx \
     43               patch-vtkBranchExtentTranslator.cxx \
    5544               patch-vtkCardinalSpline.cxx \
    56                patch-vtkCocoaGLView.h \
    57                patch-vtkCocoaGLView.mm \
    58                patch-vtkImageReader.cxx \
     45               patch-vtkDecimate.cxx \
    5946               patch-vtkOSXRenderingTclInit.c \
    6047               patch-vtkTkWidgetsInit.cxx
    6148
     
    6956        configure.args-delete   "-D VTK_USE_COCOA:BOOL=ON"
    7057        configure.args-append   -D VTK_USE_COCOA:BOOL=OFF \
    7158                                -D VTK_USE_X:BOOL=ON \
     59                                -D OPENGL_INCLUDE_DIR:PATH=/usr/X11R6/include/ \
    7260                                -D OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib \
    7361                                -D OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.dylib
    7462}
    75 
    76