git: eaf43a218bf7 - main - biology/pooler: use openmp only when omp.h is present

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

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

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

    biology/pooler: use openmp only when omp.h is present
---
 biology/pooler/Makefile | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/biology/pooler/Makefile b/biology/pooler/Makefile
index 53834b8044df..498428ca373a 100644
--- a/biology/pooler/Makefile
+++ b/biology/pooler/Makefile
@@ -15,15 +15,12 @@ GH_ACCOUNT=	ssb22
 GH_PROJECT=	PrimerPooler
 
 INSTALL_TARGET=	install-strip
-CFLAGS+=	-fopenmp
 
 WRKSRC_SUBDIR=	pooler
 PLIST_FILES=	bin/pooler man/man1/pooler.1.gz share/applications/pooler.desktop
 
-.include <bsd.port.options.mk>
-
-.if ${ARCH} == powerpc
-USES+=		compiler:gcc-c++11-lib
+.if exists(/usr/include/omp.h)
+CFLAGS+=	-fopenmp
 .endif
 
 .include <bsd.port.mk>