git: 503747762063 - main - math/xgraph: Fix build with llvm15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 11 Jun 2023 19:16:37 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=503747762063e16a0a460e909a28d34b26643abc commit 503747762063e16a0a460e909a28d34b26643abc Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-06-11 18:52:14 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-06-11 19:16:23 +0000 math/xgraph: Fix build with llvm15 - Pet portclippy - Adopt port --- math/xgraph/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/math/xgraph/Makefile b/math/xgraph/Makefile index e2f304b956fe..50e959ef51a6 100644 --- a/math/xgraph/Makefile +++ b/math/xgraph/Makefile @@ -5,7 +5,7 @@ CATEGORIES= math print MASTER_SITES= ftp://ftp.cs.utoronto.ca/pub/radford/ DISTNAME= xgraph-11 -MAINTAINER= ports@FreeBSD.org +MAINTAINER= bofh@FreeBSD.org COMMENT= Program that helps you plot graphs LICENSE= XGRAPH @@ -15,14 +15,21 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept USES= imake tar:Z xorg USE_XORG= x11 xext + WRKSRC= ${WRKDIR}/${PORTNAME} OPTIONS_DEFINE= EXAMPLES +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=int-conversion +.endif + post-extract: @${SED} -ne '2,19 {s|^ \* *||;p;}' < ${WRKSRC}/copyright.h > ${WRKSRC}/COPYING -post-install: +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/xgraph ${INSTALL_DATA} ${WRKSRC}/examples/*.xg ${STAGEDIR}${PREFIX}/share/examples/xgraph