From 68332361c3212fb562287f52cb153c52f1473795 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Thu, 10 Jun 2021 00:57:33 +0000 Subject: [PATCH] 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 + +.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}