git: 3a565ff18f6b - main - archivers/c-blosc2: use GCC on powerpc64le for its SSE translation layer to use AltiVec

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Mon, 08 Nov 2021 16:51:46 UTC
The branch main has been updated by pkubaj:

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

commit 3a565ff18f6b2c5614ece807728e9f88e88ee279
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-11-08 16:49:35 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-11-08 16:49:35 +0000

    archivers/c-blosc2: use GCC on powerpc64le for its SSE translation layer to use AltiVec
    
    C11 is required by tests.
---
 archivers/c-blosc2/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/archivers/c-blosc2/Makefile b/archivers/c-blosc2/Makefile
index 038186b25c21..6ce38b81dd06 100644
--- a/archivers/c-blosc2/Makefile
+++ b/archivers/c-blosc2/Makefile
@@ -25,6 +25,13 @@ PLIST_SUB=	PORTVERSION=${PORTVERSION}
 GH_ACCOUNT=	Blosc
 USE_GITHUB=	yes
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64le
+USES+=		compiler:gcc-c++11-lib
+USE_CSTD=	c11
+.endif
+
 do-test:
 	cd ${TEST_WRKSRC} && ctest