git: a4803d0f12ee - main - math/fenics-basix: Broken when std::concepts isn't available for clang

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 04 Sep 2022 06:12:14 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a4803d0f12ee050c7d6f891f8fcf645025ee5092

commit a4803d0f12ee050c7d6f891f8fcf645025ee5092
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-09-04 04:00:41 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-09-04 06:12:08 +0000

    math/fenics-basix: Broken when std::concepts isn't available for clang
    
    Reported by:    fallout
---
 math/fenics-basix/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/math/fenics-basix/Makefile b/math/fenics-basix/Makefile
index 45ec89302f80..af5890e4c41c 100644
--- a/math/fenics-basix/Makefile
+++ b/math/fenics-basix/Makefile
@@ -21,4 +21,10 @@ GH_PROJECT=	basix
 
 WRKSRC_SUBDIR=	cpp
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} == clang && !exists(/usr/include/c++/v1/concepts) # true only on FreeBSD_12
+BROKEN=		system is missing a required C++ feature std::concepts
+.endif
+
+.include <bsd.port.post.mk>