blob: b47f698e94cb3ad331f015b5f0d807b1cc838621 (
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
|
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> et al.
# $FreeBSD$
PORTNAME= shotwell
PORTVERSION= 0.18.0
PORTREVISION= 1
CATEGORIES= graphics gnome
MASTER_SITES= GNOME/sources/shotwell/${PORTVERSION:R}
MAINTAINER= cmt@burggraben.net
COMMENT= Open source photo manager for GNOME
LICENSE= LGPL21
BUILD_DEPENDS= vala>=0.18.0:${PORTSDIR}/lang/vala \
bash:${PORTSDIR}/shells/bash
LIB_DEPENDS= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
libgee-0.8.so:${PORTSDIR}/devel/libgee \
libjson-glib-1.0.so:${PORTSDIR}/devel/json-glib \
libsoup-2.4.so:${PORTSDIR}/devel/libsoup \
libgexiv2.so:${PORTSDIR}/graphics/gexiv2 \
libexif.so:${PORTSDIR}/graphics/libexif \
libgphoto2.so:${PORTSDIR}/graphics/libgphoto2 \
libwebkitgtk-3.0.so:${PORTSDIR}/www/webkit-gtk3 \
libunique-1.0.so:${PORTSDIR}/x11-toolkits/unique \
libraw.so:${PORTSDIR}/graphics/libraw \
librest-0.7.so:${PORTSDIR}/devel/librest
USES= shebangfix gettext desktop-file-utils gmake pkgconfig tar:xz
USE_GNOME= gnomehier gconf2 gtk20 gnomedocutils librsvg2
USE_SQLITE= 3
USE_GSTREAMER1= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} --disable-icon-update
CONFIGURE_ENV+= --define=NO_CAMERA
INSTALLS_ICONS= yes
OPTIONS_DEFINE= OPENMP
OPTIONS_DEFAULT=
OPENMP_DESC= libraw uses OpenMP (implies GCC 4.6+)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENMP}
USE_GCC= yes
LDFLAGS+= -lc++
.endif
SHEBANG_FILES= ${WRKSRC}/${CONFIGURE_SCRIPT} ${WRKSRC}/chkver
GLIB_SCHEMAS= org.yorba.shotwell.gschema.xml org.yorba.shotwell-extras.gschema.xml
post-configure:
@${REINPLACE_CMD} -E \
-e 's|share/shotwell|${DATADIR_REL}|g' \
${WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -E \
-e 's|\-n ||g' \
${WRKSRC}/configure.mk
@${REINPLACE_CMD} -E \
-e 's|--fatal-warnings||g' \
${WRKSRC}/plugins/Makefile.plugin.mk
# attempt at a DATADIR safe port
@${REINPLACE_CMD} -E \
-e 's|\.get_child\("share")\.get_child\("shotwell")|${SHOTWELL_DATADIR}|' \
${WRKSRC}/src/AppDirs.vala
.include <bsd.port.pre.mk>
# attempt at a DATADIR safe port
.for dir in ${DATADIR:S,^${PREFIX}/,,:S,/, ,g}
SHOTWELL_DATADIR+=.get_child("${dir}")
.endfor
.include <bsd.port.post.mk>
|