git: 4c181e16f11a - main - multimedia/bcmatroska2: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 24 Jun 2023 18:10:15 UTC
The branch main has been updated by bofh:

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

commit 4c181e16f11a17997ddf84a1b69e973a2630dd27
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 17:33:17 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 18:10:03 +0000

    multimedia/bcmatroska2: Fix build with llvm16
    
    Sponsored by:   The FreeBSD Foundation
---
 multimedia/bcmatroska2/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/multimedia/bcmatroska2/Makefile b/multimedia/bcmatroska2/Makefile
index da1e0815c4a2..0429401f87ec 100644
--- a/multimedia/bcmatroska2/Makefile
+++ b/multimedia/bcmatroska2/Makefile
@@ -20,4 +20,10 @@ USE_LDCONFIG=	yes
 CMAKE_ARGS=	-DCMAKE_PREFIX_PATH=${LOCALBASE} \
 		-DENABLE_STATIC=NO
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 .include <bsd.port.mk>