1 # Created by: ports@FreeBSD.org
7 MASTER_SITES= SF/gphoto/${PORTNAME}/${PORTVERSION}
9 MAINTAINER= ports@FreeBSD.org
10 COMMENT= Download and view files from various digital cameras
14 LIB_DEPENDS= libexif-gtk.so:graphics/libexif-gtk \
15 libgphoto2.so:graphics/libgphoto2
17 USES= gettext gmake pathfix pkgconfig
18 USE_GNOME= gtk20 intltool
21 CPPFLAGS+= -I${LOCALBASE}/include
22 LIBS+= -L${LOCALBASE}/lib
24 OPTIONS_DEFINE= DOCS GIMP GNOME
27 GIMP_DESC= GIMP plugin support
28 GIMP_LIB_DEPENDS= libgimp-2.0.so:graphics/gimp
29 GIMP_CONFIGURE_WITH= gimp
31 GNOME_USE= GNOME=gnomeprefix,libgnomeui
32 GNOME_CONFIGURE_OFF= --without-bonobo --without-gnome
33 GNOME_MAKE_ENV= GNOME_SUBDIRS="help omf-install"
35 .include <bsd.port.options.mk>
37 .if ${PORT_OPTIONS:MGNOME}
42 @${REINPLACE_CMD} -e 's|GIMP_VERSION="2.0"|GIMP_VERSION="2.2"|g ; \
43 s|images/gtkam|gtkam/images|g ; \
44 s|FLAGS -g|FLAGS|g' ${WRKSRC}/configure
45 @${REINPLACE_CMD} 's/$$(GNOME_LIBS)/& $$(GTK_LIBS)/' \
46 ${WRKSRC}/src/Makefile.in
47 @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
48 's|images/gtkam|gtkam/images|g ; \
49 s|$$(libdir)/gimp/|$$(libexecdir)/gimp/|g'
51 .include <bsd.port.mk>