summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-09-15 00:32:36 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-09-15 00:32:36 +0800
commit0800bf2f81621368f7ec5871cce212cc63cd1b4e (patch)
tree63facc1383e576fc199d0ba67bb817cff6dfdf32
parenteb46b5b0e6e4e4349f956bb69999a98f162b7884 (diff)
downloadmarcuscom-ports-0800bf2f81621368f7ec5871cce212cc63cd1b4e.tar
marcuscom-ports-0800bf2f81621368f7ec5871cce212cc63cd1b4e.tar.gz
marcuscom-ports-0800bf2f81621368f7ec5871cce212cc63cd1b4e.tar.bz2
marcuscom-ports-0800bf2f81621368f7ec5871cce212cc63cd1b4e.tar.lz
marcuscom-ports-0800bf2f81621368f7ec5871cce212cc63cd1b4e.tar.xz
marcuscom-ports-0800bf2f81621368f7ec5871cce212cc63cd1b4e.tar.zst
marcuscom-ports-0800bf2f81621368f7ec5871cce212cc63cd1b4e.zip
Add optional libchamplain support.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@12877 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--net-im/empathy/Makefile17
-rw-r--r--net-im/empathy/pkg-plist2
2 files changed, 15 insertions, 4 deletions
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 <ahze@FreeBSD.org>
#
# $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 <bsd.port.pre.mk>
@@ -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