git: 65331804fb17 - main - net/tn5250: Unbreak on HEAD

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

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

commit 65331804fb1722d621a1f57bccdc698967fef18f
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-02 13:49:59 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-02 13:52:37 +0000

    net/tn5250: Unbreak on HEAD
    
    - Add LICENSE LGPL21
    - Pet portclippy
    - Adopt port
---
 net/tn5250/Makefile | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/net/tn5250/Makefile b/net/tn5250/Makefile
index 3de76222d21c..ea39e5adbe2a 100644
--- a/net/tn5250/Makefile
+++ b/net/tn5250/Makefile
@@ -4,20 +4,31 @@ PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	SF
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	5250 Telnet protocol and Terminal
 WWW=		http://tn5250.sourceforge.net/
 
+LICENSE=	LGPL21
+LICENSE_FILE=	${WRKSRC}/COPYING
+
 USES=		libtool ncurses ssl
+USE_LDCONFIG=	yes
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--enable-os-dir=no --with-ssl=${OPENSSLBASE}
-USE_LDCONFIG=	yes
+
 INSTALL_TARGET=	install-strip
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=       -Wno-error=int-conversion
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e \
 		'/^SUBDIRS =/s|linux||g' ${WRKSRC}/Makefile.in
 	@${REINPLACE_CMD} -e \
 		's|: install-data-local|:|g' ${WRKSRC}/freebsd/Makefile.in
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>