git: 8aae744d0492 - main - biology/cd-hit: fix build on powerpc
Piotr Kubaj
pkubaj at FreeBSD.org
Thu Jun 10 00:35:39 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8aae744d04920573ee2c3c34390c268a05beff39
commit 8aae744d04920573ee2c3c34390c268a05beff39
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-06-10 00:35:36 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-06-10 00:35:36 +0000
biology/cd-hit: fix build on powerpc
LLVM on powerpc doesn't have libomp:
cdhit-common.c++:36:9: fatal error: 'omp.h' file not found
---
biology/cd-hit/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/biology/cd-hit/Makefile b/biology/cd-hit/Makefile
index 2782ab0e47ac..66331b1d6629 100644
--- a/biology/cd-hit/Makefile
+++ b/biology/cd-hit/Makefile
@@ -18,6 +18,12 @@ SHEBANG_FILES= ${WRKSRC}/*.pl
MAKE_FLAGS= openmp=yes
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USES+= compiler:gcc-c++11-lib
+.endif
+
post-patch:
@${REINPLACE_CMD} \
-e 's|/bin/bash|${LOCALBASE}/bin/bash|g' \
More information about the dev-commits-ports-all
mailing list