math/muparser: disable OpenMP on architectures lacking omp.h

This commit is contained in:
Piotr Kubaj 2022-04-27 13:18:39 +00:00
parent 046b3c5b45
commit 050742c018

View file

@ -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: