diff --git a/devel/dub/Portfile b/devel/dub/Portfile
index 92a82d98721..5a880b8ab51 100644
a
|
b
|
post-patch { |
46 | 46 | reinplace "s|__MACPORTS_PREFIX__|${prefix}|g" source/dub/dub.d |
47 | 47 | } |
48 | 48 | if {!${universal_possible} || ![variant_isset universal]} { |
49 | | if { ${build_arch} eq "x86_64" || ${build_arch} eq "ppc64" } { |
| 49 | if {${build_arch} in [list arm64 ppc64 x86_64]} { |
50 | 50 | build.env-append "DMD=${prefix}/bin/dmd -m64" |
51 | 51 | } else { |
52 | 52 | build.env-append "DMD=${prefix}/bin/dmd -m32" |
53 | 53 | } |
54 | 54 | } else { |
| 55 | lappend merger_build_env(arm64) "DMD=${prefix}/bin/dmd -m64" |
55 | 56 | lappend merger_build_env(x86_64) "DMD=${prefix}/bin/dmd -m64" |
56 | 57 | lappend merger_build_env(i386) "DMD=${prefix}/bin/dmd -m32" |
57 | 58 | lappend merger_build_env(ppc64) "DMD=${prefix}/bin/dmd -m64" |
diff --git a/lang/dmd-doc/Portfile b/lang/dmd-doc/Portfile
index 8388406b314..a38cc151ed0 100644
a
|
b
|
depends_build port:phobos |
28 | 28 | |
29 | 29 | use_configure no |
30 | 30 | |
31 | | if {${build_arch} eq "x86_64"} { |
| 31 | if {${build_arch} in [list arm64 ppc64 x86_64]} { |
32 | 32 | set model 64 |
33 | 33 | } else { |
34 | 34 | set model 32 |
diff --git a/lang/dmd-tools/Portfile b/lang/dmd-tools/Portfile
index 5a10691e7d4..08230717dd8 100644
a
|
b
|
if {![info exists universal_possible]} { |
44 | 44 | set universal_possible [expr {${os.universal_supported} && [llength ${configure.universal_archs}] >= 2}] |
45 | 45 | } |
46 | 46 | if {!${universal_possible} || ![variant_isset universal]} { |
47 | | if { ${build_arch} eq "x86_64" || ${build_arch} eq "ppc64" } { |
| 47 | if {${build_arch} in [list arm64 ppc64 x86_64]} { |
48 | 48 | build.args-append MODEL=64 |
49 | 49 | destroot.args-append MODEL=64 |
50 | 50 | } else { |
… |
… |
if {!${universal_possible} || ![variant_isset universal]} { |
52 | 52 | destroot.args-append MODEL=32 |
53 | 53 | } |
54 | 54 | } else { |
| 55 | lappend merger_build_args(arm64) MODEL=64 |
55 | 56 | lappend merger_build_args(x86_64) MODEL=64 |
56 | 57 | lappend merger_build_args(i386) MODEL=32 |
57 | 58 | lappend merger_build_args(ppc64) MODEL=64 |
58 | 59 | lappend merger_build_args(ppc) MODEL=32 |
59 | 60 | |
| 61 | lappend merger_destroot_args(arm64) MODEL=64 |
60 | 62 | lappend merger_destroot_args(x86_64) MODEL=64 |
61 | 63 | lappend merger_destroot_args(i386) MODEL=32 |
62 | 64 | lappend merger_destroot_args(ppc64) MODEL=64 |
diff --git a/lang/dmd/Portfile b/lang/dmd/Portfile
index 665c829ddd6..2eac0a12919 100644
a
|
b
|
if {![info exists universal_possible]} { |
51 | 51 | set universal_possible [expr {${os.universal_supported} && [llength ${configure.universal_archs}] >= 2}] |
52 | 52 | } |
53 | 53 | if {!${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]} { |
55 | 55 | build.args-append MODEL=64 |
56 | 56 | destroot.args-append MODEL=64 |
57 | 57 | } else { |
… |
… |
if {!${universal_possible} || ![variant_isset universal]} { |
59 | 59 | destroot.args-append MODEL=32 |
60 | 60 | } |
61 | 61 | } else { |
| 62 | lappend merger_build_args(arm64) MODEL=64 |
62 | 63 | lappend merger_build_args(x86_64) MODEL=64 |
63 | 64 | lappend merger_build_args(i386) MODEL=32 |
64 | 65 | lappend merger_build_args(ppc64) MODEL=64 |
65 | 66 | lappend merger_build_args(ppc) MODEL=32 |
| 67 | lappend merger_destroot_args(arm64) MODEL=64 |
66 | 68 | lappend merger_destroot_args(x86_64) MODEL=64 |
67 | 69 | lappend merger_destroot_args(i386) MODEL=32 |
68 | 70 | lappend merger_destroot_args(ppc64) MODEL=64 |
diff --git a/lang/druntime/Portfile b/lang/druntime/Portfile
index 964b64d1198..a62c2af1802 100644
a
|
b
|
if {![info exists universal_possible]} { |
39 | 39 | set universal_possible [expr {${os.universal_supported} && [llength ${configure.universal_archs}] >= 2}] |
40 | 40 | } |
41 | 41 | if {!${universal_possible} || ![variant_isset universal]} { |
42 | | if { ${build_arch} eq "x86_64" || ${build_arch} eq "ppc64" } { |
| 42 | if {${build_arch} in [list arm64 ppc64 x86_64]} { |
43 | 43 | build.args-append MODEL=64 |
44 | 44 | } else { |
45 | 45 | build.args-append MODEL=32 |
46 | 46 | } |
47 | 47 | } else { |
| 48 | lappend merger_build_args(arm64) MODEL=64 |
48 | 49 | lappend merger_build_args(x86_64) MODEL=64 |
49 | 50 | lappend merger_build_args(i386) MODEL=32 |
50 | 51 | lappend merger_build_args(ppc64) MODEL=64 |
… |
… |
destroot { |
62 | 63 | file copy ${worksrcpath}/benchmark ${destroot}${prefix}/share/${name} |
63 | 64 | } |
64 | 65 | |
65 | | |
66 | 66 | github.livecheck.regex {([^"-]+)} |
diff --git a/lang/phobos/Portfile b/lang/phobos/Portfile
index c9a1c5f5432..c632870cad2 100644
a
|
b
|
if {![info exists universal_possible]} { |
59 | 59 | set universal_possible [expr {${os.universal_supported} && [llength ${configure.universal_archs}] >= 2}] |
60 | 60 | } |
61 | 61 | if {!(${universal_possible} && [variant_isset universal])} { |
62 | | if { ${build_arch} eq "x86_64" || ${build_arch} eq "ppc64" } { |
| 62 | if {${build_arch} in [list arm64 ppc64 x86_64]} { |
63 | 63 | build.args-append MODEL=64 DRUNTIME=${workpath}/druntime/${build_arch}/libdruntime.a |
64 | 64 | } else { |
65 | 65 | build.args-append MODEL=32 DRUNTIME=${workpath}/druntime/${build_arch}/libdruntime.a |
66 | 66 | } |
67 | 67 | } else { |
| 68 | lappend merger_build_args(arm64) MODEL=64 DRUNTIME=${workpath}/druntime/arm64/libdruntime.a |
68 | 69 | lappend merger_build_args(x86_64) MODEL=64 DRUNTIME=${workpath}/druntime/x86_64/libdruntime.a |
69 | 70 | lappend merger_build_args(i386) MODEL=32 DRUNTIME=${workpath}/druntime/i386/libdruntime.a |
70 | 71 | lappend merger_build_args(ppc64) MODEL=64 DRUNTIME=${workpath}/druntime/ppc64/libdruntime.a |