aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2024-11-05 10:35:40 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2024-11-05 14:55:47 +0000
commit7dbe2e17c9fb7b1c3a802d34c2ba7d7b3ef87456 (patch)
tree59fef4e94033eee72531735bc7c62057b7890421
parent3ab18d4b8415a5a80c90818d871047da6daf12f4 (diff)
downloadports-7dbe2e17c9fb7b1c3a802d34c2ba7d7b3ef87456.tar.gz
ports-7dbe2e17c9fb7b1c3a802d34c2ba7d7b3ef87456.zip
graphics/libjxl: fix build on big-endian
-- Big-endian architecture detected; defaulting to lcms2 instead of skcms
-rw-r--r--graphics/libjxl/Makefile6
1 files changed, 6 insertions, 0 deletions
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