diff --git a/graphics/gimp-lensfun-plugin/Makefile b/graphics/gimp-lensfun-plugin/Makefile index b62db7ac5dcf..f49759bd0d6c 100644 --- a/graphics/gimp-lensfun-plugin/Makefile +++ b/graphics/gimp-lensfun-plugin/Makefile @@ -1,47 +1,58 @@ PORTNAME= lensfun DISTVERSION= 0.2.5-dev +PORTREVISION= 1 CATEGORIES= graphics PKGNAMEPREFIX= gimp- PKGNAMESUFFIX= -plugin MAINTAINER= fluffy@FreeBSD.org COMMENT= Gimp plugin to correct lens distortion using the lensfun library WWW= https://seebk.github.io/GIMP-Lensfun/ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/exiv2.pc:graphics/exiv2 \ ${LOCALBASE}/libdata/pkgconfig/gimp-2.0.pc:graphics/gimp-app \ ${LOCALBASE}/libdata/pkgconfig/lensfun.pc:graphics/lensfun + +LIB_DEPENDS+= libatk-1.0.so:accessibility/at-spi2-core \ + libbabl-0.1.so:x11/babl \ + libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 \ + libgegl-0.4.so:graphics/gegl \ + libgegl-npd-0.4.so:graphics/gegl \ + libharfbuzz.so:print/harfbuzz \ + libjson-glib-1.0.so:devel/json-glib + RUN_DEPENDS:= ${BUILD_DEPENDS} -USES= compiler:c++11-lang gmake pkgconfig +USES= compiler:c++11-lang gettext-runtime gmake gnome pkgconfig USE_GITHUB= yes GH_ACCOUNT= seebk GH_PROJECT= GIMP-Lensfun GH_TAGNAME= c5eaf97 +USE_GNOME+= cairo gdkpixbuf2 glib20 gtk20 pango + PLUGIN_DIR?= libexec/gimp/2.2/plug-ins PLUGINS= gimp-lensfun # installed files .for plugin in ${PLUGINS} PLIST_FILES+= ${PLUGIN_DIR}/${plugin} .endfor post-patch: @${REINPLACE_CMD} \ -e 's|gimptool-2.0|${LOCALBASE}/bin/gimptool-2.0|' \ ${WRKSRC}/Makefile -# CCI support has been removed from recent versions of lensfun - @${REINPLACE_CMD} -e '/CCI/d' ${WRKSRC}/src/gimplensfun.cpp do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR} .for plugin in ${PLUGINS} ${INSTALL_PROGRAM} ${WRKSRC}/${plugin} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR} .endfor .include diff --git a/graphics/gimp-lensfun-plugin/files/patch-src_gimplensfun.cpp b/graphics/gimp-lensfun-plugin/files/patch-src_gimplensfun.cpp new file mode 100644 index 000000000000..a095cdab410b --- /dev/null +++ b/graphics/gimp-lensfun-plugin/files/patch-src_gimplensfun.cpp @@ -0,0 +1,20 @@ +--- src/gimplensfun.cpp.orig 2023-07-02 12:36:07 UTC ++++ src/gimplensfun.cpp +@@ -1034,7 +1034,7 @@ static void process_image (GimpDrawable *drawable) { + // + static int read_opts_from_exif(const char *filename) { + +- Exiv2::Image::AutoPtr Exiv2image; ++ Exiv2::Image::UniquePtr Exiv2image; + Exiv2::ExifData exifData; + + const lfCamera **cameras = 0; +@@ -1062,7 +1062,7 @@ static int read_opts_from_exif(const char *filename) { + return -1; + } + } +- catch (Exiv2::AnyError& e) { ++ catch (Exiv2::Error& e) { + if (DEBUG) { + g_print ("exception on reading data. \n"); + }