git: 06eee289d926 - main - graphics/kf5-kimageformats: add missed support for libRAW plugin

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Sat, 28 Oct 2023 22:47:48 UTC
The branch main has been updated by fluffy:

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

commit 06eee289d926958aa7f210246fc86ae8a1708ac5
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2023-10-28 22:47:16 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2023-10-28 22:47:16 +0000

    graphics/kf5-kimageformats: add missed support for libRAW plugin
---
 graphics/kf5-kimageformats/Makefile  | 8 ++++++--
 graphics/kf5-kimageformats/pkg-plist | 2 ++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/graphics/kf5-kimageformats/Makefile b/graphics/kf5-kimageformats/Makefile
index 48031bdacf9a..8e062f603460 100644
--- a/graphics/kf5-kimageformats/Makefile
+++ b/graphics/kf5-kimageformats/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	kimageformats
 DISTVERSION=	${KDE_FRAMEWORKS_VERSION}
+PORTREVISION=	1
 CATEGORIES=	graphics kde kde-frameworks
 
 MAINTAINER=	kde@FreeBSD.org
@@ -15,8 +16,8 @@ USE_QT=		core gui printsupport widgets \
 
 CFLAGS+=	-I${LOCALBASE}/include/Imath
 
-OPTIONS_DEFINE=	AVIF JXL HEIF OPENEXR
-OPTIONS_DEFAULT=	AVIF JXL HEIF OPENEXR
+OPTIONS_DEFINE=	AVIF JXL HEIF OPENEXR RAW
+OPTIONS_DEFAULT=	AVIF JXL HEIF OPENEXR RAW
 OPTIONS_SUB=	yes
 
 AVIF_LIB_DEPENDS=	libavif.so:graphics/libavif
@@ -31,6 +32,9 @@ HEIF_CMAKE_BOOL=	KIMAGEFORMATS_HEIF
 OPENEXR_LIB_DEPENDS=	libOpenEXR.so:graphics/openexr
 OPENEXR_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_OpenEXR
 
+RAW_LIB_DEPENDS=	libraw.so:graphics/libraw
+RAW_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_libraw
+
 post-patch:
 		${REINPLACE_CMD} s,Imf::Int64,uint64_t, \
 			${WRKSRC}/src/imageformats/exr.cpp
diff --git a/graphics/kf5-kimageformats/pkg-plist b/graphics/kf5-kimageformats/pkg-plist
index 006d829e2ecb..844d7ccf3ecc 100644
--- a/graphics/kf5-kimageformats/pkg-plist
+++ b/graphics/kf5-kimageformats/pkg-plist
@@ -12,6 +12,7 @@
 %%QT_PLUGINDIR%%/imageformats/kimg_psd.so
 %%QT_PLUGINDIR%%/imageformats/kimg_qoi.so
 %%QT_PLUGINDIR%%/imageformats/kimg_ras.so
+%%RAW%%%%QT_PLUGINDIR%%/imageformats/kimg_raw.so
 %%QT_PLUGINDIR%%/imageformats/kimg_rgb.so
 %%QT_PLUGINDIR%%/imageformats/kimg_tga.so
 %%QT_PLUGINDIR%%/imageformats/kimg_xcf.so
@@ -31,6 +32,7 @@ share/kservices5/qimageioplugins/pic.desktop
 share/kservices5/qimageioplugins/psd.desktop
 share/kservices5/qimageioplugins/qoi.desktop
 share/kservices5/qimageioplugins/ras.desktop
+%%RAW%%share/kservices5/qimageioplugins/raw.desktop
 share/kservices5/qimageioplugins/rgb.desktop
 share/kservices5/qimageioplugins/tga.desktop
 share/kservices5/qimageioplugins/xcf.desktop