git: befc9ebe2472 - main - graphics/kf5-kimageformats: expose JPEG XL support

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Fri, 11 Feb 2022 11:16:28 UTC
The branch main has been updated by jbeich:

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

commit befc9ebe247236d6f2b4ae35de2f576634741234
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-01-08 20:33:22 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-02-11 11:16:16 +0000

    graphics/kf5-kimageformats: expose JPEG XL support
---
 graphics/kf5-kimageformats/Makefile  | 6 +++++-
 graphics/kf5-kimageformats/pkg-plist | 2 ++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/graphics/kf5-kimageformats/Makefile b/graphics/kf5-kimageformats/Makefile
index 30d4e26e070b..44bec50314d5 100644
--- a/graphics/kf5-kimageformats/Makefile
+++ b/graphics/kf5-kimageformats/Makefile
@@ -15,7 +15,7 @@ USE_QT=		core gui printsupport widgets \
 
 CFLAGS+=	-I${LOCALBASE}/include/Imath
 
-OPTIONS_DEFINE=	AVIF OPENEXR
+OPTIONS_DEFINE=	AVIF JXL OPENEXR
 OPTIONS_DEFAULT=	AVIF OPENEXR
 OPTIONS_SUB=	yes
 
@@ -23,6 +23,10 @@ AVIF_DESC=		AV1 Image File Format via libavif
 AVIF_LIB_DEPENDS=	libavif.so:graphics/libavif
 AVIF_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_libavif
 
+JXL_DESC=		JPEG XL image format via libjxl
+JXL_LIB_DEPENDS=	libjxl.so:graphics/libjxl
+JXL_CMAKE_BOOL=		KIMAGEFORMATS_JXL
+
 OPENEXR_LIB_DEPENDS=	libOpenEXR.so:graphics/openexr
 OPENEXR_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_OpenEXR
 
diff --git a/graphics/kf5-kimageformats/pkg-plist b/graphics/kf5-kimageformats/pkg-plist
index 4858b13a43cc..7157ef47f2e9 100644
--- a/graphics/kf5-kimageformats/pkg-plist
+++ b/graphics/kf5-kimageformats/pkg-plist
@@ -2,6 +2,7 @@
 %%QT_PLUGINDIR%%/imageformats/kimg_eps.so
 %%OPENEXR%%%%QT_PLUGINDIR%%/imageformats/kimg_exr.so
 %%QT_PLUGINDIR%%/imageformats/kimg_hdr.so
+%%JXL%%%%QT_PLUGINDIR%%/imageformats/kimg_jxl.so
 %%QT_PLUGINDIR%%/imageformats/kimg_kra.so
 %%QT_PLUGINDIR%%/imageformats/kimg_ora.so
 %%QT_PLUGINDIR%%/imageformats/kimg_pcx.so
@@ -19,6 +20,7 @@ share/kservices5/qimageioplugins/eps.desktop
 %%OPENEXR%%share/kservices5/qimageioplugins/exr.desktop
 share/kservices5/qimageioplugins/hdr.desktop
 share/kservices5/qimageioplugins/jp2.desktop
+%%JXL%%share/kservices5/qimageioplugins/jxl.desktop
 share/kservices5/qimageioplugins/kra.desktop
 share/kservices5/qimageioplugins/ora.desktop
 share/kservices5/qimageioplugins/pcx.desktop