# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
#    $MCom: ports/trunk/net-im/empathy3/Makefile 17268 2013-04-01 05:13:11Z marcus $

PORTNAME=	empathy
PORTVERSION=	3.4.2.1
CATEGORIES=	net-im gnome
MASTER_SITES=	GNOME

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	GNOME IM client based around telepathy

BUILD_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes \
		${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss \
		gsettings-desktop-schemas>=0:${PORTSDIR}/devel/gsettings-desktop-schemas \
		itstool:${PORTSDIR}/textproc/itstool \
    		${LOCALBASE}/libexec/mission-control-5:${PORTSDIR}/net-im/telepathy-mission-control
LIB_DEPENDS=	enchant:${PORTSDIR}/textproc/enchant \
		pulse:${PORTSDIR}/audio/pulseaudio \
		telepathy:${PORTSDIR}/net-im/libtelepathy \
		telepathy-glib:${PORTSDIR}/net-im/telepathy-glib \
		telepathy-farstream:${PORTSDIR}/net-im/telepathy-farstream \
		telepathy-logger:${PORTSDIR}/net-im/telepathy-logger \
		folks-telepathy:${PORTSDIR}/net-im/folks \
		notify:${PORTSDIR}/devel/libnotify \
		gcr-3:${PORTSDIR}/security/gcr \
		canberra-gtk3:${PORTSDIR}/audio/libcanberra-gtk3 \
		clutter-gst-1.0:${PORTSDIR}/multimedia/clutter-gst \
		webkitgtk-3.0:${PORTSDIR}/www/webkit-gtk3 \
		soup-2.4:${PORTSDIR}/devel/libsoup
RUN_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes \
		${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss \
		gsettings-desktop-schemas>=0:${PORTSDIR}/devel/gsettings-desktop-schemas \
    		${LOCALBASE}/libexec/mission-control-5:${PORTSDIR}/net-im/telepathy-mission-control

CONFLICTS=	empathy-2.[0-9]*

LATEST_LINK=	empathy3
USE_GMAKE=	yes
USE_XZ=		yes
USES=		gettext pathfix pkgconfig
USE_LDCONFIG=	yes
USE_GNOME=	evolutiondataserver3 gnomeprefix ltverhack
USE_GSTREAMER=	yes
USE_AUTOTOOLS=	libtool
INSTALLS_OMF=	yes
INSTALLS_ICONS=	yes
USE_PYTHON=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--disable-Werror \
		--disable-goa \
		--enable-location=no

GLIB_SCHEMAS=	org.gnome.Empathy.gschema.xml

MAN1=		empathy.1 empathy-accounts.1

OPTIONS_DEFINE=	JABBER MSN IRC SALUT HAZE MAP CHEESE
OPTIONS_DEFAULT=JABBER     IRC            MAP
JABBER_DESC=	Enable jabber (XMPP) client support
MSN_DESC=	Enable MSN client support (broken)
IRC_DESC=	Enable IRC client support
SALUT_DESC=	Enable link-local (serverless) XMPP support
HAZE_DESC=	Enable libpurple protocol integration (broken)
MAP_DESC=	Enable graphical map support
CHEESE_DESC=	Enable cheese camera support
NST_DESC=	Enable Nautilus SendTo plugin

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MJABBER}
RUN_DEPENDS+=	${LOCALBASE}/libexec/telepathy-gabble:${PORTSDIR}/net-im/telepathy-gabble
.endif

.if ${PORT_OPTIONS:MMSN}
BROKEN=		conflict in dependancies
RUN_DEPENDS+=	${LOCALBASE}/libexec/telepathy-butterfly:${PORTSDIR}/net-im/telepathy-butterfly
.endif

.if ${PORT_OPTIONS:MIRC}
RUN_DEPENDS+=	${LOCALBASE}/libexec/telepathy-idle:${PORTSDIR}/net-im/telepathy-idle
.endif

.if ${PORT_OPTIONS:MSALUT}
RUN_DEPENDS+=	${LOCALBASE}/libexec/telepathy-salut:${PORTSDIR}/net-im/telepathy-salut
.endif

.if !defined(WITHOUT_HAZE)
BROKEN=		conflict in dependancies
RUN_DEPENDS+=	${LOCALBASE}/libexec/telepathy-haze:${PORTSDIR}/net-im/telepathy-haze
.endif

#.${PORT_OPTIONS:MNST}
#BUILD_DEPENDS+=	${LOCALBASE}/libdata/pkgconfig/nautilus-sendto.pc:${PORTSDIR}/deskutils/nautilus-sendto
#RUN_DEPENDS+=	${LOCALBASE}/libdata/pkgconfig/nautilus-sendto.pc:${PORTSDIR}/deskutils/nautilus-sendto
#CONFIGURE_ARGS+=--enable-nautilus-sendto=yes
#PLIST_SUB+=	NST=""
#.else
CONFIGURE_ARGS+=--enable-nautilus-sendto=no
PLIST_SUB+=	NST="@comment "
#.endif

.if ${PORT_OPTIONS:MMAP}
LIB_DEPENDS+=	champlain-0.12.0:${PORTSDIR}/graphics/libchamplain
CONFIGURE_ARGS+=--enable-map
PLIST_SUB+=	MAP=""
.else
CONFIGURE_ARGS+=--disable-map
PLIST_SUB+=	MAP="@comment "
.endif

.if ${PORT_OPTIONS:MCHEESE}
LIB_DEPENDS+=	cheese-gtk:${PORTSDIR}/multimedia/cheese3
CONFIGURE_ARGS+=--with-cheese
.else
CONFIGURE_ARGS+=--without-cheese
.endif

.include <bsd.port.mk>
n/devel/electron6/files/serve-10.1.2</option>
<option value='gnome-3.22'>gnome-3.22</option>
<option value='gnome-3.24' selected='selected'>gnome-3.24</option>
<option value='gnome-3.26'>gnome-3.26</option>
<option value='gnome-3.28'>gnome-3.28</option>
<option value='gnome-3.32'>gnome-3.32</option>
<option value='gnome-3.36'>gnome-3.36</option>
<option value='gstreamer'>gstreamer</option>
<option value='gstreamer-1.16'>gstreamer-1.16</option>
<option value='gstreamer0.10-removal'>gstreamer0.10-removal</option>
<option value='main'>main</option>
<option value='master'>master</option>
<option value='mate-1.16'>mate-1.16</option>
<option value='mate-1.18'>mate-1.18</option>
<option value='mate-1.20'>mate-1.20</option>
<option value='mate-1.22'>mate-1.22</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/about/?h=gnome-3.24'>about</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/?h=gnome-3.24'>summary</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/refs/?h=gnome-3.24&amp;id=74698039202adb7e64a5df5292b2efa9436f72bb'>refs</a><a class='active' href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/games/jools/Makefile?h=gnome-3.24'>log</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/tree/games/jools/Makefile?h=gnome-3.24&amp;id=74698039202adb7e64a5df5292b2efa9436f72bb'>tree</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/games/jools/Makefile?h=gnome-3.24&amp;id=74698039202adb7e64a5df5292b2efa9436f72bb'>commit</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/diff/games/jools/Makefile?h=gnome-3.24&amp;id=74698039202adb7e64a5df5292b2efa9436f72bb'>diff</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/stats/games/jools/Makefile?h=gnome-3.24'>stats</a></td><td class='form'><form class='right' method='get' action='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/games/jools/Makefile'>
<input type='hidden' name='h' value='gnome-3.24'/><input type='hidden' name='id' value='74698039202adb7e64a5df5292b2efa9436f72bb'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/?h=gnome-3.24&amp;id=74698039202adb7e64a5df5292b2efa9436f72bb'>root</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/games?h=gnome-3.24&amp;id=74698039202adb7e64a5df5292b2efa9436f72bb'>games</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/games/jools?h=gnome-3.24&amp;id=74698039202adb7e64a5df5292b2efa9436f72bb'>jools</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/games/jools/Makefile?h=gnome-3.24&amp;id=74698039202adb7e64a5df5292b2efa9436f72bb'>Makefile</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/games/jools/Makefile?h=gnome-3.24&amp;id=74698039202adb7e64a5df5292b2efa9436f72bb&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Age</th><th class='left'>Files</th><th class='left'>Lines</th></tr>