git: 1fa9bb4bb182 - main - multimedia/mkvalidator: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 07 Aug 2023 12:27:01 UTC
The branch main has been updated by bofh:

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

commit 1fa9bb4bb182317f7b61c897ac050c567679e7db
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-07 00:37:44 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-07 11:54:41 +0000

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

diff --git a/multimedia/mkvalidator/Makefile b/multimedia/mkvalidator/Makefile
index e5ce98731d94..cf6c4d2d86ab 100644
--- a/multimedia/mkvalidator/Makefile
+++ b/multimedia/mkvalidator/Makefile
@@ -29,6 +29,12 @@ PLIST_FILES=	bin/mkvalidator bin/mkvtree
 
 MAKE_JOBS_UNSAFE=	yes
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e \
 		'/STRIP/s|strip|${STRIP_CMD:T}| ; \