aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-23 17:16:23 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-23 17:54:16 +0000
commit0634387d52c103a724136dfa24243f197f59a19b (patch)
treecff562af81f06be322df579541ca93103607b106
parent5999040fd6b4228391390d0e08e8a161950d24ad (diff)
downloadports-0634387d52c103a724136dfa24243f197f59a19b.tar.gz
ports-0634387d52c103a724136dfa24243f197f59a19b.zip
math/eval: Fix build with llvm16
- Pet portclippy Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
-rw-r--r--math/eval/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/math/eval/Makefile b/math/eval/Makefile
index dd2fec11fefd..1093e38904ea 100644
--- a/math/eval/Makefile
+++ b/math/eval/Makefile
@@ -13,9 +13,15 @@ COMMENT= Full featured floating point expression evaluator
USES= lha readline
+WRKSRC= ${WRKDIR}/Eval/source
+
PLIST_FILES= bin/Eval
-WRKSRC= ${WRKDIR}/Eval/source
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
post-extract:
-${LN} -s Makefile.unx ${WRKSRC}/Makefile