git: aee41bf6b83b - main - science/molscript: Fix build with llvm15

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 06 Jun 2023 20:45:45 UTC
The branch main has been updated by bofh:

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

commit aee41bf6b83bfd73152e2ceacc33cd5dae919ce2
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-06 19:52:54 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-06 20:45:25 +0000

    science/molscript: Fix build with llvm15
    
    Approved by:    portmgr (blanket)
---
 science/molscript/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/science/molscript/Makefile b/science/molscript/Makefile
index 89b93d83db32..c3762268b2b2 100644
--- a/science/molscript/Makefile
+++ b/science/molscript/Makefile
@@ -36,6 +36,12 @@ OPTIONS_DEFINE=	DOCS
 
 PORTDOCS=	*
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=int-conversion
+.endif
+
 do-install:
 .for e in ${PROGS}
 	${INSTALL_PROGRAM} ${WRKSRC}/../${e} ${STAGEDIR}${PREFIX}/bin
@@ -44,4 +50,4 @@ do-install:
 do-install-DOCS-on:
 	cd ${WRKSRC}/../docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>