Skip to content

Commit

Permalink
chinese/celvis: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Pet portclippy

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jul 23, 2023
1 parent 8aed76d commit 296aef6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion chinese/celvis/Makefile
Expand Up @@ -8,9 +8,17 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Vi/ex clone that speaks Chinese

USES= ncurses
CFLAGS+= -Wno-error=return-type

MAKE_ARGS= LIBS="${LDFLAGS} -lncurses"

CFLAGS+= -Wno-error=return-type

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif

do-install:
@# install target in celvis Makefile is not too good -- this is easier
${INSTALL_PROGRAM} ${WRKSRC}/celvis ${WRKSRC}/virec ${STAGEDIR}${PREFIX}/bin
Expand Down

0 comments on commit 296aef6

Please sign in to comment.