aboutsummaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-23 17:24:34 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-23 17:54:17 +0000
commit296aef65e8a02ac26f4bc88be03098008d819ca2 (patch)
tree7980046318efa3b90fde3afd43f2ce36437d70b1 /chinese
parent8aed76d462cf0910e61656d2d58466f3ff7d0008 (diff)
downloadports-296aef65e8a02ac26f4bc88be03098008d819ca2.tar.gz
ports-296aef65e8a02ac26f4bc88be03098008d819ca2.zip
chinese/celvis: Fix build with llvm16
- Pet portclippy Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'chinese')
-rw-r--r--chinese/celvis/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/chinese/celvis/Makefile b/chinese/celvis/Makefile
index 8ea362d41d7e..cd7686f0c52b 100644
--- a/chinese/celvis/Makefile
+++ b/chinese/celvis/Makefile
@@ -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