aboutsummaryrefslogtreecommitdiff
path: root/math/libxsmm/Makefile
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-11-25 16:25:59 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-11-25 16:25:59 +0000
commit08c6efbca1c4266eb9403f366ddf0022268dd9b3 (patch)
treec458a196cacdc231f2b6719023a202a069d5243f /math/libxsmm/Makefile
parent55da4c82c9e66e52ccd1858bf6a7f22506b69cd5 (diff)
downloadports-08c6efbca1c4266eb9403f366ddf0022268dd9b3.tar.gz
ports-08c6efbca1c4266eb9403f366ddf0022268dd9b3.zip
math/libxsmm: fix build on non-amd64
On non-amd64, PLATFORM=1 needs to be passed to disable JIT. Also, add a way to read TBR that does not depend on glibc.
Diffstat (limited to 'math/libxsmm/Makefile')
-rw-r--r--math/libxsmm/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/math/libxsmm/Makefile b/math/libxsmm/Makefile
index b77c85163c2c..4aa8afb24c07 100644
--- a/math/libxsmm/Makefile
+++ b/math/libxsmm/Makefile
@@ -8,8 +8,6 @@ COMMENT= Library for dense and sparse matrix operations and deep learning
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.md
-ONLY_FOR_ARCHS= amd64
-ONLY_FOR_ARCHS_REASON= relies on hard-coded x86 code, and is only supported on 64-bit
BUILD_DEPENDS= bash:shells/bash
@@ -27,6 +25,12 @@ TEST_TARGET= tests
BINARY_ALIAS= python=${PYTHON_CMD}
+.include <bsd.port.options.mk>
+
+.if ${ARCH} != amd64
+MAKE_ARGS+= PLATFORM=1
+.endif
+
post-install: # https://github.com/hfp/libxsmm/issues/413
${RMDIR} ${STAGEDIR}${PREFIX}/share/modules