git: 4a5000181bdb - main - databases/grass7: check for omp.h on all architectures
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Apr 2022 13:39:56 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4a5000181bdbf13467bcdb536548af37352f2263
commit 4a5000181bdbf13467bcdb536548af37352f2263
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-04-27 13:18:42 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-04-27 13:18:42 +0000
databases/grass7: check for omp.h on all architectures
---
databases/grass7/Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/databases/grass7/Makefile b/databases/grass7/Makefile
index 64d5aef845f5..2399e2998d98 100644
--- a/databases/grass7/Makefile
+++ b/databases/grass7/Makefile
@@ -131,6 +131,10 @@ SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_F
ZSTD_CONFIGURE_WITH= zstd
ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd
+.if exists(/usr/include/omp.h)
+CONFIGURE_ARGS+= --with-openmp
+.endif
+
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
@@ -140,10 +144,6 @@ PLIST_SUB+= NOTONI386="@comment "
PLIST_SUB+= NOTONI386=""
.endif
-.if ${ARCH} != powerpc
-CONFIGURE_ARGS+= --with-openmp
-.endif
-
.if !defined (GRASS_INST_DIR)
GRASS_INST_DIR= ${PORTNAME}${VER}
.endif