Skip to content

Commit

Permalink
misc/orville-write: Fix build on llvm15
Browse files Browse the repository at this point in the history
- Pet portclippy
- Adopt port
  • Loading branch information
5u623l20 committed Jun 3, 2023
1 parent 478a7d2 commit 07f25c9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions misc/orville-write/Makefile
Expand Up @@ -4,11 +4,14 @@ PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://unixpapa.com/software/

MAINTAINER= ports@FreeBSD.org
MAINTAINER= bofh@FreeBSD.org
COMMENT= Advanced replacement for write/mesg
WWW= https://unixpapa.com/write.html

GNU_CONFIGURE= yes

MAKE_JOBS_UNSAFE=yes

CFLAGS+= -Wno-return-type

PLIST_FILES= "@(,,4711) bin/amin" "@(,,4711) bin/helpers" "@(,,4711) bin/huh" \
Expand All @@ -17,7 +20,11 @@ PLIST_FILES= "@(,,4711) bin/amin" "@(,,4711) bin/helpers" "@(,,4711) bin/huh" \
man/man1/amin.1.gz man/man1/helpers.1.gz man/man1/huh.1.gz \
man/man1/mesg.1.gz man/man1/write.1.gz

MAKE_JOBS_UNSAFE=yes
.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=int-conversion
.endif

do-install:
.for i in amin helpers huh mesg
Expand All @@ -39,4 +46,4 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/${i} ${STAGEDIR}${MANPREFIX}/man/man1
.endfor

.include <bsd.port.mk>
.include <bsd.port.post.mk>

0 comments on commit 07f25c9

Please sign in to comment.