freebsd-ports/net-im/py-pyxmpp/Makefile
Dennis Herrmann 8d222e5f4e - Update to 1.1.2
PR:		ports/160133
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2011-08-31 22:02:34 +00:00

35 lines
1 KiB
Makefile

# Ports collection makefile for: py-pyxmpp
# Date created: Mar 04, 2005
# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru>
#
# $FreeBSD$
#
PORTNAME= pyxmpp
PORTVERSION= 1.1.2
CATEGORIES= net-im python
MASTER_SITES= http://cloud.github.com/downloads/Jajcus/pyxmpp/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= A Python XMPP library
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/dns/__init__.py:${PORTSDIR}/dns/py-dnspython \
${PYTHON_PKGNAMEPREFIX}m2crypto>=0.18.2:${PORTSDIR}/security/py-m2crypto \
${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2
RUN_DEPENDS:= ${BUILD_DEPENDS}
USE_PYTHON= 2.6+
USE_PYDISTUTILS= yes
post-patch:
@${GREP} -lR "/usr/bin/python" ${WRKSRC} | ${XARGS} \
${REINPLACE_CMD} -e "s|/usr/bin/python|${PYTHON_CMD}|"
@${REINPLACE_CMD} -e \
"/include_dirs =/s|\[.*|['${LOCALBASE}/include/libxml2','${LOCALBASE}/include']| ; \
/library_dirs =/s|\[.*|['${LOCALBASE}/lib']|" ${WRKSRC}/setup.py
post-install:
@${ECHO_CMD} "pyxmpp" > ${PYTHON_SITELIBDIR}/pyxmpp.pth
.include <bsd.port.mk>