diff --git a/graphics/krita/Makefile b/graphics/krita/Makefile index b86904b7d656..45da384491de 100644 --- a/graphics/krita/Makefile +++ b/graphics/krita/Makefile @@ -1,78 +1,78 @@ PORTNAME= krita DISTVERSION= 5.1.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics kde MASTER_SITES= KDE/stable/${PORTNAME}/${DISTVERSION} DIST_SUBDIR= KDE/${PORTNAME} MAINTAINER= kde@FreeBSD.org COMMENT= Sketching and painting program WWW= https://krita.org LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= libheif>=1.12.0:graphics/libheif BUILD_DEPENDS+= ${BUILD_DEPENDS_${ARCH}} BUILD_DEPENDS_aarch64= xsimd>=8.1:devel/xsimd BUILD_DEPENDS_amd64= xsimd>=8.1:devel/xsimd LIB_DEPENDS= libImath.so:math/Imath \ libOpenColorIO.so:graphics/opencolorio \ libX11.so:x11/libX11 \ libboost_system.so:devel/boost-libs \ libfftw3.so:math/fftw3 \ libexiv2.so:graphics/exiv2 \ libcurl.so:ftp/curl \ libgif.so:graphics/giflib \ libgsl.so:math/gsl \ libheif.so:graphics/libheif \ libturbojpeg.so:graphics/libjpeg-turbo \ libjxl.so:graphics/libjxl \ liblcms2.so:graphics/lcms2 \ libmypaint.so:graphics/libmypaint \ libpng.so:graphics/png \ libpoppler.so:graphics/poppler \ libpoppler-qt5.so:graphics/poppler-qt5 \ libquazip1-qt5.so:archivers/quazip \ libraw.so:graphics/libraw \ libtiff.so:graphics/tiff \ libwebp.so:graphics/webp \ libxcb.so:x11/libxcb \ libxcb-util.so:x11/xcb-util # Disable ninja generator for now (with gmake), until the duplicate test targets are resolved upstream. USES= cmake:noninja gmake compiler:c++11-lib desktop-file-utils \ eigen:3 gettext jpeg kde:5 localbase:ldflags pkgconfig \ python:3.7+ qt:5 shared-mime-info tar:xz xorg USE_KDE= archive completion config coreaddons crash guiaddons i18n \ itemmodels itemviews kio service widgetsaddons windowsystem USE_QT= concurrent core dbus declarative gui multimedia network printsupport \ sql svg testlib widgets x11extras xml sql-sqlite3:run \ buildtools:build qmake:build USE_XORG= ice sm xcb xext xi CMAKE_ARGS= -DCMAKE_DISABLE_FIND_PACKAGE_PyQt5:BOOL=true OPTIONS_DEFINE= GMIC OPENEXR OPTIONS_DEFAULT= OPENEXR OPTIONS_SUB= yes GMIC_DESC= Depend on the G'Mic plugin #' GMIC_RUN_DEPENDS= gmic_krita_qt:graphics/gmic-qt@krita OPENEXR_LIB_DEPENDS= libOpenEXR.so:graphics/openexr \ libKSeExpr.so:graphics/kseexpr OPENEXR_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_OpenEXR PLIST_SUB= SHLIB_VER=18.0.0 \ SHLIB_SHVER=18 .include .if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == i386 BUILD_DEPENDS+= vc>=1.1.0:devel/vc .else CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_Vc=ON .endif .include diff --git a/graphics/krita/files/patch-git_e9184281 b/graphics/krita/files/patch-git_e9184281 new file mode 100644 index 000000000000..4ea688709d74 --- /dev/null +++ b/graphics/krita/files/patch-git_e9184281 @@ -0,0 +1,28 @@ +diff --git a/plugins/impex/heif/HeifExport.cpp b/plugins/impex/heif/HeifExport.cpp +index c7376a6798aa6ba364fa414864086b00b9cbf3a1..c46db548bb979391166c545fc913bd0f8ff90eda 100644 +--- plugins/impex/heif/HeifExport.cpp ++++ plugins/impex/heif/HeifExport.cpp +@@ -403,7 +403,11 @@ KisImportExportErrorCode HeifExport::convert(KisDocument *document, QIODevice *i + nclxDescription.set_full_range_flag(true); + nclxDescription.set_matrix_coefficients(heif_matrix_coefficients_RGB_GBR); + if (convertToRec2020) { ++#if LIBHEIF_HAVE_VERSION(1, 14, 1) ++ nclxDescription.set_color_primaries(heif_color_primaries_ITU_R_BT_2020_2_and_2100_0); ++#else + nclxDescription.set_color_primaties(heif_color_primaries_ITU_R_BT_2020_2_and_2100_0); ++#endif + } else { + const ColorPrimaries primaries = + image->colorSpace()->profile()->getColorPrimaries(); +@@ -413,7 +417,11 @@ KisImportExportErrorCode HeifExport::convert(KisDocument *document, QIODevice *i + KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE( + primaries >= PRIMARIES_ADOBE_RGB_1998, + ImportExportCodes::FormatColorSpaceUnsupported); ++#if LIBHEIF_HAVE_VERSION(1, 14, 1) ++ nclxDescription.set_color_primaries(heif_color_primaries(primaries)); ++#else + nclxDescription.set_color_primaties(heif_color_primaries(primaries)); ++#endif + } + + if (conversionPolicy == ConversionPolicy::ApplyPQ) {