git: 0c974e9c7e64 - main - www/wget2: Unbreak on HEAD

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

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

commit 0c974e9c7e6409926ff7589c55221872c7652c62
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-02 11:07:53 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-02 11:38:33 +0000

    www/wget2: Unbreak on HEAD
    
    Approved by:    portmgr (blanket)
---
 www/wget2/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/www/wget2/Makefile b/www/wget2/Makefile
index 7f479f1e44de..638e102ed096 100644
--- a/www/wget2/Makefile
+++ b/www/wget2/Makefile
@@ -101,10 +101,16 @@ LZMA_CONFIGURE_WITH=	lzma
 
 BZIP2_CONFIGURE_WITH=	bzip2
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=	-Wno-error=int-conversion
+.endif
+
 post-patch-MANPAGES-off:
 	@${REINPLACE_CMD} -e '/AC_CHECK_PROGS/ s|pandoc|&-not-found|' ${WRKSRC}/configure.ac
 
 post-patch-DOXYGEN-off:
 	@${REINPLACE_CMD} -e '/AC_CHECK_PROGS/ s|doxygen|&-not-found|' ${WRKSRC}/configure.ac
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>