git: d81a0d2d8b9e - main - print/pic2fig: Fix build with llvm15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 Jun 2023 13:23:33 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=d81a0d2d8b9e224a88a93bcaea3f352c4c65142c commit d81a0d2d8b9e224a88a93bcaea3f352c4c65142c Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-06-04 11:50:00 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-06-04 13:23:24 +0000 print/pic2fig: Fix build with llvm15 - Pet protclippy - Adopt port --- print/pic2fig/Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/print/pic2fig/Makefile b/print/pic2fig/Makefile index e17afbbfc4d3..3fefbee987d5 100644 --- a/print/pic2fig/Makefile +++ b/print/pic2fig/Makefile @@ -4,16 +4,25 @@ PORTREVISION= 2 CATEGORIES= print MASTER_SITES= XCONTRIB/utilities -MAINTAINER= ports@FreeBSD.org +MAINTAINER= bofh@FreeBSD.org COMMENT= Pic format to fig format converter USES= tar:Z -WRKSRC= ${WRKDIR}/${PORTNAME} + CFLAGS+= -Wno-return-type + +WRKSRC= ${WRKDIR}/${PORTNAME} + PLIST_FILES= bin/pic2fig man/man1/pic2fig.1.gz +.include <bsd.port.pre.mk> + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=int-conversion +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pic2fig ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/pic2fig.1 ${STAGEDIR}${MANPREFIX}/man/man1 -.include <bsd.port.mk> +.include <bsd.port.post.mk>