git: 26ed2ece6d6b - main - databases/grass8: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sat, 22 Jan 2022 13:40:11 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=26ed2ece6d6b16a10fad64f5e3cfe0f72e8e8601

commit 26ed2ece6d6b16a10fad64f5e3cfe0f72e8e8601
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-01-22 13:33:25 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-01-22 13:33:25 +0000

    databases/grass8: fix build on powerpc
    
    No libomp on powerpc.
---
 databases/grass8/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/databases/grass8/Makefile b/databases/grass8/Makefile
index 57c340fae399..89149dca84b0 100644
--- a/databases/grass8/Makefile
+++ b/databases/grass8/Makefile
@@ -73,7 +73,6 @@ CONFIGURE_ARGS=	--with-includes=${LOCALBASE}/include \
 		--with-geos=${LOCALBASE}/bin/geos-config \
 		--with-gdal=${LOCALBASE}/bin/gdal-config \
 		--with-pthread=yes \
-		--with-openmp \
 		--prefix=${LOCALBASE} \
 		--exec-prefix=${LOCALBASE}
 
@@ -119,6 +118,10 @@ PGSQL_CONFIGURE_WITH=	postgres
 GRASS_INST_DIR=	${PORTNAME}${VER}
 .endif
 
+.if ${ARCH} != powerpc
+CONFIGURE_ARGS+=	--with-openmp
+.endif
+
 MANDIRS=	${PREFIX}/grass${VER}/docs/man/man1
 
 post-patch: