Skip to content

Commit

Permalink
math/spar: Fix build with llvm15
Browse files Browse the repository at this point in the history
- Pet portclippy
- Adopt port
  • Loading branch information
5u623l20 committed Jun 6, 2023
1 parent aee41bf commit 82ff224
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions math/spar/Makefile
Expand Up @@ -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/

Expand All @@ -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
Expand All @@ -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>

0 comments on commit 82ff224

Please sign in to comment.