Ticket #53444: Portfile.diff

File Portfile.diff, 3.0 KB (added by tenomoto (Takeshi Enomoto), 8 years ago)
  • graphics/vtk/Portfile

    diff --git a/graphics/vtk/Portfile b/graphics/vtk/Portfile
    index 69286e1ea3..b01e7c3e37 100644
    a b PortGroup cmake 1.0 
    55PortGroup           muniversal 1.0
    66
    77name                vtk
    8 version             7.1.0
     8version             7.1.1
    99revision            0
    1010categories          graphics devel
    1111platforms           darwin
    master_sites http://www.vtk.org/files/release/${branch} 
    2626
    2727distname            VTK-${version}
    2828
    29 checksums           rmd160  0544631ac78816d649578511a19b8f14d8e228af \
    30                     sha256  5f3ea001204d4f714be972a810a62c0f2277fbb9d8d2f8df39562988ca37497a
     29checksums           rmd160  bfc1baf925ba1f497f14a4576fd0a7956ee42d29 \
     30                    sha256  2d5cdd048540144d821715c718932591418bb48f5b6bb19becdae62339efa75a
    3131
    3232cmake.out_of_source yes
    3333
    if {${os.major} <= 10} { 
    4848}
    4949
    5050# As proposed at #46853
    51 variant qt4 description {Add Qt4 support.} {
     51variant qt4 description conflicts qt5 {Add Qt4 support.} {
    5252    PortGroup           qt4 1.0
    5353    configure.args-append \
    5454                        -DQT_QMAKE_EXECUTABLE:PATH=${qt_qmake_cmd} \
    5555                        -DVTK_Group_Qt:BOOL=ON
    5656}
    5757
    58 variant qt5 description {Add Qt5 support.} {
     58variant qt5 description conflicts qt4 {Add Qt5 support.} {
    5959    PortGroup           qt5 1.0
    6060}
    6161
    62 variant python27 conflicts python35 description {Add Python 2.7 support.} {
     62variant python27 conflicts python35 python36 description {Add Python 2.7 support.} {
    6363    depends_lib-append  port:python27
    6464    configure.args-delete \
    6565                        -DVTK_WRAP_PYTHON:BOOL=OFF
    variant python27 conflicts python35 description {Add Python 2.7 support.} { 
    6969                        -DVTK_INSTALL_PYTHON_MODULE_DIR=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
    7070}
    7171
    72 variant python35 conflicts python27 description {Add Python 3.5 support.} {
     72variant python35 conflicts python27 python36 description {Add Python 3.5 support.} {
    7373    depends_lib-append  port:python35
    7474    configure.args-delete \
    7575                        -DVTK_WRAP_PYTHON:BOOL=OFF
    variant python35 conflicts python27 description {Add Python 3.5 support.} { 
    7979                        -DVTK_INSTALL_PYTHON_MODULE_DIR=${frameworks_dir}/Python.framework/Versions/3.5/lib/python3.5/site-packages
    8080}
    8181
    82 if {![variant_isset python35]} {
     82variant python36 conflicts python27 python35 description {Add Python 3.6 support.} {
     83    depends_lib-append  port:python36
     84    configure.args-delete \
     85                        -DVTK_WRAP_PYTHON:BOOL=OFF
     86    configure.args-append \
     87                        -DVTK_WRAP_PYTHON:BOOL=ON \
     88                        -DPYTHON_EXECUTABLE:STRING=${prefix}/bin/python3.6 \
     89                        -DVTK_INSTALL_PYTHON_MODULE_DIR=${frameworks_dir}/Python.framework/Versions/3.6/lib/python3.6/site-packages
     90}
     91
     92if {![variant_isset python35] && ![variant_isset python36]} {
    8393    default_variants +python27
    8494}
    8595