Ticket #46853: vtk.diff

File vtk.diff, 2.4 KB (added by RJVB (René Bertin), 9 years ago)

diff taking into account most of my remarks

  • /opt/local/var/macports/sources/

    old new  
    66
    77name                vtk
    88version             6.2.0
    9 revision            0
     9revision            1
    1010categories          graphics devel
    1111platforms           darwin
    1212license             BSD
     
    4848}
    4949
    5050# As proposed at #46853
    51 variant qt4 description {Add Qt4 support.} {
     51variant qt4 conflicts qt5 description {Add Qt4 support.} {
     52    replaced_by         ${name}-qt4
     53    PortGroup           obsolete 1.0
     54}
     55
     56subport ${name}-qt4 {
    5257    PortGroup           qt4 1.0
     58    conflicts           ${name} ${name}-qt5
     59    description         ${description}. Built with Qt4 support.
     60    long_description    ${long_description} Built with Qt4 support.
    5361    configure.args-append \
    5462                        -DQT_QMAKE_EXECUTABLE:PATH=${qt_qmake_cmd} \
    55                         -DVTK_Group_Qt:BOOL=ON
     63                        -DVTK_Group_Qt:BOOL=ON \
     64                        -DVTK_INSTALL_QT_PLUGIN_DIR:PATH=${qt_plugins_dir}/designer
     65}
     66
     67variant qt5 conflicts qt4 description {Add Qt5 support.} {
     68    replaced_by         ${name}-qt5
     69    PortGroup           obsolete 1.0
    5670}
    5771
    58 variant qt5 description {Add Qt5 support.} {
     72subport ${name}-qt5 {
    5973    PortGroup           qt5 1.0
     74    conflicts           ${name} ${name}-qt4
     75    description         ${description}. Built with Qt5 support.
     76    long_description    ${long_description} Built with Qt5 support.
     77    configure.args-append \
     78                        -DQT_QMAKE_EXECUTABLE:PATH=${qt_qmake_cmd} \
     79                        -DVTK_Group_Qt:BOOL=ON \
     80                        -DVTK_INSTALL_QT_PLUGIN_DIR:PATH=${qt_plugins_dir}/designer
    6081}
    6182
    6283variant python27 description {Add Python 2.7 support.} {
     
    6990                        -DVTK_INSTALL_PYTHON_MODULE_DIR=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
    7091}
    7192
     93post-destroot {
     94    if {[info exists qt_plugins_dir]} {
     95        if {[file exists ${destroot}${qt_plugins_dir}/designer/libQVTKWidgetPlugin.dylib]} {
     96            system "install_name_tool -id libQVTKWidgetPlugin.dylib \
     97                        ${destroot}${qt_plugins_dir}/designer/libQVTKWidgetPlugin.dylib"
     98        }
     99    }
     100}
     101
    72102default_variants    +python27
    73103
    74104livecheck.type      regex