git: 0716ab659929 - main - biology/pooler: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 06 Oct 2021 21:07:17 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0716ab659929a0bd12bcff4faf0ab0993b297f14

commit 0716ab659929a0bd12bcff4faf0ab0993b297f14
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-10-06 20:52:30 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-10-06 20:52:30 +0000

    biology/pooler: fix build on powerpc
    
    In file included from bit-common.c:63:
    In file included from ./bit-choice.h:23:
    In file included from ./triangle.h:44:
    ./openmp.h:19:10: fatal error: 'omp.h' file not found
---
 biology/pooler/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/biology/pooler/Makefile b/biology/pooler/Makefile
index 8236638d0c4a..295c69325fbf 100644
--- a/biology/pooler/Makefile
+++ b/biology/pooler/Makefile
@@ -21,5 +21,10 @@ CFLAGS+=	-fopenmp
 INSTALL_TARGET=	install-strip
 PLIST_FILES=	bin/pooler man/man1/pooler.1.gz share/applications/pooler.desktop
 
-.include <bsd.port.mk>
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USES+=		compiler:gcc-c++11-lib
+.endif
 
+.include <bsd.port.mk>