Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2025 11:27:50 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 989b3863994b - main - biology/stacks: fix build without libomp
Message-ID:  <202501221127.50MBRoWL046853@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

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

commit 989b3863994b82a4030031f940dfb3561d15c825
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-21 21:20:02 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-22 11:27:04 +0000

    biology/stacks: fix build without libomp
    
    src/process_radtags.cc:1578:6: error: unknown type name 'omp_lock_t'
     1578 |             omp_lock_t      &thread_outbuf_lock   = outbuf_lock[thread_index];
          |             ^
    25 warnings and 10 errors generated.
---
 biology/stacks/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/biology/stacks/Makefile b/biology/stacks/Makefile
index 5e1b270e1b98..e0264aa59d58 100644
--- a/biology/stacks/Makefile
+++ b/biology/stacks/Makefile
@@ -10,7 +10,12 @@ WWW=		https://catchenlab.life.illinois.edu/stacks/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		compiler:c++11-lang gmake python shebangfix
+USES=		gmake python shebangfix
+.if !exists(/usr/include/omp.h)
+USES+=	compiler:gcc-c++11-lib
+.else
+USES+=	compiler:c++11-lang
+.endif
 
 SHEBANG_FILES=	scripts/*
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501221127.50MBRoWL046853>