git: cf36cf6227e4 - main - converters/ish: Fix build with llvm15

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 05 Jun 2023 18:09:08 UTC
The branch main has been updated by bofh:

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

commit cf36cf6227e4084b9298ed11160fb7c418fd782b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-05 15:28:49 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-05 18:09:00 +0000

    converters/ish: Fix build with llvm15
    
    - Add LICENSE NONE
---
 converters/ish/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/converters/ish/Makefile b/converters/ish/Makefile
index 16fbe32bad69..657eefa00c67 100644
--- a/converters/ish/Makefile
+++ b/converters/ish/Makefile
@@ -8,13 +8,21 @@ DISTNAME=	${PORTNAME}${PORTVERSION:S/.//}
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Binary-to-text file-encoder
 
+LICENSE=	NONE
+
 MAKEFILE=	makefile
 MAKE_ARGS=	CFLAGS="${CFLAGS}" DEST=${PREFIX}/bin
 ALL_TARGET=	ish
 
 PLIST_FILES=	bin/ish
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=int-conversion
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/ish ${STAGEDIR}${PREFIX}/bin
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>