git: 2a1d6e5e5473 - main - databases/R-cran-RSQLite: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 30 Jun 2023 00:53:53 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2a1d6e5e5473fb53dfdab5862416728115ab6a37
commit 2a1d6e5e5473fb53dfdab5862416728115ab6a37
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-30 00:50:09 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-30 00:53:12 +0000
databases/R-cran-RSQLite: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
databases/R-cran-RSQLite/Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/databases/R-cran-RSQLite/Makefile b/databases/R-cran-RSQLite/Makefile
index 9cd8dea8ae42..57d259557186 100644
--- a/databases/R-cran-RSQLite/Makefile
+++ b/databases/R-cran-RSQLite/Makefile
@@ -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>