git: c52e62fa8361 - main - math/faiss: Broken on systems where OpenMP isn't enabled

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 23 Jul 2022 16:13:39 UTC
The branch main has been updated by yuri:

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

commit c52e62fa836103e2da624c6ea1d90c32ea69fde1
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-23 16:13:09 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-23 16:13:09 +0000

    math/faiss: Broken on systems where OpenMP isn't enabled
    
    Reported by:    fallout
---
 math/faiss/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/math/faiss/Makefile b/math/faiss/Makefile
index c1aede497daa..9fdcc065a48a 100644
--- a/math/faiss/Makefile
+++ b/math/faiss/Makefile
@@ -9,6 +9,10 @@ COMMENT=	Library for efficient similarity search & clustering of dense vectors
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 BUILD_DEPENDS=	openblas>0:math/openblas # faiss links with libopenblasp-rN.N.N.so (installed by default only on amd64,i386), so use non-filename-specific DEPENDS commands
 RUN_DEPENDS=	openblas>0:math/openblas