PORTNAME= gtkam PORTVERSION= 1.0 PORTREVISION= 9 CATEGORIES= graphics MASTER_SITES= SF/gphoto/${PORTNAME}/${PORTVERSION} 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