git: ebe54916d4b0 - main - net/guacamole-server: Unbreak on HEAD

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

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

commit ebe54916d4b0e66206b3fa8469474de46dbaf81a
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-02 13:47:01 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-02 13:52:36 +0000

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

diff --git a/net/guacamole-server/Makefile b/net/guacamole-server/Makefile
index 69b390537162..5f1025f1012d 100644
--- a/net/guacamole-server/Makefile
+++ b/net/guacamole-server/Makefile
@@ -87,6 +87,13 @@ VORBIS_LIB_DEPENDS=	libvorbis.so:audio/libvorbis \
 WEBP_CONFIGURE_WITH=	webp
 WEBP_LIB_DEPENDS=	libwebp.so:graphics/webp
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=       -Wno-error=strict-prototypes \
+			   -Wno-error=unused-but-set-variable
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} 's/-Werror//' ${WRKSRC}/src/libguac/Makefile.am \
 		${WRKSRC}/src/protocols/vnc/Makefile.am
@@ -98,4 +105,4 @@ post-install:
 	@${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}${GUACAMOLE_HOME}
 	${INSTALL_DATA} ${FILESDIR}/guacd.conf.sample ${STAGEDIR}${ETCDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>