git: 89ea113f0776 - main - lang/squeak: unbreak build on current

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Fri, 02 Jun 2023 06:54:17 UTC
The branch main has been updated by fernape:

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

commit 89ea113f0776c599e0f7c490bcfba9d7101c3dc8
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2023-06-01 06:35:26 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-06-02 06:49:10 +0000

    lang/squeak: unbreak build on current
    
    PR:             271406
    Reported by:    Trond.Endrestol@ximalas.info
    Approved by:    takeshi.mutoh@gmail.com (maintainer)
---
 lang/squeak/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lang/squeak/Makefile b/lang/squeak/Makefile
index 7ea67de7fcbe..4c1e8c001062 100644
--- a/lang/squeak/Makefile
+++ b/lang/squeak/Makefile
@@ -62,6 +62,12 @@ IMAGES=		Squeak${IMAGE_FULL_VERSION}.image \
 		Squeak${IMAGE_FULL_VERSION}.changes \
 		${SQUEAK_SRC}
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=int-conversion
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's,<utmp\.h>,<utmpx.h>,' \
 		${WRKSRC}/unix/plugins/PseudoTTYPlugin/openpty.h
@@ -81,4 +87,4 @@ post-install:
 	${INSTALL_DATA} ${IMAGES:S,^,${WRKDIR}/,} \
 		${STAGEDIR}${PREFIX}/lib/squeak
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>