Ticket #51643: patch-qt5-1.0.tcl.diff

File patch-qt5-1.0.tcl.diff, 1.7 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 8 years ago)
  • qt5-1.0.tcl

    old new  
    5454# no universal binary support in Qt 5
    5555#     see http://lists.qt-project.org/pipermail/interest/2012-December/005038.html
    5656#     and https://bugreports.qt.io/browse/QTBUG-24952
    57 supported_archs i386 x86_64
    58 if { ![exists universal_variant] || [option universal_variant] } {
    59     PortGroup muniversal 1.0
    60     universal_archs_supported i386 x86_64
     57default supported_archs {"i386 x86_64"}
     58# override universal_setup found in portutil.tcl so it uses muniversal PortGroup
     59# see #51643
     60proc universal_setup {args} {
     61    if {[variant_exists universal]} {
     62        ui_debug "universal variant already exists, so not adding the default one"
     63    } elseif {[exists universal_variant] && ![option universal_variant]} {
     64        ui_debug "universal_variant is false, so not adding the default universal variant"
     65    } elseif {[exists use_xmkmf] && [option use_xmkmf]} {
     66        ui_debug "using xmkmf, so not adding the default universal variant"
     67    } elseif {![exists os.universal_supported] || ![option os.universal_supported]} {
     68        ui_debug "OS doesn't support universal builds, so not adding the default universal variant"
     69    } elseif {[llength [option supported_archs]] == 1} {
     70        ui_debug "only one arch supported, so not adding the default universal variant"
     71    } else {
     72        ui_debug "adding universal variant via PortGroup muniversal"
     73        uplevel "PortGroup muniversal 1.0"
     74        uplevel "default universal_archs_supported {\"i386 x86_64\"}"
     75    }
    6176}
    6277
    6378# standard Qt5 name