aboutsummaryrefslogtreecommitdiffstats
path: root/net-im
diff options
context:
space:
mode:
authorlx <lx@FreeBSD.org>2008-02-18 09:23:24 +0800
committerlx <lx@FreeBSD.org>2008-02-18 09:23:24 +0800
commit0acc8f41a3ed37099420c2970a345534c342092e (patch)
tree260e9ba56040701edf7e5953d000ea5f815f0df5 /net-im
parentcb81812094b264a649ba47f72ba60bb62a028140 (diff)
downloadfreebsd-ports-gnome-0acc8f41a3ed37099420c2970a345534c342092e.tar.gz
freebsd-ports-gnome-0acc8f41a3ed37099420c2970a345534c342092e.tar.zst
freebsd-ports-gnome-0acc8f41a3ed37099420c2970a345534c342092e.zip
Allow build without DBUS.
PR: ports/120509 Submitted by: Amaury Gauthier <amauryamaury@gmail.com> Approved by: Denis Shaposhnikov <dsh@wizard.volgograd.ru> (maintainer)
Diffstat (limited to 'net-im')
-rw-r--r--net-im/gajim/Makefile17
-rw-r--r--net-im/gajim/files/patch-data-Makefile.in11
-rw-r--r--net-im/gajim/pkg-plist2
3 files changed, 25 insertions, 5 deletions
diff --git a/net-im/gajim/Makefile b/net-im/gajim/Makefile
index 37619f1fa280..009aacd0f515 100644
--- a/net-im/gajim/Makefile
+++ b/net-im/gajim/Makefile
@@ -14,10 +14,8 @@ MASTER_SITES= http://www.gajim.org/downloads/ \
MAINTAINER= dsh@vlink.ru
COMMENT= Gajim is a Jabber client based on a plugin system
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>=0.82.2:${PORTSDIR}/devel/py-dbus
LIB_DEPENDS= gtkspell.0:${PORTSDIR}/textproc/gtkspell
-RUN_DEPENDS= ${PYTHON_SITELIBDIR}/OpenSSL/SSL.so:${PORTSDIR}/security/py-openssl \
- ${PYTHON_PKGNAMEPREFIX}dbus>=0.82.2:${PORTSDIR}/devel/py-dbus
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/OpenSSL/SSL.so:${PORTSDIR}/security/py-openssl
GNU_CONFIGURE= yes
USE_BZIP2= yes
@@ -37,7 +35,18 @@ CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
-MAN1= gajim.1 gajim-remote.1
+MAN1= gajim.1
+
+.if !defined(WITHOUT_DBUS)
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>=0.82.2:${PORTSDIR}/devel/py-dbus
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dbus>=0.82.2:${PORTSDIR}/devel/py-dbus
+CONFIGURE_ARGS+= --enable-remote
+MAN1+= gajim-remote.1
+PLIST_SUB+= DBUS=""
+.else
+CONFIGURE_ARGS+= --disable-remote
+PLIST_SUB+= DBUS="@comment "
+.endif
EMOTICONS= animated static static-big
ICONSETS= crystal dcraven gnome goojim gossip gota jabberbulb nuvola \
diff --git a/net-im/gajim/files/patch-data-Makefile.in b/net-im/gajim/files/patch-data-Makefile.in
index 1c82b7033fb5..6efd1599c692 100644
--- a/net-im/gajim/files/patch-data-Makefile.in
+++ b/net-im/gajim/files/patch-data-Makefile.in
@@ -9,3 +9,14 @@
desktopdir = $(datadir)/applications
desktop_in_files = gajim.desktop.in.in
desktop_DATA = $(desktop_in_files:.desktop.in.in=.desktop)
+@@ -267,7 +267,9 @@
+ sounds_DATA = $(srcdir)/sounds/*.wav
+ otherdir = $(pkgdatadir)/data/other
+ other_DATA = other/servers.xml
+-man_MANS = gajim.1 gajim-remote.1
++@BUILD_REMOTE_CONTROL_FALSE@OPTIONAL_MAN =
++@BUILD_REMOTE_CONTROL_TRUE@OPTIONAL_MAN = gajim-remote.1
++man_MANS = gajim.1 $(OPTIONAL_MAN)
+ EXTRA_DIST = $(desktop_in_files) \
+ $(sounds_DATA) \
+ $(other_DATA) \
diff --git a/net-im/gajim/pkg-plist b/net-im/gajim/pkg-plist
index 7094d686f13b..2925e1a909f6 100644
--- a/net-im/gajim/pkg-plist
+++ b/net-im/gajim/pkg-plist
@@ -1,5 +1,5 @@
bin/gajim
-bin/gajim-remote
+%%DBUS%%bin/gajim-remote
lib/gajim/gtkspell.la
lib/gajim/gtkspell.so
lib/gajim/idle.la