git: 1d7ec840bde1 - main - net/pichi: Unbreak on HEAD

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

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

commit 1d7ec840bde1c02d75328f0e7ce93b54e7ba6312
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-02 13:02:40 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-02 13:52:34 +0000

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

diff --git a/net/pichi/Makefile b/net/pichi/Makefile
index 1082644264d7..bb4a70029fb2 100644
--- a/net/pichi/Makefile
+++ b/net/pichi/Makefile
@@ -77,6 +77,12 @@ USES+=		ssl
 .endif
 .endif
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=	-Wno-error=unqualified-std-cast-call
+.endif
+
 post-install:
 	${MKDIR} ${STAGEDIR}${ETCDIR}
 	${INSTALL_DATA} ${WRKSRC}/test/geo.mmdb ${STAGEDIR}${ETCDIR}/geo.mmdb
@@ -86,4 +92,4 @@ post-install-DEVEL-on:
 	${MKDIR} ${STAGEDIR}${PREFIX}/include
 	${INSTALL_DATA} ${WRKSRC}/include/pichi.h ${STAGEDIR}${PREFIX}/include/pichi.h
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>