Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Dec 2022 23:00:16 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: 1a0bbb896a78 - main - biology/metaeuk: fix build without libomp and disable -m{arch,cpu}=native
Message-ID:  <202212012300.2B1N0GIT012615@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=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
 



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