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
|
2013-06-13 13:25:14 +02:00
|
|
|
PORTVERSION= 0.14.1
|
2010-09-07 22:47:41 +02:00
|
|
|
CATEGORIES= graphics gnome
|
|
|
|
MASTER_SITES= http://www.yorba.org/download/shotwell/${PORTVERSION:R}/
|
|
|
|
|
2012-02-09 19:47:02 +01:00
|
|
|
MAINTAINER= lx@FreeBSD.org
|
2010-09-07 22:47:41 +02:00
|
|
|
COMMENT= Open source photo manager for GNOME
|
|
|
|
|
2012-11-06 05:52:08 +01:00
|
|
|
LICENSE= LGPL21
|
|
|
|
|
2013-06-13 13:25:14 +02:00
|
|
|
BUILD_DEPENDS= vala>=0.18.0:${PORTSDIR}/lang/vala \
|
|
|
|
bash:${PORTSDIR}/shells/bash
|
2013-05-21 04:12:51 +02:00
|
|
|
LIB_DEPENDS= dbus-glib-1:${PORTSDIR}/devel/dbus-glib \
|
2013-03-08 11:51:34 +01:00
|
|
|
gee:${PORTSDIR}/devel/libgee06 \
|
2012-11-06 05:52:08 +01:00
|
|
|
json-glib-1.0:${PORTSDIR}/devel/json-glib \
|
|
|
|
soup-2.4:${PORTSDIR}/devel/libsoup \
|
2012-02-09 19:25:41 +01:00
|
|
|
gexiv2:${PORTSDIR}/graphics/gexiv2 \
|
2012-11-06 05:52:08 +01:00
|
|
|
exif:${PORTSDIR}/graphics/libexif \
|
|
|
|
gphoto2:${PORTSDIR}/graphics/libgphoto2 \
|
2013-06-13 13:25:14 +02:00
|
|
|
webkitgtk-3.0:${PORTSDIR}/www/webkit-gtk3 \
|
2012-11-06 05:52:08 +01:00
|
|
|
unique-1.0:${PORTSDIR}/x11-toolkits/unique \
|
2013-06-13 13:25:14 +02:00
|
|
|
raw:${PORTSDIR}/graphics/libraw \
|
|
|
|
rest:${PORTSDIR}/devel/librest
|
2010-09-07 22:47:41 +02:00
|
|
|
|
2013-06-13 13:25:14 +02:00
|
|
|
USE_XZ= yes
|
2013-09-12 10:41:52 +02:00
|
|
|
USES= shebangfix gettext desktop-file-utils gmake pkgconfig
|
2013-06-13 13:25:14 +02:00
|
|
|
USE_GNOME= gnomehier gconf2 gtk20 librsvg2
|
2013-05-21 04:12:51 +02:00
|
|
|
USE_SQLITE= 3
|
2013-06-13 13:25:14 +02:00
|
|
|
USE_GSTREAMER1= yes
|
2010-09-07 22:47:41 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2013-06-13 13:25:14 +02:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --disable-icon-update
|
2011-08-13 22:04:44 +02:00
|
|
|
CONFIGURE_ENV+= --define=NO_CAMERA
|
2010-09-07 22:47:41 +02:00
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
|
2013-06-13 13:25:14 +02:00
|
|
|
SHEBANG_FILES= ${WRKSRC}/${CONFIGURE_SCRIPT} ${WRKSRC}/chkver
|
2010-09-07 22:47:41 +02: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
|
|
|
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|\-n ||g' \
|
|
|
|
${WRKSRC}/configure.mk
|
2013-05-21 04:12:51 +02:00
|
|
|
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|--fatal-warnings||g' \
|
|
|
|
${WRKSRC}/plugins/Makefile.plugin.mk
|
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
|
|
|
|
|
2010-12-28 23:39:11 +01:00
|
|
|
post-install:
|
|
|
|
@-update-desktop-database
|
|
|
|
|
2010-09-07 22:47:41 +02:00
|
|
|
.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>
|