summaryrefslogtreecommitdiff
path: root/graphics/shotwell/Makefile
blob: bd66b444b86570a6cbffe9c8c4d013a3d491102f (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
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> et al.
# $FreeBSD$

PORTNAME=	shotwell
PORTVERSION=	0.26.0
CATEGORIES=	graphics gnome
MASTER_SITES=	GNOME/sources/shotwell/${PORTVERSION:R}

MAINTAINER=	cmt@FreeBSD.org
COMMENT=	Open source photo manager for GNOME

LICENSE=	LGPL21+
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	vala>=0.20.1:lang/vala \
		bash:shells/bash \
		itstool:textproc/itstool
LIB_DEPENDS=	libdbus-glib-1.so:devel/dbus-glib \
		libexiv2.so:graphics/exiv2 \
		libgcr-ui-3.so:security/gcr \
		libgdata.so:devel/libgdata \
		libgee-0.8.so:devel/libgee \
		libgstreamer-1.0.so:multimedia/gstreamer1 \
		liblcms2.so:graphics/lcms2 \
		libjson-glib-1.0.so:devel/json-glib \
		libp11-kit.so:security/p11-kit \
		libsoup-2.4.so:devel/libsoup \
		libgexiv2.so:graphics/gexiv2 \
		libexif.so:graphics/libexif \
		libgphoto2.so:graphics/libgphoto2 \
		libwebkit2gtk-4.0.so:www/webkit2-gtk3 \
		libunique-1.0.so:x11-toolkits/unique \
		libraw.so:graphics/libraw \
		librest-0.7.so:devel/librest

USES=		autoreconf gettext desktop-file-utils gmake libtool pkgconfig \
		sqlite tar:xz
USE_GNOME=	cairo dconf gtk30 gnomedocutils
USE_GSTREAMER1=	yes
USE_LDCONFIG=	yes
USE_XORG=	x11
GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	--define=NO_CAMERA
CONFIGURE_ARGS+=	--enable-publishers=all --enable-extra-plugins
INSTALL_TARGET=	install-strip
INSTALLS_ICONS=	yes
PORTSCOUT=	limitw:1,even
MAKE_JOBS_UNSAFE=	yes

OPTIONS_DEFINE=	OPENMP NLS
OPTIONS_DEFAULT=	NLS
OPENMP_DESC=	libraw uses OpenMP (implies GCC 4.9+)

NLS_CONFIGURE_ENABLE=   nls
NLS_USES=		gettext
NLS_LIBS=		-L${LOCALBASE}/lib -lintl

OPENMP_USES=		compiler:openmp
OPENMP_USES_OFF=	compiler:c++11-lib

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}

# 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>