Skip to content

Commit

Permalink
groff: 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 b1f6023 commit 7ea86b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sysutils/groff/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ name groff
version 1.22.4
revision 6
categories sysutils textproc
platforms darwin
maintainers nomaintainer
license GPL-3+
installs_libs no
Expand Down Expand Up @@ -47,6 +46,13 @@ depends_lib-append port:ghostscript \
port:uchardet \
port:urw-fonts

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

post-destroot {
delete ${destroot}${prefix}/lib/charset.alias
}

0 comments on commit 7ea86b3

Please sign in to comment.