blob: 576999057075728c4af053ae6d08dd2c2e6413ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
PORTNAME= gtkam
PORTVERSION= 1.0
PORTREVISION= 8
CATEGORIES= graphics
MASTER_SITES= SF/gphoto/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@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 <bsd.port.mk>
|