git: a7320981d5d4 - main - biology/wfa2-lib: fix build without libomp

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 04 Aug 2024 12:01:27 UTC
The branch main has been updated by pkubaj:

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

commit a7320981d5d4530534f241001f2e91f687dd5796
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-08-01 23:42:04 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-08-04 12:00:47 +0000

    biology/wfa2-lib: fix build without libomp
    
    /wrkdirs/usr/ports/biology/wfa2-lib/work/WFA2-lib-2.3.5/tools/align_benchmark/align_benchmark.c:32:10: fatal error: 'omp.h' file not found
       32 | #include <omp.h>
          |          ^~~~~~~
    1 error generated.
---
 biology/wfa2-lib/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/biology/wfa2-lib/Makefile b/biology/wfa2-lib/Makefile
index ec1c0c6f3fd9..653952f47abd 100644
--- a/biology/wfa2-lib/Makefile
+++ b/biology/wfa2-lib/Makefile
@@ -17,4 +17,8 @@ USE_LDCONFIG=	yes
 GH_ACCOUNT=	smarco
 GH_PROJECT=	WFA2-lib
 
+.if !exists(/usr/include/omp.h)
+USES+=	compiler:gcc-c++11-lib
+.endif
+
 .include <bsd.port.mk>