aboutsummaryrefslogtreecommitdiff
path: root/editors/uemacs
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-08-02 17:17:48 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-08-02 18:53:44 +0000
commit2d8686435c4c241cd64df70dcc7249ecc2cb1d07 (patch)
treeded39b9b479bed89a671357526a5a9847a99daab /editors/uemacs
parentec698dcda7b9b4817fbb083a8e06629482553e02 (diff)
downloadports-2d8686435c4c241cd64df70dcc7249ecc2cb1d07.tar.gz
ports-2d8686435c4c241cd64df70dcc7249ecc2cb1d07.zip
editors/uemacs: Fix build with llvm16
Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'editors/uemacs')
-rw-r--r--editors/uemacs/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/editors/uemacs/Makefile b/editors/uemacs/Makefile
index fc1bede0e34c..81179c42a5fb 100644
--- a/editors/uemacs/Makefile
+++ b/editors/uemacs/Makefile
@@ -21,6 +21,12 @@ EXTRACT_BEFORE_ARGS= -Lq
CFLAGS+= -Wno-int-conversion
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
post-patch:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/src/*.c
@${REINPLACE_CMD} -e 's|-ltermcap|${LDFLAGS} -lncurses|g' \