git: 3c3154cae7ca - main - audio/madronalib: drop GCC on powerpc64

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

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

commit 3c3154cae7ca96ae72ec0043c0aae5783044508b
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-08-10 19:49:39 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-08-10 20:02:29 +0000

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

diff --git a/audio/madronalib/Makefile b/audio/madronalib/Makefile
index 4248d0e62fed..693348251596 100644
--- a/audio/madronalib/Makefile
+++ b/audio/madronalib/Makefile
@@ -2,7 +2,7 @@ PORTNAME=	madronalib
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.6-1016
 DISTVERSIONSUFFIX=	-g103895f
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	audio
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -19,21 +19,19 @@ BROKEN_riscv64=	error: use of undeclared identifier '__builtin_ia32_emms'; did y
 
 LIB_DEPENDS=	libjack.so:audio/jack
 
-USES=		cmake localbase:ldflags perl5
+USES=		cmake compiler:c++11-lib localbase:ldflags perl5
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	madronalabs
 
 CMAKE_ON=	LINUX_JACK
 CXXFLAGS_powerpc64le=	-DNO_WARN_X86_INTRINSICS
+CXXFLAGS_powerpc64=	-DNO_WARN_X86_INTRINSICS
 
 .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-lib
+.if ${ARCH} == powerpc64 && !defined(CPUTYPE)
+CXXFLAGS+=	-mcpu=power7
 .endif
 
 .include <bsd.port.mk>