Date: Thu, 10 Jun 2021 00:57:38 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: 68332361c321 - main - math/muparser: fix build on powerpc Message-ID: <202106100057.15A0vcet036695@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=68332361c3212fb562287f52cb153c52f1473795 commit 68332361c3212fb562287f52cb153c52f1473795 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-06-10 00:57:33 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2021-06-10 00:57:33 +0000 math/muparser: fix build on powerpc LLVM on powerpc doesn't have libomp: CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) --- math/muparser/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/math/muparser/Makefile b/math/muparser/Makefile index a6cb7a6b19d2..3e0b00ecab2a 100644 --- a/math/muparser/Makefile +++ b/math/muparser/Makefile @@ -11,7 +11,7 @@ COMMENT= Mathematical expressions parser library written in C++ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/License.txt -USES= cmake compiler:c++11-lang +USES= cmake USE_LDCONFIG= yes USE_GITHUB= yes @@ -23,6 +23,14 @@ CMAKE_OFF= ENABLE_SAMPLES EXAMPLES_PORTEXAMPLES= * +.include <bsd.port.options.mk> + +.if ${ARCH} == powerpc +USES+= compiler:gcc-c++11-lib +.else +USES+= compiler:c++11-lang +.endif + post-install-EXAMPLES-on: cd ${WRKSRC} && ${COPYTREE_SHARE} samples ${STAGEDIR}${EXAMPLESDIR}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106100057.15A0vcet036695>