blob: 7e71664909f3a5957a12ded160d02dc73a89fff3 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# New ports collection makefile for: gtkam
# Date created: 10 June 2002
# Whom: ports@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= gtkam
PORTVERSION= 0.1.14
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gphoto
MAINTAINER= pav@FreeBSD.org
COMMENT= Download and view files from various digital cameras
LIB_DEPENDS= exif-gtk.5:${PORTSDIR}/graphics/libexif-gtk \
gphoto2.2:${PORTSDIR}/graphics/libgphoto2
USE_XLIB= yes
WANT_GNOME= yes
USE_GNOME= gnomehack gnomehier gnometarget gtk20
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MAN1= gtkam.1
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/lib/libgimp-2.0.so) && !defined(WITHOUT_GIMP)
WITH_GIMP= yes
.endif
.if defined(WITH_GIMP)
LIB_DEPENDS+= gimp-2.0:${PORTSDIR}/graphics/gimp
PLIST_SUB+= GIMP=""
.else
CONFIGURE_ARGS+= --without-gimp
PLIST_SUB+= GIMP="@comment "
.endif
.if ${HAVE_GNOME:Mlibgnomeui}!=""
PKGNAMESUFFIX= -gnome
USE_GNOME+= gnomeprefix libgnomeui
INSTALLS_OMF= yes
MAKE_ENV+= GNOME_SUBDIRS="help omf-install"
DATADIR= ${PREFIX}/share/gnome/${PORTNAME}
.else
CONFIGURE_ARGS+= --without-bonobo --without-gnome
MAKE_ENV+= GNOME_SUBDIRS=""
.endif
pre-everything::
.if !defined(WITH_GIMP)
@${ECHO_MSG}
@${ECHO_MSG} "If you want to compile with plugin for The GIMP,"
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_GIMP=yes\""
@${ECHO_MSG}
.endif
post-patch:
@${REINPLACE_CMD} -e 's|GIMP_VERSION="2.0"|GIMP_VERSION="2.2"|g ; \
s|images/gtkam|gtkam/images|g' ${WRKSRC}/configure
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|images/gtkam|gtkam/images|g ; \
s|$$(libdir)/gimp/|$$(libexecdir)/gimp/|g'
post-install:
${INSTALL_DATA} ${WRKSRC}/gtkam.desktop \
${PREFIX}/share/gnome/applications
${INSTALL_DATA} ${WRKSRC}/gtkam.png \
${PREFIX}/share/gnome/pixmaps
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in AUTHORS NEWS README
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>
|