blob: 328325436d16b3452bf17ed9a44a0a45025485f8 (
plain) (
blame)
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
43
44
45
46
47
48
49
50
51
52
|
# Created by: ports@FreeBSD.org
# $FreeBSD$
PORTNAME= gtkam
PORTVERSION= 0.2.0
PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= SF/gphoto/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Download and view files from various digital cameras
LICENSE= GPLv2+
LIB_DEPENDS= libexif-gtk.so:${PORTSDIR}/graphics/libexif-gtk \
libgphoto2.so:${PORTSDIR}/graphics/libgphoto2
USES= gettext gmake pathfix pkgconfig
USE_GNOME= gtk20 intltool
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= DOCS GIMP GNOME
OPTIONS_SUB= yes
GIMP_DESC= GIMP plugin support
GIMP_LIB_DEPENDS= libgimp-2.0.so:${PORTSDIR}/graphics/gimp
GIMP_CONFIGURE_WITH= gimp
GNOME_USE= GNOME=gnomeprefix,libgnomeui
GNOME_CONFIGURE_OFF= --without-bonobo --without-gnome
GNOME_MAKE_ENV= GNOME_SUBDIRS="help omf-install"
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNOME}
INSTALLS_OMF= yes
.endif
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>
|