git: dbb6535a833b - main - graphics/py-s2: similarly to other s2 ports, drop gcc on powerpc64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Fri, 22 Apr 2022 15:51:30 UTC
The branch main has been updated by pkubaj:

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

commit dbb6535a833bed3e215bcc7347abf6ba99af768c
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-04-22 15:37:46 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-04-22 15:37:46 +0000

    graphics/py-s2: similarly to other s2 ports, drop gcc on powerpc64
---
 graphics/py-s2/Makefile | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/graphics/py-s2/Makefile b/graphics/py-s2/Makefile
index 339646283ff0..854e830cb985 100644
--- a/graphics/py-s2/Makefile
+++ b/graphics/py-s2/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	s2
 PORTVERSION=	0.9.0
+PORTREVISION=	1
 DISTVERSIONPREFIX=	v
 CATEGORIES=	graphics python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -16,7 +17,7 @@ BUILD_DEPENDS=	s2>=${PORTVERSION}:graphics/s2 \
 		swig:devel/swig
 LIB_DEPENDS=	libs2.so:graphics/s2
 
-USES=		cmake localbase:ldflags python
+USES=		cmake compiler:c++11-lang localbase:ldflags python
 
 WRKSRC_SUBDIR=	src/python
 
@@ -26,10 +27,8 @@ USE_GITHUB=	yes
 
 .include <bsd.port.options.mk>
 
-.if ${ARCH} == powerpc64
-USES+=		compiler:gcc-c++11-lib
-.else
-USES+=		compiler:c++11-lang
+.if ${ARCH} == powerpc64 && !defined(CPUTYPE)
+CXXFLAGS+=	-mcpu=power7
 .endif
 
 .include <bsd.port.mk>