freebsd-ports/net-p2p/py-bittorrent-devel/Makefile

163 lines
5.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: BitTorrent
# Date created: Sun Mar 16 06:34:12 UTC 2003
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= BitTorrent
2006-02-01 03:57:00 +01:00
PORTVERSION= 4.4.0
PORTREVISION= 4
PORTEPOCH= 1
Populate newly create net-p2p category with these ports: ftp/jigdo net/amule1 net/amule2 net/apollon net/azureus net/bnbt net/btpeer net/btqueue net/cdonkey net/ctorrent net/dcd net/dclib net/dctc net/dctc-gui net/dctc-gui-qt net/edonkey-gui-gtk net/edonkey-gui-gtk-urlslave net/fcptools net/fidelio net/freenet net/frost net/giftcurs net/giftoxic net/giftui net/gift net/gift-fasttrack net/gift-gnutella net/gift-openft net/gkrellm-gift net/gnewtellium net/gnome-btdownload net/gnunet net/gtkhx net/gtk-gnutella net/gtorrentviewer net/hagelslag net/hx net/i2p net/javadc net/kmldonkey net/ktorrent net/libbt net/liberator net/libfreenet net/libpdtp net/libtorrent net/limewire net/linux-agsatellite net/linux-edonkey-core net/linux-edonkey-server net/linux-jigdo net/linux-overnet-core net/minder net/mldonkey net/mldonkey-core net/mldonkey-core-devel net/mldonkey-devel net/mldonkey-gui net/mldonkey-gui-devel net/mldonkey-perlreactor net/mldonkey-sancho net/mldonkey-serverspy net/mldonkey-urlslave net/mutella net/mute-net net/mute-net-gui net/mute-net-text net/napshare net/nicotine net/opendchub net/peercast net/phex net/pyslsk net/py-bittornado net/py-bittornado-core net/py-bittorrent net/py-bittorrent-core net/py-bittorrent-core-devel net/py-bittorrent-devel net/py-fngrab net/py-kenosis net/py-kenosis-bittorrent net/py-py2play net/p5-pdonkey net/qtella net/qtorrent net/rtorrent net/squall net/torrentflux net/torrentsniff net/trackerbt net/transmission net/valknut net/verlihub net/verlihub-plugins net/xmule net/xnap misc/ed2k misc/edonkey-tool-hash misc/linux-edonkey-tool-recovermet Repocopies by: marcus
2006-01-30 22:36:28 +01:00
CATEGORIES?= net-p2p python
MASTER_SITES= http://download.bittorrent.com/dl/
MASTER_SITE_SUBDIR= ${PORTNAME:L}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX?= -devel
MAINTAINER= lioux@FreeBSD.org
2003-10-22 23:27:49 +02:00
COMMENT?= A peer-to-peer tool for distributing files written in Python
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/dns/__init__.py:${PORTSDIR}/dns/py-dnspython \
${PYTHON_SITELIBDIR}/Crypto/__init__.py:${PORTSDIR}/security/py-pycrypto
USE_GETTEXT= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_REINPLACE= yes
USE_TWISTED_RUN= yes
CONFLICTS= py??-*[Bb]it[Tt]orrent* py??-*[Bb]it[Tt]ornado* btqueue*
2004-03-01 05:15:52 +01:00
NO_LATEST_LINK= yes
.ifndef(NOPORTDOCS)
PORTDOCS= \
LICENSE.txt \
README.txt \
TRACKERLESS.txt \
credits.txt \
2005-07-17 23:30:34 +02:00
credits-l10n.txt \
redirdonate.html
.else
EXTRA_PATCHES+= ${FILESDIR}/extra-noportdocs-setup.py
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
WITHOUT_PSYCO= yes
.endif
# required for GUI
.ifndef(WITHOUT_GUI)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pygtk.py:${PORTSDIR}/x11-toolkits/py-gtk2
2004-04-08 17:12:44 +02:00
PLIST_FILES+= \
bin/bittorrent \
bin/maketorrent \
share/pixmaps/BitTorrent/bittorrent.ico \
2006-02-01 03:57:00 +01:00
share/pixmaps/BitTorrent/icons/default/abort.png \
share/pixmaps/BitTorrent/icons/default/broken.png \
share/pixmaps/BitTorrent/icons/default/finished.png \
share/pixmaps/BitTorrent/icons/default/info.png \
share/pixmaps/BitTorrent/icons/default/pause.png \
share/pixmaps/BitTorrent/icons/default/paused.png \
share/pixmaps/BitTorrent/icons/default/play.png \
share/pixmaps/BitTorrent/icons/default/queued.png \
share/pixmaps/BitTorrent/icons/default/remove.png \
share/pixmaps/BitTorrent/icons/default/running.png \
share/pixmaps/BitTorrent/icons/default/status-broken.png \
share/pixmaps/BitTorrent/icons/default/status-natted.png \
share/pixmaps/BitTorrent/icons/default/status-pre-natted.png \
share/pixmaps/BitTorrent/icons/default/status-running.png \
share/pixmaps/BitTorrent/icons/default/status-starting.png \
share/pixmaps/BitTorrent/icons/default/status-stopped.png \
share/pixmaps/BitTorrent/icons/default/trashcan.png \
share/pixmaps/BitTorrent/icons/old/broken.png \
share/pixmaps/BitTorrent/icons/old/finished.png \
share/pixmaps/BitTorrent/icons/old/info.png \
share/pixmaps/BitTorrent/icons/old/pause.png \
share/pixmaps/BitTorrent/icons/old/paused.png \
share/pixmaps/BitTorrent/icons/old/play.png \
share/pixmaps/BitTorrent/icons/old/queued.png \
share/pixmaps/BitTorrent/icons/old/remove.png \
share/pixmaps/BitTorrent/icons/old/running.png \
share/pixmaps/BitTorrent/icons/old/status-broken.png \
share/pixmaps/BitTorrent/icons/old/status-natted.png \
share/pixmaps/BitTorrent/icons/old/status-pre-natted.png \
share/pixmaps/BitTorrent/icons/old/status-running.png \
share/pixmaps/BitTorrent/icons/old/status-starting.png \
share/pixmaps/BitTorrent/icons/old/status-stopped.png \
share/pixmaps/BitTorrent/logo/bittorrent_32.png \
2006-02-01 03:57:00 +01:00
share/pixmaps/BitTorrent/logo/bittorrent_96.png
PLIST_SUB+= \
GUI=""
.else
EXTRA_PATCHES+= ${FILESDIR}/extra-nogui-patch-setup.py
PLIST_SUB+= \
GUI="@comment "
.endif
# required for PSYCO
.ifndef(WITHOUT_PSYCO)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
EXTRA_PATCHES+= \
${FILESDIR}/extra-psyco-patch-bittorrent-console.py \
${FILESDIR}/extra-psyco-patch-bittorrent-curses.py \
${FILESDIR}/extra-psyco-patch-bittorrent-tracker.py \
${FILESDIR}/extra-psyco-patch-bittorrent.py \
${FILESDIR}/extra-psyco-patch-changetracker-console.py \
${FILESDIR}/extra-psyco-patch-launchmany-console.py \
${FILESDIR}/extra-psyco-patch-launchmany-curses.py \
${FILESDIR}/extra-psyco-patch-maketorrent-console.py \
${FILESDIR}/extra-psyco-patch-maketorrent.py \
${FILESDIR}/extra-psyco-patch-torrentinfo-console.py
.endif
pre-everything::
.ifndef(WITHOUT_GUI)
@${ECHO_MSG} '===> Define WITHOUT_GUI to disable GUI installation'
.endif
.ifndef(WITHOUT_PSYCO)
@${ECHO_MSG} '===> Define WITHOUT_PSYCO to disable devel/py-psyco optimization'
.endif
pre-patch:
# do not install public.key, we will do it ourselves
@${REINPLACE_CMD} -E \
-e "s|^.*'public.key'.*$$||" \
${WRKSRC}/setup.py
post-patch:
# public.key will be located under ${DATADIR} not ${DOCSDIR}
@${REINPLACE_CMD} -E \
-e "s|%%DATADIR%%|'${DATADIR}/'|" \
${WRKSRC}/BitTorrent/NewVersion.py
post-install:
# set proper permissions
@${CHMOD} -R ${SHAREMODE} \
${PREFIX}/${PYTHON_SITELIBDIR:S|^${PYTHONBASE}/||}/BitTorrent
@${CHMOD} ${SHAREMODE} ${PREFIX}/${PYTHON_SITELIBDIR:S|^${PYTHONBASE}/||}/BitTorrent
@${CHMOD} a+x ${PREFIX}/${PYTHON_SITELIBDIR:S|^${PYTHONBASE}/||}/BitTorrent
.ifndef(WITHOUT_GUI)
# pixmaps
@${CHMOD} -R ${SHAREMODE} \
${PREFIX}/share/pixmaps/${PORTNAME}/*
@${CHMOD} -R a+X \
${PREFIX}/share/pixmaps/${PORTNAME}
.endif
.ifndef(NOPORTDOCS)
# docs
@${CHMOD} -R ${SHAREMODE} \
${DOCSDIR}/*
.endif
# public.key
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/public.key ${DATADIR}
.include <bsd.port.post.mk>