git: 8a33036b8904 - main - audio/cava: Unbreak on HEAD

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

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

commit 8a33036b89049e9a58bcd069927a8af26bb7c98b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-16 15:08:56 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-16 15:46:53 +0000

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

diff --git a/audio/cava/Makefile b/audio/cava/Makefile
index d81ed6dc734e..2bf1f762bc57 100644
--- a/audio/cava/Makefile
+++ b/audio/cava/Makefile
@@ -50,6 +50,12 @@ VT_BUILD_DEPENDS=	psf2bdf:x11-fonts/psftools
 VT_MAKE_ARGS_OFF=	cava_font__DATA=""
 VT_PLIST_FILES=		${DATADIR}/cava.fnt
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=	-Wno-error=deprecated-non-prototype
+.endif
+
 pre-configure:
 	@${ECHO_CMD} ${DISTVERSION} > ${WRKSRC}/version
 
@@ -66,4 +72,4 @@ post-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/example_files/config ${STAGEDIR}${EXAMPLESDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>