Skip to content

Commit

Permalink
qt5*-qtwebengine: improve OS version error message
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusCalhoun-Lopez committed Feb 15, 2017
1 parent cdf5341 commit 8bd83d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aqua/qt5/Portfile
Expand Up @@ -1080,6 +1080,12 @@ foreach {module module_info} [array get modules] {
# see http://doc.qt.io/qt-5/qtwebengine-platform-notes.html
PortGroup xcodeversion 1.0
minimum_xcodeversions {13 5.1}
if { ${os.major} < 13 } {
pre-fetch {
ui_error "${subport} requires OS X 10.9 or later"
return -code error "incompatible OS version"
}
}

# see http://lists.qt-project.org/pipermail/interest/2016-February/thread.html#20946
# see http://googleappsupdates.blogspot.co.uk/2014/09/google-chrome-64-bit-for-mac-and-windows.html
Expand Down
6 changes: 6 additions & 0 deletions aqua/qt55/Portfile
Expand Up @@ -1083,6 +1083,12 @@ foreach {module module_info} [array get modules] {
# see http://doc.qt.io/qt-5/qtwebengine-platform-notes.html
PortGroup xcodeversion 1.0
minimum_xcodeversions {12 5.1}
if { ${os.major} < 12 } {
pre-fetch {
ui_error "${subport} requires OS X 10.8 or later"
return -code error "incompatible OS version"
}
}

# UsingTheRightCompiler (https://trac.macports.org/wiki/UsingTheRightCompiler)
build.env-append CXX=${configure.cxx}
Expand Down

0 comments on commit 8bd83d8

Please sign in to comment.