1 # $NetBSD: Makefile,v 1.40 2010/02/10 19:17:43 joerg Exp $
3 PKG_DESTDIR_SUPPORT= user-destdir
5 .include "Makefile.common"
7 PKGNAME= ${DISTNAME:S/BitT/bitt/}
12 CONFLICTS+= bittornado-[0-9]*
13 CONFLICTS+= BitTornado-[0-9]*
15 .include "../../mk/bsd.prefs.mk"
17 .include "../../lang/python/application.mk"
18 .include "../../lang/python/extension.mk"
20 .if ${PYVERSSUFFIX} != "2.4"
22 SUBST_MESSAGE.sha= Fixing references to deprecated sha module.
23 SUBST_STAGE.sha= pre-configure
24 SUBST_FILES.sha= BitTorrent/ConvertedMetainfo.py
25 SUBST_FILES.sha+= BitTorrent/NewVersion.py
26 SUBST_FILES.sha+= BitTorrent/PeerID.py
27 SUBST_FILES.sha+= BitTorrent/StorageWrapper.py
28 SUBST_FILES.sha+= BitTorrent/download.py
29 SUBST_FILES.sha+= BitTorrent/makemetafile.py
30 SUBST_FILES.sha+= BitTorrent/parsedir.py
31 SUBST_FILES.sha+= khashmir/khash.py
32 SUBST_FILES.sha+= khashmir/khashmir.py
33 SUBST_FILES.sha+= khashmir/utkhashmir.py
34 SUBST_FILES.sha+= torrentinfo-console.py
35 SUBST_SED.sha= -e "s/^from sha import .*/from hashlib import sha1 as sha/"
38 .include "../../devel/py-cursespanel/buildlink3.mk"
39 .include "../../mk/bsd.pkg.mk"