git: f00588c63480 - main - biology/hhsuite: fix packaging on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 16 Nov 2021 12:11:02 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f00588c63480bbe584bbfa766e5ca86cff893cf4
commit f00588c63480bbe584bbfa766e5ca86cff893cf4
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-11-16 12:03:42 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-11-16 12:03:42 +0000
biology/hhsuite: fix packaging on powerpc
pkg-static: Unable to access file /wrkdirs/usr/ports/biology/hhsuite/work/stage/usr/local/bin/hhalign_omp:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/biology/hhsuite/work/stage/usr/local/bin/hhblits_ca3m:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/biology/hhsuite/work/stage/usr/local/bin/hhblits_omp:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/biology/hhsuite/work/stage/usr/local/bin/hhsearch_omp:No such file or directory
powerpc doesn't have LLVM with libomp.
---
biology/hhsuite/Makefile | 6 ++++++
biology/hhsuite/pkg-plist | 8 ++++----
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/biology/hhsuite/Makefile b/biology/hhsuite/Makefile
index fc24fac30c34..a5eadbd193e2 100644
--- a/biology/hhsuite/Makefile
+++ b/biology/hhsuite/Makefile
@@ -29,4 +29,10 @@ CMAKE_ON= HAVE_SSE2
CMAKE_ON= HAVE_POWER8
.endif
+.if ${ARCH} == powerpc
+PLIST_SUB+= OPENMP="@comment "
+.else
+PLIST_SUB+= OPENMP=""
+.endif
+
.include <bsd.port.mk>
diff --git a/biology/hhsuite/pkg-plist b/biology/hhsuite/pkg-plist
index c0088e8470e1..7b43c4fe3173 100644
--- a/biology/hhsuite/pkg-plist
+++ b/biology/hhsuite/pkg-plist
@@ -17,17 +17,17 @@ bin/ffindex_reduce
bin/ffindex_unpack
bin/hhalign
bin/hhalign_mpi
-bin/hhalign_omp
+%%OPENMP%%bin/hhalign_omp
bin/hhblits
-bin/hhblits_ca3m
+%%OPENMP%%bin/hhblits_ca3m
bin/hhblits_mpi
-bin/hhblits_omp
+%%OPENMP%%bin/hhblits_omp
bin/hhconsensus
bin/hhfilter
bin/hhmake
bin/hhsearch
bin/hhsearch_mpi
-bin/hhsearch_omp
+%%OPENMP%%bin/hhsearch_omp
%%DATADIR%%/data/context_data.crf
%%DATADIR%%/data/context_data.lib
%%DATADIR%%/data/cs219.lib