46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.22 2006/11/07 14:09:56 naddy Exp $
|
|
|
|
COMMENT= "cooperative file distribution system implemented in Python"
|
|
COMMENT-gui= "graphical interface components for BitTorrent"
|
|
|
|
VERSION= 4.4.0
|
|
DISTNAME= BitTorrent-${VERSION}
|
|
PKGNAME= ${DISTNAME}p1
|
|
PKGNAME-gui= BitTorrent-gui-${VERSION}p1
|
|
CATEGORIES= net
|
|
|
|
HOMEPAGE= http://www.bittorrent.com/
|
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
|
|
|
# Custom
|
|
PERMIT_DISTFILES_CDROM= "may not sell without modification"
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
PERMIT_PACKAGE_CDROM= "may not sell without modification"
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
MASTER_SITES= http://download.bittorrent.com/dl/
|
|
|
|
MODULES= lang/python
|
|
BUILD_DEPENDS= ::devel/gettext
|
|
|
|
MULTI_PACKAGES= -gui
|
|
SUBPACKAGE?=
|
|
|
|
.if !empty(SUBPACKAGE)
|
|
RUN_DEPENDS= :${PKGNAME}:net/BitTorrent \
|
|
:py-gtk2->=2.6:x11/py-gtk2
|
|
.endif
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
post-configure:
|
|
@perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},g' ${WRKBUILD}/*.py
|
|
@perl -pi -e 's,python,${MODPY_BIN},' ${WRKSRC}/makei18n.sh
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD \
|
|
${PREFIX}/share/doc/BitTorrent
|
|
|
|
.include <bsd.port.mk>
|