git: c46e3d32eb69 - main - graphics/sharpconstruct: drop GCC on powerpc64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Thu, 10 Aug 2023 20:02:43 UTC
The branch main has been updated by pkubaj:

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

commit c46e3d32eb694c8f433eff3f6cd7dbf75b2505f9
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-08-09 08:11:48 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-08-10 20:02:25 +0000

    graphics/sharpconstruct: drop GCC on powerpc64
---
 graphics/sharpconstruct/Makefile | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/graphics/sharpconstruct/Makefile b/graphics/sharpconstruct/Makefile
index e820a27bf526..975081731936 100644
--- a/graphics/sharpconstruct/Makefile
+++ b/graphics/sharpconstruct/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	sharpconstruct
 PORTVERSION=	0.11
-PORTREVISION=	18
+PORTREVISION=	19
 CATEGORIES=	graphics
 MASTER_SITES=	SF/sharp3d/SharpConstruct/${PORTVERSION}
 
@@ -17,24 +17,22 @@ LIB_DEPENDS=	libgtkglextmm-x11-1.2.so:x11-toolkits/gtkglextmm \
 ONLY_FOR_ARCHS=	amd64 i386 powerpc64 powerpc64le
 ONLY_FOR_ARCHS_REASON=	uses SSE instructions
 
-USES=		gl tar:bzip2 gmake pkgconfig
+USES=		compiler:c++11-lang gl tar:bzip2 gmake pkgconfig
 USE_CXXSTD=	c++11
 GNU_CONFIGURE=	yes
 USE_GL=		gl glu
 
 CXXFLAGS_i386=	-msse
 CXXFLAGS_powerpc64le=	-DNO_WARN_X86_INTRINSICS
+CXXFLAGS_powerpc64=	-DNO_WARN_X86_INTRINSICS -mvsx
 PLIST_FILES=	bin/${PORTNAME} \
 		man/man1/${PORTNAME}.1.gz
 PORTDATA=	*
 
 .include <bsd.port.options.mk>
 
-.if ${ARCH} == powerpc64
-CXXFLAGS+=	-DNO_WARN_X86_INTRINSICS -maltivec -mvsx
-USES+=		compiler:gcc-c++11-lib
-.else
-USES+=		compiler:c++11-lang
+.if ${ARCH} == powerpc64 && !defined(CPUTYPE)
+CXXFLAGS+=	-mcpu=power7
 .endif
 
 post-patch: