freebsd-ports/math/gismo/Makefile
Piotr Kubaj 97e9098a18 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);\
                     ^
2022-12-21 00:57:56 +00:00

39 lines
1.1 KiB
Makefile

PORTNAME= gismo
DISTVERSIONPREFIX= v
DISTVERSION= 21.12.0-882
DISTVERSIONSUFFIX= -g236b1b29
CATEGORIES= math # geometry
MAINTAINER= yuri@FreeBSD.org
COMMENT= C++ library for isogeometric analysis (IGA)
WWW= https://gismo.github.io/
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= cmake:testing compiler:c++14-lang
USE_GITHUB= yes
USE_LDCONFIG= yes
CMAKE_TESTING_ON= GISMO_BUILD_UNITTESTS # one test is known to fail: https://github.com/gismo/gismo/issues/466
GH_TUPLE= gismo:gsElasticity:a94347d:gsElasticity/extensions/gsElasticity \
gismo:gsKLShell:5247352:gsKLShell/extensions/gsKLShell \
gismo:gsStructuralAnalysis:f18c4b7:gsStructuralAnalysis/extensions/gsStructuralAnalysis \
gismo:gsUnitTest:7c42e58:gsUnitTest/extensions/gsUnitTest
CXXFLAGS_powerpc64= -mvsx
.include <bsd.port.pre.mk>
.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>