2005-10-18 10:12:35 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2005/10/18 14:12:35 naddy Exp $
|
2003-08-20 23:39:57 -04:00
|
|
|
|
|
|
|
COMMENT= "cooperative file distribution system implemented in Python"
|
2005-05-15 10:58:08 -04:00
|
|
|
COMMENT-gui= "graphical interface components for BitTorrent"
|
|
|
|
|
2005-10-18 10:12:35 -04:00
|
|
|
VERSION= 4.1.6
|
2005-05-15 10:58:08 -04:00
|
|
|
DISTNAME= BitTorrent-${VERSION}
|
2005-06-01 12:02:31 -04:00
|
|
|
PKGNAME-gui= BitTorrent-gui-${VERSION}
|
2003-08-20 23:39:57 -04:00
|
|
|
CATEGORIES= net
|
|
|
|
|
2005-04-16 17:13:02 -04:00
|
|
|
HOMEPAGE= http://www.bittorrent.com/
|
2003-08-20 23:39:57 -04:00
|
|
|
|
2005-06-01 12:02:31 -04:00
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
|
|
|
|
2005-04-16 17:13:02 -04:00
|
|
|
# Custom
|
2003-08-20 23:39:57 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
|
2005-08-02 10:00:31 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bittorrent/}
|
|
|
|
MASTER_SITES0= http://grappa.unix-ag.uni-kl.de/~naddy/
|
|
|
|
DISTFILES= ${DISTNAME}.tar.gz
|
|
|
|
# pre-built file because our gettext tools are too old
|
2005-10-18 10:12:35 -04:00
|
|
|
DISTFILES+= bt416-messages.pot:0
|
2005-05-15 10:58:08 -04:00
|
|
|
|
2004-08-04 15:14:30 -04:00
|
|
|
MODULES= lang/python
|
2003-08-20 23:39:57 -04:00
|
|
|
|
2005-05-15 10:58:08 -04:00
|
|
|
MULTI_PACKAGES= -gui
|
|
|
|
SUBPACKAGE?=
|
|
|
|
|
2005-06-20 17:19:18 -04:00
|
|
|
.if !empty(SUBPACKAGE)
|
2005-05-15 10:58:08 -04:00
|
|
|
RUN_DEPENDS= :${PKGNAME}:net/BitTorrent \
|
2005-06-01 12:02:31 -04:00
|
|
|
::x11/py-gtk2 ::x11/hicolor-icon-theme
|
2005-05-15 10:58:08 -04:00
|
|
|
.endif
|
2005-04-16 17:13:02 -04:00
|
|
|
|
2005-05-15 10:58:08 -04:00
|
|
|
NO_REGRESS= Yes
|
2005-05-03 05:47:59 -04:00
|
|
|
|
2005-08-02 10:00:31 -04:00
|
|
|
EXTRACT_CASES= *.pot) cp ${FULLDISTDIR}/$$archive ${WRKDIST}/messages.pot ;;
|
|
|
|
|
2003-08-20 23:39:57 -04:00
|
|
|
post-configure:
|
2005-10-18 10:12:35 -04:00
|
|
|
@perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},g' ${WRKBUILD}/*.py
|
2003-08-20 23:39:57 -04:00
|
|
|
|
|
|
|
post-install:
|
2005-05-15 10:58:08 -04:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD \
|
2003-08-20 23:39:57 -04:00
|
|
|
${PREFIX}/share/doc/BitTorrent
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|