Ticket #48369: patch-qt4-osx-1011.diff

File patch-qt4-osx-1011.diff, 1.4 KB (added by mdeaudelin (Mathieu Deaudelin-Lemay), 9 years ago)
  • Portfile

    old new  
    4646                    port:libmng \
    4747                    port:jpeg
    4848
     49# Reference platforms for Qt 4.8 are OS X 10.6 and 10.7.
     50if {${os.platform} eq "darwin" && ${os.major} > 14} {
     51    pre-fetch {
     52        ui_warn "OS X versions above 10.10 (Yosemite) are not supported platforms for Qt 4.8."
     53        ui_warn "Will build using OS X 10.10 as deployment target and SDK."
     54    }
     55
     56    # Qt 4.8 fails to build on OS X 10.11 as it uses deprecated API (ColorSync)
     57    # which has been removed from the 10.11 SDK headers.
     58    macosx_deployment_target 10.10
     59}
     60
    4961# find a way to specify the OS MINOR version.  For OSX 10.X, this
    5062# value will be X.  The type is this variable is integer, so we can
    5163# use "==" and so forth for comparison.
     
    237249patchfiles-append   \
    238250    patch-tools_macdeployqt_shared_shared.cpp.diff
    239251
    240 # error out if trying to build on a new OSX version (> 10.10).
    241 
    242 platform darwin {
    243     if {${MINOR} > 10} {
    244         # This project needs to be updated to build with clang++ against libc++
    245         depends_lib
    246         depends_run
    247         pre-fetch {
    248             ui_error "$name does not currently build on OSX later than 10.10 'Yosemite'."
    249             error "unsupported platform"
    250         }
    251     }
    252 }
    253 
    254252###############################################
    255253
    256254# disable CCACHE for now (ticket #34856)