databases/R-cran-RSQLite: Fix build with llvm16

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2023-06-30 02:50:09 +02:00
parent 0e71589377
commit 2a1d6e5e54

View file

@ -22,4 +22,12 @@ RUN_DEPENDS= ${CRAN_DEPENDS}
USES= cran:auto-plist,compiles
.include <bsd.port.options.mk>
post-patch:
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
@${REINPLACE_CMD} -e 's|PKG_CPPFLAGS=|PKG_CPPFLAGS=-Wno-error=enum-constexpr-conversion |g' \
${WRKSRC}/src/Makevars
.endif
.include <bsd.port.mk>