git: 5cd3890d868a - main - textproc/p5-XML-Bare: Unbreak on HEAD

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 15 May 2023 15:32:02 UTC
The branch main has been updated by bofh:

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

commit 5cd3890d868a4802a7aaa4fe652136dc9c460a2d
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-15 14:54:03 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-15 15:31:47 +0000

    textproc/p5-XML-Bare: Unbreak on HEAD
---
 textproc/p5-XML-Bare/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/textproc/p5-XML-Bare/Makefile b/textproc/p5-XML-Bare/Makefile
index 1fbbdadc0e48..61124fb1d52e 100644
--- a/textproc/p5-XML-Bare/Makefile
+++ b/textproc/p5-XML-Bare/Makefile
@@ -15,10 +15,16 @@ LICENSE_COMB=	dual
 USES=		perl5
 USE_PERL5=	configure
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=	-Wno-error=int-conversion
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} '/LDDLFLAGS/d' ${WRKSRC}/Makefile.PL
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/XML/Bare/Bare.so
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>