git: 1cf9ad81285d - main - lang/ocaml-camlidl: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Fri, 17 Jan 2025 21:47:10 UTC
The branch main has been updated by pkubaj:

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

commit 1cf9ad81285de83d1f8ce1593f334eb1cc02223c
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-16 13:34:30 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-17 21:45:31 +0000

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

diff --git a/lang/ocaml-camlidl/Makefile b/lang/ocaml-camlidl/Makefile
index e427ba167eaf..940c462429b5 100644
--- a/lang/ocaml-camlidl/Makefile
+++ b/lang/ocaml-camlidl/Makefile
@@ -23,6 +23,12 @@ DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
 OPTIONS_DEFINE=		DOCS
 DOCS_BUILD_DEPENDS=	hevea>=0:textproc/hevea
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USE_BINUTILS=	yes
+.endif
+
 post-patch:
 	@${LN} -sf ${WRKSRC}/config/Makefile.unix ${WRKSRC}/config/Makefile