git: db3dcd84a73b - main - devel/highway: better fix for powerpc64 and powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Mon, 27 Mar 2023 23:03:24 UTC
The branch main has been updated by pkubaj:

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

commit db3dcd84a73bdf8fa60c56ffbac1c27a8d1a4367
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-03-27 23:02:03 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-03-27 23:03:24 +0000

    devel/highway: better fix for powerpc64 and powerpc
    
    Instead of forcing VSX and POWER Crypto extensions, which raises the baseline to POWER8, disable SIMD altogether.
---
 devel/highway/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/devel/highway/Makefile b/devel/highway/Makefile
index aed553f65204..1554e6e0ecac 100644
--- a/devel/highway/Makefile
+++ b/devel/highway/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	highway
 DISTVERSION=	1.0.4
+PORTREVISION=	1
 CATEGORIES=	devel
 
 MAINTAINER=	jbeich@FreeBSD.org
@@ -13,7 +14,8 @@ TEST_DEPENDS=	googletest>0:devel/googletest
 USES=		cmake:testing compiler:c++11-lib
 USE_GITHUB=	yes
 GH_ACCOUNT=	google
-CFLAGS_powerpc64=	-mcrypto -mpower8-vector
+CFLAGS_powerpc64=	-DHWY_DISABLE_PPC8_CRYPTO
+CFLAGS_powerpc=	-DHWY_DISABLE_PPC8_CRYPTO
 CMAKE_ON=	BUILD_SHARED_LIBS HWY_SYSTEM_GTEST
 CMAKE_OFF+=	${CMAKE_TESTING_ON}