git: 68332361c321 - main - math/muparser: fix build on powerpc
Piotr Kubaj
pkubaj at FreeBSD.org
Thu Jun 10 00:57:38 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=68332361c3212fb562287f52cb153c52f1473795
commit 68332361c3212fb562287f52cb153c52f1473795
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-06-10 00:57:33 +0000
Commit: Piotr Kubaj <pkubaj at 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}
More information about the dev-commits-ports-main
mailing list