git: 54d851eb97e1 - main - math/py-levmar: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 26 Jul 2023 17:47:22 UTC
The branch main has been updated by bofh:

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

commit 54d851eb97e17fca071eb30a32e836460eb46a6f
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-26 17:46:41 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-26 17:47:06 +0000

    math/py-levmar: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 math/py-levmar/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/math/py-levmar/Makefile b/math/py-levmar/Makefile
index 3e5e28f7451c..ea49e3ad6831 100644
--- a/math/py-levmar/Makefile
+++ b/math/py-levmar/Makefile
@@ -29,6 +29,10 @@ USE_PYTHON=	distutils autoplist
 CFLAGS+=	-Wno-error=int-conversion
 .endif
 
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|รถ|o|' ${WRKSRC}/AUTHORS # breaks because of non-ascii chars