git: cc4c20c65b77 - main - math/gismo: Fix build on armv6/armv7

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 27 Jul 2022 19:26:06 UTC
The branch main has been updated by yuri:

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

commit cc4c20c65b775f0a95be0fd92c887150b6266676
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-07-27 19:25:21 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-27 19:25:21 +0000

    math/gismo: Fix build on armv6/armv7
    
    PR:             265467
---
 math/gismo/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/math/gismo/Makefile b/math/gismo/Makefile
index 8e475658d7fc..185fea56b531 100644
--- a/math/gismo/Makefile
+++ b/math/gismo/Makefile
@@ -9,8 +9,6 @@ COMMENT=	C++ library for isogeometric analysis (IGA)
 LICENSE=	MPL20
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-BROKEN_armv7=	unknown target architecture: "generic".  Please set TARGET_ARCHITECTURE to a supported value, see https://github.com/gismo/gismo/issues/541
-
 USES=		cmake:testing compiler:c++14-lang
 USE_GITHUB=	yes
 USE_GCC=	yes # clang-11 crashes: https://bugs.llvm.org/show_bug.cgi?id=51468
@@ -27,6 +25,11 @@ GH_TUPLE=	gismo:gsElasticity:a94347d:gsElasticity/extensions/gsElasticity \
 
 .if ${ARCH} == aarch64
 CMAKE_ARGS+=	-DTARGET_ARCHITECTURE="cortex-a53"
+.elif ${ARCH} == armv6
+# Raspberry Pi 1, the only supported armv6 target
+CMAKE_ARGS+=	-DTARGET_ARCHITECTURE="arm1176jzf-s"
+.elif ${ARCH} == armv7
+CMAKE_ARGS+=	-DTARGET_ARCHITECTURE="cortex-a7"
 .endif
 
 .include <bsd.port.post.mk>