Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
qt5*: throw error for OS versions known not to work
  • Loading branch information
MarcusCalhoun-Lopez committed Feb 16, 2017
1 parent b384875 commit 34993a5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions aqua/qt5/Portfile
Expand Up @@ -601,6 +601,15 @@ foreach {module module_info} [array get modules] {
}
}

# Qt uses CFRunLoopTimerCreateWithHandler, which was not introduced until Mac OS X 10.7
# see https://developer.apple.com/reference/corefoundation/1542555-cfrunlooptimercreatewithhandler?language=objc
if { ${os.major} < 11 } {
pre-fetch {
ui_error "${subport} requires OS X 10.7 or later"
return -code error "incompatible OS version"
}
}

# https://codereview.qt-project.org/#/c/141654/
patchfiles-append patch-add_sdk.diff

Expand Down
9 changes: 9 additions & 0 deletions aqua/qt55/Portfile
Expand Up @@ -583,6 +583,15 @@ foreach {module module_info} [array get modules] {
}
}

# Qt uses CFRunLoopTimerCreateWithHandler, which was not introduced until Mac OS X 10.7
# see https://developer.apple.com/reference/corefoundation/1542555-cfrunlooptimercreatewithhandler?language=objc
if { ${os.major} < 11 } {
pre-fetch {
ui_error "${subport} requires OS X 10.7 or later"
return -code error "incompatible OS version"
}
}

# https://codereview.qt-project.org/#/c/141654/
patchfiles-append patch-add_sdk.diff

Expand Down

0 comments on commit 34993a5

Please sign in to comment.