Ticket #64623: dmd.patch

File dmd.patch, 1.1 KB (added by ryandesign (Ryan Carsten Schmidt), 3 years ago)
  • lang/dmd/Portfile

    diff --git a/lang/dmd/Portfile b/lang/dmd/Portfile
    index 665c829ddd6..2eac0a12919 100644
    a b if {![info exists universal_possible]} { 
    5151    set universal_possible [expr {${os.universal_supported} && [llength ${configure.universal_archs}] >= 2}]
    5252}
    5353if {!${universal_possible} || ![variant_isset universal]} {
    54     if { ${build_arch} eq "x86_64" || ${build_arch} eq "ppc64" } {
     54    if {${build_arch} in [list arm64 ppc64 x86_64]} {
    5555        build.args-append MODEL=64
    5656        destroot.args-append MODEL=64
    5757    } else {
    if {!${universal_possible} || ![variant_isset universal]} { 
    5959        destroot.args-append MODEL=32
    6060    }
    6161} else {
     62    lappend merger_build_args(arm64)  MODEL=64
    6263    lappend merger_build_args(x86_64) MODEL=64
    6364    lappend merger_build_args(i386)   MODEL=32
    6465    lappend merger_build_args(ppc64)  MODEL=64
    6566    lappend merger_build_args(ppc)    MODEL=32
     67    lappend merger_destroot_args(arm64)  MODEL=64
    6668    lappend merger_destroot_args(x86_64) MODEL=64
    6769    lappend merger_destroot_args(i386)   MODEL=32
    6870    lappend merger_destroot_args(ppc64)  MODEL=64