2007-03-03 22:05:21 +01:00
|
|
|
# New ports collection makefile for: deluge
|
|
|
|
# Date created: 03 December 2006
|
|
|
|
# Whom: Mezz <mezz@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= deluge
|
2007-03-18 20:54:31 +01:00
|
|
|
PORTVERSION= 0.5.0
|
2007-03-03 22:05:21 +01:00
|
|
|
CATEGORIES= net-p2p python
|
|
|
|
MASTER_SITES= http://deluge-torrent.org/downloads/
|
|
|
|
|
|
|
|
MAINTAINER= mezz@FreeBSD.org
|
|
|
|
COMMENT= A Bittorrent client, using Python, GTK+2 and Rasterbar libtorrent
|
|
|
|
|
|
|
|
LIB_DEPENDS= boost_thread.3:${PORTSDIR}/devel/boost
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg \
|
|
|
|
${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus
|
|
|
|
|
2007-03-07 20:28:28 +01:00
|
|
|
USE_GNOME= pygtk2 desktopfileutils
|
2007-03-03 22:05:21 +01:00
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS=yes
|
|
|
|
|
|
|
|
DOCS= LICENSE README
|
|
|
|
|
2007-03-18 20:54:31 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "sparc64" || ${ARCH} == "ia64"
|
|
|
|
CFLAGS+= -DAMD64
|
|
|
|
.endif
|
|
|
|
|
2007-03-03 22:05:21 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g ; \
|
|
|
|
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' ${WRKSRC}/setup.py
|
|
|
|
|
|
|
|
post-install:
|
2007-03-07 20:28:28 +01:00
|
|
|
@-update-desktop-database
|
|
|
|
.ifndef (NOPORTDOCS)
|
2007-03-03 22:05:21 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ${DOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2007-03-18 20:54:31 +01:00
|
|
|
.include <bsd.port.post.mk>
|