Ticket #14426: Portfile.patch
File Portfile.patch, 2.5 KB (added by adfernandes (Andrew Fernandes), 17 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name vtk5 6 version 5.0. 36 version 5.0.4 7 7 categories graphics devel 8 8 maintainers rene.donner@mac.com 9 9 description 3D visualization toolkit … … 16 16 homepage http://www.vtk.org/ 17 17 platforms darwin freebsd 18 18 master_sites http://www.vtk.org/files/release/5.0/ 19 checksums vtk-${version}.tar.gz md5 0148a3d3c46d0599ab63e79f7f406609\20 vtkdata-${version}.tar.gz md5 4752aa5a363eae72abf3cb5c1f0fe4d919 checksums vtk-${version}.tar.gz md5 1e353886bbd6559633e31436d88a1f03 \ 20 vtkdata-${version}.tar.gz md5 95dced81c2c16687dc4e571a3d82092c 21 21 22 22 23 depends_build bin:cmake:cmake 23 depends_build bin:cmake:cmake port:tcl 24 24 distfiles vtk-${version}.tar.gz \ 25 25 vtkdata-${version}.tar.gz 26 26 distname VTK … … 40 40 patchfiles patch-Rendering-vtkCocoaRenderWindow.mm 41 41 42 42 configure { system "cd ${worksrcpath} && ${configure.env} cmake ${configure.args} ${worksrcpath}" } 43 configure.args -DBUILD_SHARED_LIBS:BOOL=O FF\43 configure.args -DBUILD_SHARED_LIBS:BOOL=ON \ 44 44 -DCMAKE_LIBRARY_PATH:PATH=${prefix}/lib \ 45 45 -DCMAKE_INCLUDE_PATH:PATH=${prefix}/include \ 46 46 -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \ … … 52 52 -DVTK_WRAP_TCL:BOOL=ON \ 53 53 -DVTK_USE_COCOA:BOOL=ON \ 54 54 -DVTK_DATA_ROOT:PATH=${prefix}/share/VTKData \ 55 -DVTK_TCL_LIBRARY_DIR:FILEPATH=${prefix}/lib/tcl8. 4\55 -DVTK_TCL_LIBRARY_DIR:FILEPATH=${prefix}/lib/tcl8.5 \ 56 56 -DVTK_REQUIRED_EXE_LINKER_FLAGS:STRING=-rpath ${prefix}/lib 57 57 58 58 configure.env LDFLAGS="-L${prefix}/lib" \ … … 68 68 69 69 variant x11 { 70 70 depends_build-append lib:libX11:XFree86 71 configure.args-delete "-D 71 configure.args-delete "-DVTK_USE_COCOA:BOOL=ON" 72 72 configure.args-append -DVTK_USE_COCOA:BOOL=OFF \ 73 73 -DVTK_USE_X:BOOL=ON \ 74 74 -DOPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib \ … … 81 81 -DPYTHON_EXECUTABLE:FILEPATH=${prefix}/bin/python2.5 \ 82 82 -DPYTHON_INCLUDE_PATH:FILEPATH=${prefix}/include/python2.5 \ 83 83 -DPYTHON_LIBRARY:FILEPATH=${prefix}/lib/libpython2.5.dylib \ 84 -DVTK_WRAP_PYTHON:BOOL=ON \ 85 -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${prefix} --root=${destdir} 84 -DVTK_WRAP_PYTHON:BOOL=ON 85 pre-configure { 86 system "echo \"VTK_PYTHON_SETUP_ARGS:STRING=--prefix=${prefix} --root=${destroot}\" >> CMakeCache.txt" 87 } 86 88 } 87 89 88 90 set vtkdest ${destroot}${prefix}/share/doc/${name}