git: 6dbe154311d8 - main - devel/ocaml-csexp: fix build on powerpc

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

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

commit 6dbe154311d8f611c3f2b422cc0d942513d6baef
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-12 16:42:14 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-12 21:42:00 +0000

    devel/ocaml-csexp: fix build on powerpc
---
 devel/ocaml-csexp/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/devel/ocaml-csexp/Makefile b/devel/ocaml-csexp/Makefile
index 63e94149eaa6..9076698d48dd 100644
--- a/devel/ocaml-csexp/Makefile
+++ b/devel/ocaml-csexp/Makefile
@@ -20,6 +20,12 @@ PORTDOCS=	CHANGES.md LICENSE.md README.md
 
 OPTIONS_DEFINE=		DOCS
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USE_BINUTILS=	yes
+.endif
+
 post-patch:
 	${REINPLACE_CMD} \
 		-e "s/(name ${PORTNAME})/&\n (version ${PORTVERSION})/" \