freebsd-ports/net-p2p/py-bittornado/Makefile

112 lines
3.2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: shadow-BitTorrent
# Date created: 23 February 2004
# Whom: Stefan Walter <sw@gegenunendlich.de>
#
# $FreeBSD$
#
PORTNAME= BitTornado
PORTVERSION= 0.3.18
2012-06-01 07:26:28 +02:00
PORTREVISION= 7
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 ipv6
MASTER_SITES= http://download.bittornado.com/download/ \
http://download2.bittornado.com/download/ \
http://ftp.acc.umu.se/mirror/bittornado/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= janos.mohacsi@bsd.hu
COMMENT?= An extended BitTorrent peer-to-peer tool for distributing files
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/Crypto/__init__.py:${PORTSDIR}/security/py-pycrypto
CONFLICTS= py??-*[Bb]it[Tt]ornado-core-[0-9]* py??-*[Bb]it[Tt]orrent*-[0-9]* btqueue-[0-9]*
USE_PYTHON= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGVERSION= T-0.3.18._BitTornado_
WRKSRC= ${WRKDIR}/${PORTNAME}-CVS
USE_RC_SUBR= bttrack
DOC_FILES1= BUILD.windows.txt FAQ.txt IMPORTANT-multitracker-readme.txt \
INSTALL.unix.txt credits.txt multitracker-spec.txt \
README-Psyco.txt webseed-spec.txt
DOC_FILES2= LICENSE.txt README.txt
EXTRA_DOC_FILES= test/multitracker/README.txt
MAN1= bittorrent-downloader.bittornado.1 \
bittorrent-multi-downloader.bittornado.1 \
btcompletedir.bittornado.1 btcompletedirgui.bittornado.1 \
btcopyannounce.1 btdownloadcurses.bittornado.1 \
btdownloadgui.bittornado.1 btdownloadheadless.bittornado.1 \
btlaunchmany.bittornado.1 btlaunchmanycurses.bittornado.1 \
btmakemetafile.bittornado.1 btmaketorrentgui.1 \
btreannounce.bittornado.1 btrename.bittornado.1 \
btsethttpseeds.1 btshowmetainfo.bittornado.1 \
bttrack.bittornado.1
.ifdef(WITHOUT_X11)
WITHOUT_GUI= yes
.endif
# required for GUI
.ifndef(WITHOUT_GUI)
USE_WX= 2.4
WX_COMPS= python
PLIST_SUB+= GUI=''
EXTRA_PATCHES+= ${FILESDIR}/extra-gui-patch-setup.py
.else
EXTRA_PATCHES+= ${FILESDIR}/extra-nogui-patch-setup.py
PLIST_SUB+= GUI='@comment '
.endif
.ifdef(WITH_IPV6)
#disable compact announcement that is incompatible with IPv6
#tracker does not patched to honor compact announcements
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-BitTornado_BT1_Rerequester.py
.endif
.ifdef(WITH_PSYCO)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
post-patch:
@${REINPLACE_CMD} -e "s/^psyco = 0/psyco = 1/g" \
${WRKSRC}/BitTornado/PSYCO.py
.endif
pre-everything::
.ifndef(WITHOUT_GUI)
@${ECHO_MSG} '===> Define WITHOUT_GUI to disable GUI installation'
.endif
.ifndef(WITH_PSYCO)
@${ECHO_MSG} '===> Define WITH_PSYCO to enable the optimizing Python compiler'
.endif
.ifndef(WITH_IPV6)
@${ECHO_MSG} '===> Define WITH_IPV6 to enable IPv6 support properly'
@${ECHO_MSG} 'with trade-off of more memory usage'
.endif
post-install:
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for f in ${DOC_FILES1}
@${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
.endfor
.for f in ${DOC_FILES2}
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.for f in ${EXTRA_DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/`${ECHO} ${f} | ${SED} -e 's|/|_|g'`
.endfor
.endif
.ifndef(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${FILESDIR}/bittornado.sh.sample ${EXAMPLESDIR}
.endif
.ifndef(NO_INSTALL_MANPAGES)
.for f in ${MAN1}
@${INSTALL_MAN} ${WRKSRC}/docs/man/${f} ${PREFIX}/man/man1
.endfor
.endif
.include <bsd.port.mk>