git: 46493bc89a1e - main - devel/zfp: fix build without libomp

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=46493bc89a1efd47e528f9b1bf6c61209e346a95

commit 46493bc89a1efd47e528f9b1bf6c61209e346a95
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-03-13 00:02:15 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-03-13 00:02:15 +0000

    devel/zfp: fix build without libomp
    
    Disable OpenMP without libomp available.
---
 devel/zfp/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/devel/zfp/Makefile b/devel/zfp/Makefile
index 6f3cfd774349..1538cfd2a7bd 100644
--- a/devel/zfp/Makefile
+++ b/devel/zfp/Makefile
@@ -13,6 +13,10 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 USES=		cmake:testing
 USE_LDCONFIG=	yes
 
+.if !exists(/usr/include/omp.h)
+CMAKE_OFF=	ZFP_WITH_OPENMP
+.endif
+
 LDFLAGS+=	-lm
 
 .include <bsd.port.mk>