From 54d851eb97e17fca071eb30a32e836460eb46a6f Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Wed, 26 Jul 2023 19:46:41 +0200 Subject: [PATCH] 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