git: d1587b80231b - main - math/alberta: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 17 Aug 2023 21:03:51 UTC
The branch main has been updated by bofh:

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

commit d1587b80231ba4fb85853954df8aef26ed13db82
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-17 20:18:44 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-17 21:03:34 +0000

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

diff --git a/math/alberta/Makefile b/math/alberta/Makefile
index 24921dc7bc59..705e9308d621 100644
--- a/math/alberta/Makefile
+++ b/math/alberta/Makefile
@@ -36,4 +36,10 @@ INSTALL_TARGET=	install-strip
 
 BINARY_ALIAS=	make=${GMAKE} sed=gsed
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 .include <bsd.port.mk>