git: 050742c01873 - main - math/muparser: disable OpenMP on architectures lacking omp.h

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 27 Apr 2022 13:39:55 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=050742c0187371c5c54876c7bd047ee9d55fc206

commit 050742c0187371c5c54876c7bd047ee9d55fc206
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-04-27 13:18:39 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-04-27 13:18:39 +0000

    math/muparser: disable OpenMP on architectures lacking omp.h
---
 math/muparser/Makefile | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/math/muparser/Makefile b/math/muparser/Makefile
index 52285e44da55..78a47fe7804b 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
+USES=		cmake compiler:c++11-lang
 USE_LDCONFIG=	yes
 
 USE_GITHUB=	yes
@@ -23,12 +23,8 @@ CMAKE_OFF=	ENABLE_SAMPLES
 
 EXAMPLES_PORTEXAMPLES=	*
 
-.include <bsd.port.options.mk>
-
-.if ${ARCH} == armv7 || ${ARCH} == powerpc
-USES+=		compiler:gcc-c++11-lib
-.else
-USES+=		compiler:c++11-lang
+.if !exists(/usr/include/omp.h)
+CMAKE_ARGS+=	-DENABLE_OPENMP:BOOL=OFF
 .endif
 
 post-install-EXAMPLES-on: