From 551c877c8390e574d4972c373795e45b12ddcec8 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 18 Jan 2021 21:03:50 +0000 Subject: [PATCH] graphics/kf5-kimageformats: expose *.avif support after r561913 PR: 252698 Approved by: tcberner --- graphics/kf5-kimageformats/Makefile | 10 +++++++--- graphics/kf5-kimageformats/pkg-plist | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/graphics/kf5-kimageformats/Makefile b/graphics/kf5-kimageformats/Makefile index d481b378c89f..5cb6b19bce46 100644 --- a/graphics/kf5-kimageformats/Makefile +++ b/graphics/kf5-kimageformats/Makefile @@ -2,7 +2,7 @@ PORTNAME= kimageformats DISTVERSION= ${KDE_FRAMEWORKS_VERSION} -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics kde kde-frameworks MAINTAINER= kde@FreeBSD.org @@ -15,10 +15,14 @@ USE_KDE= archive ecm USE_QT= core gui printsupport widgets \ buildtools_build qmake_build -OPTIONS_DEFINE= OPENEXR -OPTIONS_DEFAULT= OPENEXR +OPTIONS_DEFINE= AVIF OPENEXR +OPTIONS_DEFAULT= AVIF OPENEXR OPTIONS_SUB= yes +AVIF_DESC= AV1 Image File Format via libavif +AVIF_LIB_DEPENDS= libavif.so:graphics/libavif +AVIF_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_libavif + OPENEXR_LIB_DEPENDS= libIlmImf.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 9f3976d7314f..42b7002cf4a6 100644 --- a/graphics/kf5-kimageformats/pkg-plist +++ b/graphics/kf5-kimageformats/pkg-plist @@ -1,3 +1,4 @@ +%%AVIF%%%%QT_PLUGINDIR%%/imageformats/kimg_avif.so %%QT_PLUGINDIR%%/imageformats/kimg_eps.so %%OPENEXR%%%%QT_PLUGINDIR%%/imageformats/kimg_exr.so %%QT_PLUGINDIR%%/imageformats/kimg_hdr.so @@ -10,6 +11,7 @@ %%QT_PLUGINDIR%%/imageformats/kimg_rgb.so %%QT_PLUGINDIR%%/imageformats/kimg_tga.so %%QT_PLUGINDIR%%/imageformats/kimg_xcf.so +%%AVIF%%share/kservices5/qimageioplugins/avif.desktop share/kservices5/qimageioplugins/dds.desktop share/kservices5/qimageioplugins/eps.desktop %%OPENEXR%%share/kservices5/qimageioplugins/exr.desktop