git: 7dbe2e17c9fb - main - graphics/libjxl: fix build on big-endian

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 05 Nov 2024 14:58:02 UTC
The branch main has been updated by pkubaj:

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

commit 7dbe2e17c9fb7b1c3a802d34c2ba7d7b3ef87456
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-11-05 10:35:40 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-11-05 14:55:47 +0000

    graphics/libjxl: fix build on big-endian
    
    -- Big-endian architecture detected; defaulting to lcms2 instead of skcms
---
 graphics/libjxl/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/graphics/libjxl/Makefile b/graphics/libjxl/Makefile
index 68c007d02c41..adced72d2797 100644
--- a/graphics/libjxl/Makefile
+++ b/graphics/libjxl/Makefile
@@ -60,6 +60,12 @@ PIXBUF_CMAKE_BOOL=	JPEGXL_ENABLE_PLUGIN_GDKPIXBUF
 PNG_LIB_DEPENDS=	libpng.so:graphics/png
 PNG_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_PNG
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc || ${ARCH} == powerpc64
+LIB_DEPENDS+=	liblcms2.so:graphics/lcms2
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} 's,/usr,${LOCALBASE},' \
 		${WRKSRC}/plugins/gdk-pixbuf/jxl.thumbnailer