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 |
| 57 | default supported_archs {"i386 x86_64"} |
| 58 | # override universal_setup found in portutil.tcl so it uses muniversal PortGroup |
| 59 | # see #51643 |
| 60 | proc 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 | } |