git: 3482be7bea8f - main - devel/tcltls: Unbreak on HEAD

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 04 May 2023 01:44:45 UTC
The branch main has been updated by bofh:

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

commit 3482be7bea8f2151ba03cbb4adb44a18f1c868ac
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-03 19:39:31 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-04 01:44:28 +0000

    devel/tcltls: Unbreak on HEAD
    
    Approved by:    portmgr (blanket)
---
 devel/tcltls/Makefile | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git a/devel/tcltls/Makefile b/devel/tcltls/Makefile
index 1caff0151078..6e3d841be608 100644
--- a/devel/tcltls/Makefile
+++ b/devel/tcltls/Makefile
@@ -13,20 +13,28 @@ LICENSE_NAME=	Tcl/Tk License
 LICENSE_FILE=	${WRKSRC}/license.terms
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
-OPTIONS_DEFINE=	DOCS
+USES=		tcl:tea ssl
 
-USES+=		tcl:tea ssl
 CONFIGURE_ARGS+=--with-ssl-dir=${OPENSSLBASE}	\
 		--enable-ssl-fastpath	\
 		--disable-rpath
+CONFIGURE_ENV+=	PATH=${OPENSSLBASE}/bin:${PATH}
+
+MAKE_ARGS+=	"PACKAGE_INSTALL_DIR=${PREFIX}/lib/${TCL_PKG}"
+MAKE_ENV+=	PATH=${OPENSSLBASE}/bin:${PATH}
+TEST_TARGET=	test
 
 PLIST_FILES=	lib/${TCL_PKG}/tcltls.so \
 		lib/${TCL_PKG}/pkgIndex.tcl
 PORTDOCS=	*
-MAKE_ARGS+=	"PACKAGE_INSTALL_DIR=${PREFIX}/lib/${TCL_PKG}"
-TEST_TARGET=	test
-MAKE_ENV+=	PATH=${OPENSSLBASE}/bin:${PATH}
-CONFIGURE_ENV+=	PATH=${OPENSSLBASE}/bin:${PATH}
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=       -Wno-error=int-conversion
+.endif
 
 post-patch:
 	${MV} ${WRKSRC}/tests/ciphers.test ${WRKSRC}/tests/ciphers.test.broken
@@ -35,4 +43,4 @@ post-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/tls.htm ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>