diff --git a/graphics/gtkam/Makefile b/graphics/gtkam/Makefile index 576999057075..00f2b613670e 100644 --- a/graphics/gtkam/Makefile +++ b/graphics/gtkam/Makefile @@ -1,42 +1,42 @@ 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/ LICENSE= GPLv2+ LIB_DEPENDS= libexif-gtk.so:graphics/libexif-gtk \ libgphoto2.so:graphics/libgphoto2 USES= gettext gmake gnome pathfix pkgconfig USE_GNOME= gtk20 intltool GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share CONFIGURE_ARGS= --without-bonobo --without-gnome CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib OPTIONS_DEFINE= DOCS GIMP OPTIONS_SUB= yes GIMP_DESC= GIMP plugin support GIMP_LIB_DEPENDS= libgimp-2.0.so:graphics/gimp-app GIMP_CONFIGURE_WITH= gimp post-patch: @${REINPLACE_CMD} -e 's|GIMP_VERSION="2.0"|GIMP_VERSION="2.2"|g ; \ s|images/gtkam|gtkam/images|g ; \ s|FLAGS -g|FLAGS|g' ${WRKSRC}/configure @${REINPLACE_CMD} 's/$$(GNOME_LIBS)/& $$(GTK_LIBS)/' \ ${WRKSRC}/src/Makefile.in @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ 's|images/gtkam|gtkam/images|g ; \ s|$$(libdir)/gimp/|$$(libexecdir)/gimp/|g' .include 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];