From 0acc8f41a3ed37099420c2970a345534c342092e Mon Sep 17 00:00:00 2001 From: lx Date: Mon, 18 Feb 2008 01:23:24 +0000 Subject: Allow build without DBUS. PR: ports/120509 Submitted by: Amaury Gauthier Approved by: Denis Shaposhnikov (maintainer) --- net-im/gajim/Makefile | 17 +++++++++++++---- net-im/gajim/files/patch-data-Makefile.in | 11 +++++++++++ net-im/gajim/pkg-plist | 2 +- 3 files changed, 25 insertions(+), 5 deletions(-) (limited to 'net-im') 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 -- cgit