Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2021 20:38:20 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5985a22c6f1d - main - science/nest: fix build on powerpc
Message-ID:  <202106302038.15UKcKVE038731@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5985a22c6f1dab6475a1258d3873d5d296502558

commit 5985a22c6f1dab6475a1258d3873d5d296502558
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-06-30 20:37:50 +0000
Commit:     Piotr Kubaj <pkubaj@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106302038.15UKcKVE038731>