graphics/p5-Tk-JPEG-Lite: Fix build with llvm16

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2023-08-07 02:38:42 +02:00
parent 1fa9bb4bb1
commit 5a62e86a50

View file

@ -16,6 +16,12 @@ RUN_DEPENDS= p5-Tk>=0:x11-toolkits/p5-Tk
USES= jpeg perl5
USE_PERL5= configure
.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|/usr/local|${LOCALBASE}|' \
${WRKSRC}/Makefile.PL