Update graphics/cimg to version 1.7.5,3
[dports.git] / graphics / gtkam / Makefile
1 # Created by: ports@FreeBSD.org
2 # $FreeBSD$
3
4 PORTNAME=       gtkam
5 PORTVERSION=    1.0
6 CATEGORIES=     graphics
7 MASTER_SITES=   SF/gphoto/${PORTNAME}/${PORTVERSION}
8
9 MAINTAINER=     ports@FreeBSD.org
10 COMMENT=        Download and view files from various digital cameras
11
12 LICENSE=        GPLv2+
13
14 LIB_DEPENDS=    libexif-gtk.so:graphics/libexif-gtk \
15                 libgphoto2.so:graphics/libgphoto2
16
17 USES=           gettext gmake pathfix pkgconfig
18 USE_GNOME=      gtk20 intltool
19 GNU_CONFIGURE=  yes
20
21 CPPFLAGS+=      -I${LOCALBASE}/include
22 LIBS+=          -L${LOCALBASE}/lib
23
24 OPTIONS_DEFINE= DOCS GIMP GNOME
25 OPTIONS_SUB=    yes
26
27 GIMP_DESC=              GIMP plugin support
28 GIMP_LIB_DEPENDS=       libgimp-2.0.so:graphics/gimp
29 GIMP_CONFIGURE_WITH=    gimp
30
31 GNOME_USE=              GNOME=gnomeprefix,libgnomeui
32 GNOME_CONFIGURE_OFF=    --without-bonobo --without-gnome
33 GNOME_MAKE_ENV=         GNOME_SUBDIRS="help omf-install"
34
35 .include <bsd.port.options.mk>
36
37 .if ${PORT_OPTIONS:MGNOME}
38 INSTALLS_OMF=   yes
39 .endif
40
41 post-patch:
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'
50
51 .include <bsd.port.mk>