git: 0245cf92ba84 - main - math/primecount: fix build without libomp

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Mon, 13 Mar 2023 00:05:34 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0245cf92ba84717f51da9491591e3f57bc88852a

commit 0245cf92ba84717f51da9491591e3f57bc88852a
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-03-13 00:02:17 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-03-13 00:02:17 +0000

    math/primecount: fix build without libomp
---
 math/primecount/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/math/primecount/Makefile b/math/primecount/Makefile
index d736a2629c21..28d0d32c2d58 100644
--- a/math/primecount/Makefile
+++ b/math/primecount/Makefile
@@ -21,6 +21,10 @@ USE_LDCONFIG=	yes
 CMAKE_ON=	BUILD_SHARED_LIBS
 CMAKE_OFF=	BUILD_LIBPRIMESIEVE BUILD_STATIC_LIBS
 
+.if !exists(/usr/local/omp.h)
+CMAKE_OFF+=	WITH_OPENMP
+.endif
+
 PLIST_SUB=	VER=${PORTVERSION}
 
 do-test: