git: 64e80d6c123a - main - graphics/gtkam: Fix building the GIMP plugin

From: Felix Palmen <zirias_at_FreeBSD.org>
Date: Fri, 15 Mar 2024 07:01:48 UTC
The branch main has been updated by zirias:

URL: https://cgit.FreeBSD.org/ports/commit/?id=64e80d6c123a80308a949b72cb7d981a061c6fe5

commit 64e80d6c123a80308a949b72cb7d981a061c6fe5
Author:     Felix Palmen <zirias@FreeBSD.org>
AuthorDate: 2024-03-15 07:00:45 +0000
Commit:     Felix Palmen <zirias@FreeBSD.org>
CommitDate: 2024-03-15 07:00:45 +0000

    graphics/gtkam: Fix building the GIMP plugin
    
    Two arguments to callbacks must be const now.
    
    Take maintainership.
---
 graphics/gtkam/Makefile                     |  4 ++--
 graphics/gtkam/files/patch-src_gtkam-gimp.c | 29 +++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/graphics/gtkam/Makefile b/graphics/gtkam/Makefile
index 576999057075..00f2b613670e 100644
--- a/graphics/gtkam/Makefile
+++ b/graphics/gtkam/Makefile
@@ -1,10 +1,10 @@
 PORTNAME=	gtkam
 PORTVERSION=	1.0
-PORTREVISION=	8
+PORTREVISION=	9
 CATEGORIES=	graphics
 MASTER_SITES=	SF/gphoto/${PORTNAME}/${PORTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	zirias@FreeBSD.org
 COMMENT=	Download and view files from various digital cameras
 WWW=		http://www.gphoto.org/proj/gtkam/
 
diff --git a/graphics/gtkam/files/patch-src_gtkam-gimp.c b/graphics/gtkam/files/patch-src_gtkam-gimp.c
new file mode 100644
index 000000000000..90d235d2cfd4
--- /dev/null
+++ b/graphics/gtkam/files/patch-src_gtkam-gimp.c
@@ -0,0 +1,29 @@
+--- src/gtkam-gimp.c.orig	2024-03-15 06:53:10 UTC
++++ src/gtkam-gimp.c
+@@ -258,7 +258,7 @@ static void
+ }
+ 
+ static void
+-run_capture (gchar *name, gint nparams, GimpParam *param, gint *nreturn_vals,
++run_capture (const gchar *name, gint nparams, const GimpParam *param, gint *nreturn_vals,
+ 	     GimpParam **return_vals)
+ {
+ 	GtkamCamera *camera = NULL;
+@@ -387,7 +387,7 @@ static void
+ }
+ 
+ static void
+-run_load (gchar *name, gint nparams, GimpParam *param, gint *nreturn_vals,
++run_load (const gchar *name, gint nparams, const GimpParam *param, gint *nreturn_vals,
+ 	  GimpParam **return_vals)
+ {
+ 	GtkWidget *fsel;
+@@ -457,7 +457,7 @@ static void
+ }
+ 
+ static void
+-run (gchar *name, gint nparams, GimpParam *params, gint *nreturn_vals,
++run (const gchar *name, gint nparams, const GimpParam *params, gint *nreturn_vals,
+      GimpParam **return_vals)
+ {
+ 	static GimpParam values[1];