aboutsummaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2006-04-22 19:02:00 +0000
committerRenato Botelho <garga@FreeBSD.org>2006-04-22 19:02:00 +0000
commit66c629394c190757603b6fc6cd745f31dd1deec7 (patch)
treed88589e4f2c15eb1f18c7b1f0307ae8394d6cbc0 /net-im
parent76a92b735416f84fc9d24a02e7ae28a1cc351714 (diff)
downloadports-66c629394c190757603b6fc6cd745f31dd1deec7.tar.gz
ports-66c629394c190757603b6fc6cd745f31dd1deec7.zip
Make py-imaging dependency optional adding a X11 OPTION, so, if it's not
selected, avatars will not work.
Notes
Notes: svn path=/head/; revision=160147
Diffstat (limited to 'net-im')
-rw-r--r--net-im/jabber-pyicq/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/net-im/jabber-pyicq/Makefile b/net-im/jabber-pyicq/Makefile
index ef304906fda6..13fcf2b38fef 100644
--- a/net-im/jabber-pyicq/Makefile
+++ b/net-im/jabber-pyicq/Makefile
@@ -17,10 +17,10 @@ MAINTAINER= garga@FreeBSD.org
COMMENT= Python ICQ-Transport for Jabber
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/OpenSSL/__init__.py:${PORTSDIR}/security/py-openssl \
- ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twisted \
- ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging
+ ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twisted
-OPTIONS= EJABBERD "Use transport with ejabberd" off
+OPTIONS= EJABBERD "Use transport with ejabberd" off \
+ X11 "Use X11 (required to avatars working)" on
NO_BUILD= yes
USE_PYTHON= yes
@@ -41,6 +41,10 @@ JABBER_USER?= ejabberd
JABBER_USER?= jabber
.endif
+.if !defined(WITHOUT_X11)
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging
+.endif
+
SUB_LIST+= JABBER_USER=${JABBER_USER}
post-extract: