git: 56f11644f007 - main - devel/gcc-msp430-ti-toolchain: Unbreak with llvm15

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 18 May 2023 16:09:26 UTC
The branch main has been updated by bofh:

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

commit 56f11644f007b1d7698bef99af2149b5beefe1d3
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-18 15:46:14 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-18 16:09:11 +0000

    devel/gcc-msp430-ti-toolchain: Unbreak with llvm15
    
    Approved by:    portmgr (blanket)
---
 devel/gcc-msp430-ti-toolchain/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/devel/gcc-msp430-ti-toolchain/Makefile b/devel/gcc-msp430-ti-toolchain/Makefile
index 7cbd152de6ed..51081d9c1a87 100644
--- a/devel/gcc-msp430-ti-toolchain/Makefile
+++ b/devel/gcc-msp430-ti-toolchain/Makefile
@@ -91,6 +91,12 @@ CONFIGURE_ARGS_COMMON=	--prefix=${INTERIM_PREFIX} \
 			--disable-nls \
 			--enable-initfini-array
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=       -Wno-error=int-conversion
+.endif
+
 pre-patch:
 	@${ECHO_MSG} "===> Apply distribution patches..."
 	@${ECHO_MSG} "====> Patch gcc"
@@ -209,4 +215,4 @@ do-install:
 		${STAGEDIR}${DOCSDIR}/slau${DOC_VERSION}.pdf
 	${INSTALL_DATA} ${FILESDIR}/watchdog.txt ${STAGEDIR}${DOCSDIR}/watchdog.txt
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>