print/pic2fig: Fix build with llvm15

- Pet protclippy
- Adopt port
This commit is contained in:
Muhammad Moinur Rahman 2023-06-04 13:50:00 +02:00
parent b684f0f142
commit d81a0d2d8b

View file

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