git: 1a0bbb896a78 - main - biology/metaeuk: fix build without libomp and disable -m{arch,cpu}=native
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 01 Dec 2022 23:00:16 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1a0bbb896a78bf4abe39f3e5770a36639eff0eb7
commit 1a0bbb896a78bf4abe39f3e5770a36639eff0eb7
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-12-01 22:58:01 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-12-01 22:58:01 +0000
biology/metaeuk: fix build without libomp and disable -m{arch,cpu}=native
---
biology/metaeuk/Makefile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/biology/metaeuk/Makefile b/biology/metaeuk/Makefile
index dd7010c29c00..0213ba2a5d69 100644
--- a/biology/metaeuk/Makefile
+++ b/biology/metaeuk/Makefile
@@ -1,5 +1,6 @@
PORTNAME= metaeuk
DISTVERSION= 6
+PORTREVISION= 1
DISTVERSIONSUFFIX= -a5d39d9
CATEGORIES= biology
@@ -25,6 +26,12 @@ SHEBANG_GLOB= *.sh
PLIST_FILES= bin/metaeuk
+CMAKE_OFF= NATIVE_ARCH
+
+.if !exists(/usr/include/omp.h
+CMAKE_ARGS+= -DREQUIRE_OPENMP:BOOL=OFF
+.endif
+
do-test:
@cd ${WRKSRC}/tests && ./run.sh ${STAGEDIR}${PREFIX}/bin/metaeuk