git: 7b0aa2cffd8a - main - editors/hexer: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Aug 2023 02:57:27 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7b0aa2cffd8aebd98656f758832979a5e3a7b29c
commit 7b0aa2cffd8aebd98656f758832979a5e3a7b29c
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-18 02:56:32 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-18 02:57:11 +0000
editors/hexer: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
editors/hexer/Makefile | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/editors/hexer/Makefile b/editors/hexer/Makefile
index bf89f9db2357..a5a6b0746576 100644
--- a/editors/hexer/Makefile
+++ b/editors/hexer/Makefile
@@ -22,6 +22,15 @@ OPTIONS_DEFAULT=MYC
ALL_TARGET= all
MYC_ALL_TARGET= myc
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+USES+= llvm:max=14
+CC= clang${LLVM_VERSION}
+CPP= clang-cpp${LLVM_VERSION}
+CXX= clang++${LLVM_VERSION}
+.endif
+
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/hexer