openbsd-ports/net/BitTorrent/Makefile

43 lines
969 B
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.9 2005/05/15 14:58:08 naddy Exp $
COMMENT= "cooperative file distribution system implemented in Python"
COMMENT-gui= "graphical interface components for BitTorrent"
VERSION= 4.0.1
DISTNAME= BitTorrent-${VERSION}
PKGNAME= BitTorrent-${VERSION}p3
PKGNAME-gui= BitTorrent-gui-${VERSION}p3
CATEGORIES= net
HOMEPAGE= http://www.bittorrent.com/
# Custom
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
MASTER_SITES= ${HOMEPAGE}dl/
2004-08-04 15:14:30 -04:00
MODULES= lang/python
MULTI_PACKAGES= -gui
SUBPACKAGE?=
.if defined(PACKAGING) && !empty(SUBPACKAGE)
RUN_DEPENDS= :${PKGNAME}:net/BitTorrent \
::x11/py-gtk2
.endif
NO_REGRESS= Yes
post-configure:
@perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},g' ${WRKBUILD}/bt*.py
@for file in ${WRKBUILD}/bt*.py; do mv $$file $${file%.py}; done
post-install:
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD \
${PREFIX}/share/doc/BitTorrent
.include <bsd.port.mk>