Skip to content

Commit

Permalink
m4: fix build on Rosetta
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 authored and mascguy committed Aug 7, 2022
1 parent 2449c14 commit 6958029
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion devel/m4/Portfile
Expand Up @@ -9,7 +9,6 @@ categories devel
license GPL-3+
installs_libs no
maintainers nomaintainer
platforms darwin
description GNU macro processor

long_description \
Expand Down Expand Up @@ -49,6 +48,13 @@ configure.args --disable-silent-rules \
--with-packager-bug-reports=https://trac.macports.org/wiki/Tickets \
ac_cv_libsigsegv=no

# Fix for Rosetta: https://trac.macports.org/ticket/64487
platform darwin {
if {${os.major} == 10 && ${build_arch} eq "ppc"} {
configure.args-append --build=powerpc-apple-darwin${os.major}
}
}

post-destroot {
move ${destroot}${prefix}/share/info/m4.info ${destroot}${prefix}/share/info/gm4.info

Expand Down

0 comments on commit 6958029

Please sign in to comment.