git: c6132c766da2 - main - graphics/libjxl: fix build on powerpc / powerpc64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Thu, 13 Apr 2023 00:52:11 UTC
The branch main has been updated by pkubaj:

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

commit c6132c766da2e4cf17cce9a001331560f6d330ab
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-04-13 00:51:19 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-04-13 00:51:19 +0000

    graphics/libjxl: fix build on powerpc / powerpc64
    
    /usr/local/include/hwy/ops/ppc_vsx-inl.h:2719:34: error: use of 'long long' with '__vector' requires VSX support (available on POWER7 or later) to be enabled
---
 graphics/libjxl/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/graphics/libjxl/Makefile b/graphics/libjxl/Makefile
index f1d4aa1c7b41..cdbe4d4e0cd1 100644
--- a/graphics/libjxl/Makefile
+++ b/graphics/libjxl/Makefile
@@ -22,6 +22,8 @@ GH_TUPLE=	jbeich:skcms:b25b07b:skcms/third_party/skcms \
 		libjxl:testdata:d6168ff:testdata/testdata \
 		webmproject:sjpeg:868ab55:sjpeg/third_party/sjpeg \
 		${NULL}
+CFLAGS_powerpc64=	-DHWY_DISABLE_PPC8_CRYPTO
+CFLAGS_powerpc=	-DHWY_DISABLE_PPC8_CRYPTO
 CMAKE_ON=	JPEGXL_ENABLE_PLUGINS
 CMAKE_OFF=	${BENCHMARK FUZZERS TCMALLOC:L:S/^/JPEGXL_ENABLE_/}
 CMAKE_OFF+=	${OpenGL GLUT:L:S/^/CMAKE_DISABLE_FIND_PACKAGE_/} # sjpeg