From 3318786bf2ff6186908cb7d6646c3f685f46b9d7 Mon Sep 17 00:00:00 2001 From: Dennis Herrmann Date: Tue, 12 Apr 2011 19:34:33 +0000 Subject: [PATCH] - Added an optional option for dbus - Switch to the OPTIONS framework PR: ports/156345 Submitted by: David Demelier Approved by: Denis Shaposhnikov (maintainer) --- net-im/gajim/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/net-im/gajim/Makefile b/net-im/gajim/Makefile index 1f4e3a98035b..cf347a7a438c 100644 --- a/net-im/gajim/Makefile +++ b/net-im/gajim/Makefile @@ -13,10 +13,8 @@ MASTER_SITES= http://www.gajim.org/downloads/0.14/ MAINTAINER= dsh@bamus.cz 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 \ ${PYTHON_PKGNAMEPREFIX}sqlite3>=${PYTHON_PORTVERSION}:${PORTSDIR}/databases/py-sqlite3 GNU_CONFIGURE= yes @@ -30,6 +28,11 @@ USE_XORG= x11 xext xscrnsaver CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" PYTHON=${PYTHON_CMD} +OPTIONS= DBUS "Adds support for D-Bus (Desktop Bus)" On \ + NLS "Native Language Support via gettext utilities" On + +.include + .if !defined(WITHOUT_NLS) USE_GETTEXT= yes PLIST_SUB+= NLS="" @@ -38,6 +41,11 @@ CONFIGURE_ARGS+= --disable-nls PLIST_SUB+= NLS="@comment " .endif +.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 +.endif + MAN1= gajim.1 gajim-remote.1 gajim-history-manager.1 EMOTICONS= animated static static-big tango