git: b784cdfc9d67 - main - net/unison240: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 12 Jan 2025 21:43:36 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b784cdfc9d670d3bb034859529185206c00c84a5

commit b784cdfc9d670d3bb034859529185206c00c84a5
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-11 16:47:41 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-12 21:37:23 +0000

    net/unison240: fix build on powerpc
---
 net/unison240/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/net/unison240/Makefile b/net/unison240/Makefile
index 301511819842..0713747ae73c 100644
--- a/net/unison240/Makefile
+++ b/net/unison240/Makefile
@@ -55,6 +55,12 @@ USES+=			gettext-runtime gnome
 PLIST_SUB+=		X11=""
 .endif
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USE_BINUTILS=	yes
+.endif
+
 pre-patch:
 # BCP 5/16: Eta-expand for backward compatibility with OCaml >4.02
 	@${REINPLACE_CMD} -e 's,= Unix\.symlink,s1 s2 & s1 s2,' \