Ignore:
Timestamp:
Jan 18, 2016, 2:57:31 PM (3 years ago)
Author:
mcalhoun@…
Message:

qt5 PortGroup: stop install process early if Qt dependency is unsupported on particular OS version (see #50331)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/qt5-1.0.tcl

    r144783 r144784  
    178178#     -DQT_PNG_LIBRARY=${prefix}/lib/libpng.dylib"
    179179
     180# Qt has what is calls reference configurations, which are said to be thoroughly tested
     181# Qt also has configurations which are occasionally tested
     182# see http://doc.qt.io/qt-5/supported-platforms.html#reference-configurations
     183global qt5_min_tested_version
     184global qt5_max_tested_version
     185global qt5_min_reference_version
     186global qt5_max_reference_version
     187set qt5_min_tested_version     11
     188set qt5_max_tested_version     14
     189set qt5_min_reference_version  12
     190set qt5_max_reference_version  14
     191
     192# do not try to install if qt5-qtbase dependency will fail to build
     193# warn about non-reference configurations
     194if { ${os.major} < ${qt5_min_tested_version} } {
     195    pre-fetch {
     196        ui_error "Qt dependency will not build on this platform"
     197        return -code error "unsupported OS"
     198    }
     199}
     200
    180201if {![info exists building_qt5]} {
    181202    depends_lib-append port:qt5-qtbase
Note: See TracChangeset for help on using the changeset viewer.