git: 54faeb599e98 - main - audio/fluida-lv2: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 06 Aug 2023 21:53:14 UTC
The branch main has been updated by bofh:

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

commit 54faeb599e982173d7e04424e56cd2bf8919063c
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-06 21:13:58 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-06 21:53:04 +0000

    audio/fluida-lv2: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 audio/fluida-lv2/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/audio/fluida-lv2/Makefile b/audio/fluida-lv2/Makefile
index b9518ac51eb4..2a9cb235ff2a 100644
--- a/audio/fluida-lv2/Makefile
+++ b/audio/fluida-lv2/Makefile
@@ -31,6 +31,12 @@ PLIST_FILES=	lib/lv2/Fluida.lv2/Fluida.so \
 		lib/lv2/Fluida.lv2/Fluida_ui.so \
 		lib/lv2/Fluida.lv2/manifest.ttl
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-patch: # /proc/cpuinfo is used to check SIMD support in CPU
 	@${REINPLACE_CMD} -e 's|/proc/cpuinfo|/dev/null|' ${WRKSRC}/Fluida/Makefile