editors/led: Fix build with llvm16

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2023-07-19 20:52:29 +02:00
parent 524c1cd189
commit 14b946dd9b

View file

@ -17,6 +17,12 @@ MAKE_JOBS_UNSAFE= yes
SUB_FILES= pkg-message
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
post-patch:
@${REINPLACE_CMD} -E 's,(bin|lib|data)dir),DESTDIR)$$(&,' \
${WRKSRC}/Makefile.in