git: e86c71c383ca - main - math/py-ducc0: fix build on powerpc64le
Piotr Kubaj
pkubaj at FreeBSD.org
Sun May 2 12:19:47 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e86c71c383ca576fdf9f741f0ecd92d7cfabe8d8
commit e86c71c383ca576fdf9f741f0ecd92d7cfabe8d8
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-05-02 12:19:44 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-05-02 12:19:44 +0000
math/py-ducc0: fix build on powerpc64le
GCC is required for its SSE -> AltiVec translation.
Also don't set -march=native.
---
math/py-ducc0/Makefile | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/math/py-ducc0/Makefile b/math/py-ducc0/Makefile
index f974440f7a76..9c678ace6ca3 100644
--- a/math/py-ducc0/Makefile
+++ b/math/py-ducc0/Makefile
@@ -1,5 +1,6 @@
PORTNAME= ducc0
PORTVERSION= 0.9.0
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,10 +13,21 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR}
-USES= compiler:c++17-lang python:3.6+
+USES= python:3.6+
USE_PYTHON= distutils autoplist
+MAKE_ENV= DUCC0_OPTIMIZATION=none
+
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64le
+CFLAGS+= -DNO_WARN_X86_INTRINSICS
+USES+= compiler:gcc-c++11-lib
+.else
+USES+= compiler:c++17-lang
+.endif
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/ducc0*.so
.include <bsd.port.mk>
More information about the dev-commits-ports-all
mailing list