editors/uemacs: Fix build with llvm16

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
2023Q4
Muhammad Moinur Rahman 2023-08-02 19:17:48 +02:00
parent ec698dcda7
commit 2d8686435c
1 changed files with 6 additions and 0 deletions

View File

@ -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' \