git: 1115257612ba - main - biology/ncbi-blast+: check for omp.h on all architectures

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

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

commit 1115257612babbf4992ae7a30188713e1b997113
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-04-27 13:22:09 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-04-27 13:22:09 +0000

    biology/ncbi-blast+: check for omp.h on all architectures
---
 biology/ncbi-blast+/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/biology/ncbi-blast+/Makefile b/biology/ncbi-blast+/Makefile
index 61a432961bbd..078972a6f207 100644
--- a/biology/ncbi-blast+/Makefile
+++ b/biology/ncbi-blast+/Makefile
@@ -52,6 +52,10 @@ CONFLICTS_INSTALL=	ncbi-cxx-toolkit
 
 WRKSRC_SUBDIR=	c++
 
+.if !exists(/usr/include/omp.h)
+CONFIGURE_ARGS+=	--without-openmp
+.endif
+
 .include <bsd.port.pre.mk>
 
 .if ${CHOSEN_COMPILER_TYPE} == gcc
@@ -59,10 +63,6 @@ WRKSRC_SUBDIR=	c++
 LDFLAGS+=	-latomic # Only exists in gcc libs
 .endif
 
-.if ${ARCH} == powerpc
-CONFIGURE_ARGS+=	--without-openmp
-.endif
-
 post-install:
 	@${RM} ${STAGEDIR}${PREFIX}/include/ncbi-tools++/*/*/.cvsignore.extra
 	@${RM} -rf ${STAGEDIR}${PREFIX}/lib/X11