git: 4e0c2ae31922 - main - devel/kdevelop: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 30 Jun 2023 00:53:47 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4e0c2ae319222145ab0b3f37c0ba52f596426d5a
commit 4e0c2ae319222145ab0b3f37c0ba52f596426d5a
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-29 23:49:37 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-30 00:51:52 +0000
devel/kdevelop: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
devel/kdevelop/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/devel/kdevelop/Makefile b/devel/kdevelop/Makefile
index ac2c6001d224..a9816c5af2da 100644
--- a/devel/kdevelop/Makefile
+++ b/devel/kdevelop/Makefile
@@ -63,4 +63,10 @@ SHEBANG_LANG= zsh
zsh_OLD_CMD= /bin/zsh
zsh_CMD= ${LOCALBASE}/bin/zsh
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+CXXFLAGS+= -Wno-error=enum-constexpr-conversion
+.endif
+
+.include <bsd.port.post.mk>