From 0800bf2f81621368f7ec5871cce212cc63cd1b4e Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 14 Sep 2009 16:32:36 +0000 Subject: Add optional libchamplain support. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@12877 df743ca5-7f9a-e211-a948-0013205c9059 --- net-im/empathy/Makefile | 17 ++++++++++++++--- net-im/empathy/pkg-plist | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) (limited to 'net-im') diff --git a/net-im/empathy/Makefile b/net-im/empathy/Makefile index ce1355c97..eff757da9 100644 --- a/net-im/empathy/Makefile +++ b/net-im/empathy/Makefile @@ -3,10 +3,11 @@ # Whom: Michael Johnson # # $FreeBSD$ -# $MCom: ports/net-im/empathy/Makefile,v 1.37 2009/09/08 19:11:54 kwm Exp $ +# $MCom: ports/net-im/empathy/Makefile,v 1.38 2009/09/10 19:17:42 kwm Exp $ PORTNAME= empathy PORTVERSION= 2.27.92 +PORTREVISION= 1 CATEGORIES= net-im gnome MASTER_SITES= GNOME @@ -47,7 +48,8 @@ OPTIONS= JABBER "Enable jabber (XMPP) client support" on \ IRC "Enable IRC client support" on \ SALUT "Enable link-local (serverless) XMPP support" off \ HAZE "Enable libpurple protocol integration" off \ - WEBKIT "Enable Adium Message Style themes" on + WEBKIT "Enable Adium Message Style themes" on \ + MAP "Enable graphical map support" on .include @@ -72,7 +74,7 @@ RUN_DEPENDS+= ${LOCALBASE}/libexec/telepathy-haze:${PORTSDIR}/net-im/telepathy-h .endif .if defined(WITH_WEBKIT) -LIB_DEPENDS+= webkit-1.0.12:${PORTSDIR}/www/webkit-gtk2 +LIB_DEPENDS+= webkit-1.0.12:${PORTSDIR}/www/webkit-gtk2 CONFIGURE_ARGS+=--enable-webkit PLIST_SUB+= ADIUM="" .else @@ -80,6 +82,15 @@ CONFIGURE_ARGS+=--disable-webkit PLIST_SUB+= ADIUM="@comment " .endif +.if !defined(WITHOUT_MAP) +LIB_DEPENDS+= champlain-0.3.3:${PORTSDIR}/graphics/libchamplain +CONFIGURE_ARGS+=--enable-map +PLIST_SUB+= MAP="" +.else +CONFIGURE_ARGS+=--disable-map +PLIST_SUB+= MAP="@comment " +.endif + post-patch: @${REINPLACE_CMD} -e 's|$${datadir}/gtk-doc/html|${DOCSDIR}|g ; \ s|-Werror||g' ${WRKSRC}/configure diff --git a/net-im/empathy/pkg-plist b/net-im/empathy/pkg-plist index a0d5f1c71..219c4f8bb 100644 --- a/net-im/empathy/pkg-plist +++ b/net-im/empathy/pkg-plist @@ -209,7 +209,7 @@ share/doc/libempathy/up.png %%DATADIR%%/codec-preferences %%DATADIR%%/element-properties %%DATADIR%%/empathy-account-widget-local-xmpp.ui -%%DATADIR%%/empathy-map-view.ui +%%MAP%%%%DATADIR%%/empathy-map-view.ui %%DATADIR%%/empathy-account-widget-aim.ui %%DATADIR%%/empathy-account-widget-generic.ui %%DATADIR%%/empathy-account-widget-groupwise.ui -- cgit v1.2.3