freebsd-ports/graphics/shotwell/Makefile
Koop Mast 7887c684ad * Update the glib to 2.34.3 and gtk20 to 2.24.17 and gtk30 to 3.6.4 which
are the latest stable releases.
* Update vala to the newest stable release 0.18.1, also update a few ports
  in the gtk/gnome stack.
* The c++ bindings ports for glib, atk, gconf, etc, have now USE_GNOME toggles.
* Remove pkg-config run depends from glib20 and freetype2. This doesn't
  eliminate pkg-config run dependency completely, a second phase is needed
  and is planned.
* Support for .:run. and .:build. for USE_GNOME components was added.
  Currently only libxml2 and libxslt support this mechanism.
* Updates of the telepathy stack and empathy.
* Trim makefile headers, convert ports to new options, trim off library
  versions for some ports.
* Fix other ports so they build with the new glib version.

Thanks to miwi and crees for helping out with some exp-runs.
Approved by:	portmgr (miwi & bapt)
Obtained from:	gnome team repo
2013-03-08 10:51:34 +00:00

71 lines
2 KiB
Makefile

# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> et al.
# $FreeBSD$
PORTNAME= shotwell
PORTVERSION= 0.11.6
PORTREVISION= 2
CATEGORIES= graphics gnome
MASTER_SITES= http://www.yorba.org/download/shotwell/${PORTVERSION:R}/
MAINTAINER= lx@FreeBSD.org
COMMENT= Open source photo manager for GNOME
LICENSE= LGPL21
BUILD_DEPENDS= vala>=0.12.0:${PORTSDIR}/lang/vala
LIB_DEPENDS= sqlite3:${PORTSDIR}/databases/sqlite3 \
dbus-glib-1:${PORTSDIR}/devel/dbus-glib \
gee:${PORTSDIR}/devel/libgee06 \
json-glib-1.0:${PORTSDIR}/devel/json-glib \
soup-2.4:${PORTSDIR}/devel/libsoup \
gexiv2:${PORTSDIR}/graphics/gexiv2 \
exif:${PORTSDIR}/graphics/libexif \
gphoto2:${PORTSDIR}/graphics/libgphoto2 \
webkitgtk-1.0:${PORTSDIR}/www/webkit-gtk2 \
unique-1.0:${PORTSDIR}/x11-toolkits/unique \
raw:${PORTSDIR}/graphics/libraw
USE_BZIP2= yes
USE_GETTEXT= yes
USE_GNOME= gnomehier gconf2 gtk20 desktopfileutils librsvg2
USE_GMAKE= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} \
--disable-icon-update \
--with-gconf-schema-file-dir=${PREFIX}/etc/gconf/schemas
CONFIGURE_ENV+= --define=NO_CAMERA
INSTALLS_ICONS= yes
GLIB_SCHEMAS= org.yorba.shotwell.gschema.xml org.yorba.shotwell-extras.gschema.xml
post-patch:
@${REINPLACE_CMD} -E \
-e 's|/bin/bash|${SH}|g ; s|/usr/bin/env.*bash|${SH}|g' \
${WRKSRC}/${CONFIGURE_SCRIPT} \
${WRKSRC}/libraw-config
post-configure:
@${REINPLACE_CMD} -E \
-e 's|share/shotwell|${DATADIR_REL}|g ; \
s|%%GCONF_CONFIG_SOURCE%%|${GCONF_CONFIG_SOURCE}|g' \
${WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -E \
-e 's|\-n ||g' \
${WRKSRC}/configure.mk
# attempt at a DATADIR safe port
@${REINPLACE_CMD} -E \
-e 's|\.get_child\("share")\.get_child\("shotwell")|${SHOTWELL_DATADIR}|' \
${WRKSRC}/src/AppDirs.vala
post-install:
@-update-desktop-database
.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>