git: 919c0e9e6529 - main - graphics/photoqt: make compatible with exiv2 0.28

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Sun, 09 Jul 2023 22:09:43 UTC
The branch main has been updated by mandree:

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

commit 919c0e9e652965d81fa317d57ca91ffdb51bbb9e
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2023-07-02 21:41:53 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2023-07-09 22:08:10 +0000

    graphics/photoqt: make compatible with exiv2 0.28
    
    PR:             272311
---
 graphics/photoqt/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/graphics/photoqt/Makefile b/graphics/photoqt/Makefile
index de9a7d4e2852..0a0842f13e56 100644
--- a/graphics/photoqt/Makefile
+++ b/graphics/photoqt/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	photoqt
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.6
-PORTREVISION=	9
+PORTREVISION=	10
 CATEGORIES=	graphics
 
 MAINTAINER=	melanhit@gmail.com
@@ -35,4 +35,9 @@ GM_CMAKE_BOOL=		GM
 GM_DESC=		GraphicsMagick image processing
 GM_LIB_DEPENDS=		libGraphicsMagick.so:graphics/GraphicsMagick
 
+post-patch:
+		${REINPLACE_CMD} -e 's,Exiv2::Image::AutoPtr,Exiv2::Image::UniquePtr,g' \
+			${WRKSRC}/cplusplus/scripts/getanddostuff/manipulation.cpp \
+			${WRKSRC}/cplusplus/scripts/getmetadata.cpp
+
 .include <bsd.port.mk>