diff --git a/chinese/celvis/Makefile b/chinese/celvis/Makefile index 8ea362d41d7e..cd7686f0c52b 100644 --- a/chinese/celvis/Makefile +++ b/chinese/celvis/Makefile @@ -1,20 +1,28 @@ PORTNAME= celvis PORTVERSION= 1.3 CATEGORIES= chinese editors MASTER_SITES= http://ftp.ist.utl.pt/pub/ctan/language/chinese/chtex/ DISTNAME= ${PORTNAME} 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 + +.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 ${LN} -s celvis ${STAGEDIR}${PREFIX}/bin/cvi ${INSTALL_MAN} ${FILESDIR}/celvis.1 ${STAGEDIR}${MANPREFIX}/man/man1 .include