git: 82ff2242c786 - main - math/spar: Fix build with llvm15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 06 Jun 2023 20:45:46 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=82ff2242c786f97b9f9d52ec45d35757e1d1365a
commit 82ff2242c786f97b9f9d52ec45d35757e1d1365a
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-06 19:55:39 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-06 20:45:26 +0000
math/spar: Fix build with llvm15
- Pet portclippy
- Adopt port
---
math/spar/Makefile | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/math/spar/Makefile b/math/spar/Makefile
index 9b568746883e..e5e7d51d3e38 100644
--- a/math/spar/Makefile
+++ b/math/spar/Makefile
@@ -4,7 +4,7 @@ PORTREVISION= 6
CATEGORIES= math devel
MASTER_SITES= SF/${PORTNAME}/Spar/${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= bofh@FreeBSD.org
COMMENT= Modular math parser
WWW= http://spar.sourceforge.net/
@@ -15,8 +15,15 @@ USES= dos2unix libtool ncurses readline
DOS2UNIX_FILES= lib/randist/rand.c
USE_CSTD= gnu89
USE_LDCONFIG= yes
+
GNU_CONFIGURE= yes
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+= -Wno-error=int-conversion
+.endif
+
post-patch:
@${REINPLACE_CMD} -e "s,-ldl,,g" \
${WRKSRC}/lib/Makefile.in ${WRKSRC}/lib/module/Makefile.in
@@ -26,4 +33,4 @@ post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/spar/*.so
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>