2012-11-06 05:52:08 +01:00
|
|
|
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> et al.
|
2010-09-07 22:47:41 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= shotwell
|
2017-02-01 18:06:37 +01:00
|
|
|
PORTVERSION= 0.24.5
|
2010-09-07 22:47:41 +02:00
|
|
|
CATEGORIES= graphics gnome
|
2016-04-27 14:42:07 +02:00
|
|
|
MASTER_SITES= GNOME/sources/shotwell/${PORTVERSION:R}
|
2010-09-07 22:47:41 +02:00
|
|
|
|
2014-06-20 20:44:49 +02:00
|
|
|
MAINTAINER= cmt@burggraben.net
|
2010-09-07 22:47:41 +02:00
|
|
|
COMMENT= Open source photo manager for GNOME
|
|
|
|
|
2016-07-31 15:13:44 +02:00
|
|
|
LICENSE= LGPL21+
|
2014-10-07 19:52:38 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2012-11-06 05:52:08 +01:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
BUILD_DEPENDS= vala>=0.20.1:lang/vala \
|
2016-07-31 15:13:44 +02:00
|
|
|
bash:shells/bash \
|
|
|
|
itstool:textproc/itstool
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \
|
2016-06-26 22:31:46 +02:00
|
|
|
libexiv2.so:graphics/exiv2 \
|
2016-04-01 16:00:51 +02:00
|
|
|
libgee-0.8.so:devel/libgee \
|
2016-06-26 22:31:46 +02:00
|
|
|
libgstreamer-1.0.so:multimedia/gstreamer1 \
|
|
|
|
liblcms2.so:graphics/lcms2 \
|
2016-04-01 16:00:51 +02:00
|
|
|
libjson-glib-1.0.so:devel/json-glib \
|
|
|
|
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
|
2010-09-07 22:47:41 +02:00
|
|
|
|
2016-07-31 15:13:44 +02:00
|
|
|
USES= gettext desktop-file-utils gmake libtool pkgconfig \
|
|
|
|
sqlite tar:xz
|
2016-06-26 22:31:46 +02:00
|
|
|
USE_GNOME= cairo dconf gtk30 gnomedocutils
|
2013-06-13 13:25:14 +02:00
|
|
|
USE_GSTREAMER1= yes
|
2016-06-26 22:31:46 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_XORG= x11
|
2016-11-14 17:13:01 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2011-08-13 22:04:44 +02:00
|
|
|
CONFIGURE_ENV+= --define=NO_CAMERA
|
2016-07-31 15:13:44 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2010-09-07 22:47:41 +02:00
|
|
|
INSTALLS_ICONS= yes
|
2015-03-28 20:47:06 +01:00
|
|
|
PORTSCOUT= limitw:1,even
|
2016-06-26 22:31:46 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2010-09-07 22:47:41 +02:00
|
|
|
|
2014-01-28 20:51:21 +01:00
|
|
|
OPTIONS_DEFINE= OPENMP
|
|
|
|
OPTIONS_DEFAULT=
|
|
|
|
OPENMP_DESC= libraw uses OpenMP (implies GCC 4.6+)
|
|
|
|
|
2015-03-28 20:47:06 +01:00
|
|
|
OPENMP_USES= compiler:gcc-c++11-lib
|
|
|
|
OPENMP_USES_OFF= compiler:c++11-lib
|
2014-01-28 20:51:21 +01:00
|
|
|
|
2013-06-13 13:25:14 +02:00
|
|
|
GLIB_SCHEMAS= org.yorba.shotwell.gschema.xml org.yorba.shotwell-extras.gschema.xml
|
2010-09-07 22:47:41 +02:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -E \
|
2013-06-13 13:25:14 +02:00
|
|
|
-e 's|share/shotwell|${DATADIR_REL}|g' \
|
2010-12-28 23:39:11 +01:00
|
|
|
${WRKSRC}/${MAKEFILE}
|
2011-08-13 22:04:44 +02:00
|
|
|
|
2010-09-07 22:47:41 +02:00
|
|
|
# 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>
|