freebsd-ports/net-p2p/p5-Net-BitTorrent/Makefile

48 lines
1.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: p5-Net-BitTorrent
# Date created: 2008-04-12
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#
PORTNAME= Net-BitTorrent
PORTVERSION= 0.015
CATEGORIES= net-p2p perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= Net
PKGNAMEPREFIX= p5-
MAINTAINER= gslin@gslin.org
COMMENT= BitTorrent peer-to-peer protocol class
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Digest/SHA.pm:${PORTSDIR}/security/p5-Digest-SHA \
${SITE_PERL}/${PERL_ARCH}/Scalar/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils \
${SITE_PERL}/${PERL_ARCH}/version.pm:${PORTSDIR}/devel/p5-version
BUILD_DEPENDS= ${RUN_DEPENDS}
CONFIGURE_ARGS= </dev/null
PERL_MODBUILD= yes
MAN3= Net::BitTorrent.3 \
Net::BitTorrent::FAQ.3 \
Net::BitTorrent::PeerID.3 \
Net::BitTorrent::Session.3 \
Net::BitTorrent::Session::File.3 \
Net::BitTorrent::Session::Peer.3 \
Net::BitTorrent::Session::Peer::Request.3 \
Net::BitTorrent::Session::Piece.3 \
Net::BitTorrent::Session::Piece::Block.3 \
Net::BitTorrent::Session::Tracker.3 \
Net::BitTorrent::Util.3
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/scripts/client.pl ${PREFIX}/bin
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500800
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
.endif
.include <bsd.port.post.mk>