git: 5f9b68c773d6 - main - security/botan3: Fix build on 14
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Aug 2023 21:55:07 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=5f9b68c773d6442dccb248c8a190dce9c4d4a519 commit 5f9b68c773d6442dccb248c8a190dce9c4d4a519 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-25 08:55:25 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-25 21:54:51 +0000 security/botan3: Fix build on 14 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- security/botan3/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/security/botan3/Makefile b/security/botan3/Makefile index a3c9e71f7cea..180dd539db7c 100644 --- a/security/botan3/Makefile +++ b/security/botan3/Makefile @@ -82,6 +82,13 @@ PLIST_SUB+= HAS_PROCESSOR_RNG="" PLIST_SUB+= HAS_PROCESSOR_RNG="@comment " .endif +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) +USES+= llvm:max=15 +CC= clang${LLVM_VERSION} +CPP= clang-cpp${LLVM_VERSION} +CXX= clang++${LLVM_VERSION} +.endif + post-patch: @${REINPLACE_CMD} -e 's|^optimization_flags .*|optimization_flags "${CXXFLAGS}"|' \ ${WRKSRC}/src/build-data/cc/clang.txt