git: 97e9098a189d - main - math/gismo: fix build on powerpc64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 21 Dec 2022 00:58:15 UTC
The branch main has been updated by pkubaj:

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

commit 97e9098a189d2777b54b0fe3400f51fb3635f621
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-12-21 00:57:56 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-12-21 00:57:56 +0000

    math/gismo: fix build on powerpc64
    
    /wrkdirs/usr/ports/math/gismo/work/gismo-21.12.0-882-g236b1b29/external/Eigen/src/Core/arch/AltiVec/PacketMath.h:1345:32: error: use of undeclared identifier 'vec_sqrt'; did you mean 'vec_rsqrt'?
      BF16_TO_F32_UNARY_OP_WRAPPER(vec_sqrt, a);
                                   ^~~~~~~~
                                   vec_rsqrt
    /wrkdirs/usr/ports/math/gismo/work/gismo-21.12.0-882-g236b1b29/external/Eigen/src/Core/arch/AltiVec/PacketMath.h:1302:22: note: expanded from macro 'BF16_TO_F32_UNARY_OP_WRAPPER'
      Packet4f op_even = OP(a_even);\
                         ^
---
 math/gismo/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/math/gismo/Makefile b/math/gismo/Makefile
index 8e7a46a40742..ee6cfb7e6b89 100644
--- a/math/gismo/Makefile
+++ b/math/gismo/Makefile
@@ -22,6 +22,8 @@ GH_TUPLE=	gismo:gsElasticity:a94347d:gsElasticity/extensions/gsElasticity \
 		gismo:gsStructuralAnalysis:f18c4b7:gsStructuralAnalysis/extensions/gsStructuralAnalysis \
 		gismo:gsUnitTest:7c42e58:gsUnitTest/extensions/gsUnitTest
 
+CXXFLAGS_powerpc64=	-mvsx
+
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} == aarch64