git: 5985a22c6f1d - main - science/nest: fix build on powerpc
Piotr Kubaj
pkubaj at FreeBSD.org
Wed Jun 30 20:38:20 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5985a22c6f1dab6475a1258d3873d5d296502558
commit 5985a22c6f1dab6475a1258d3873d5d296502558
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-06-30 20:37:50 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-06-30 20:37:50 +0000
science/nest: fix build on powerpc
LLVM on powerpc doesn't have libomp.
---
science/nest/Makefile | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/science/nest/Makefile b/science/nest/Makefile
index 29fa2aa073b1..ddd6eab25049 100644
--- a/science/nest/Makefile
+++ b/science/nest/Makefile
@@ -15,7 +15,7 @@ BROKEN_i386= https://github.com/nest/nest-simulator/issues/1205
LIB_DEPENDS= libgsl.so:math/gsl \
libltdl.so:devel/libltdl
-USES= cmake compiler:c++11-lang ncurses pkgconfig readline
+USES= cmake ncurses pkgconfig readline
USE_GITHUB= yes
GH_PROJECT= nest-simulator
USE_LDCONFIG= yes
@@ -31,4 +31,12 @@ PYTHON_CMAKE_ON= -DCYTHON_EXECUTABLE:STRING=${PREFIX}/bin/cython-${PYTHON_VER}
PORTDOCS= *
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USES+= compiler:gcc-c++11-lib
+.else
+USES+= compiler:c++11-lang
+.endif
+
.include <bsd.port.mk>
More information about the dev-commits-ports-all
mailing list