39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.40 2010/02/10 19:17:43 joerg Exp $
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
.include "Makefile.common"
|
|
|
|
PKGNAME= ${DISTNAME:S/BitT/bitt/}
|
|
PKGREVISION= 4
|
|
|
|
PYDISTUTILSPKG= yes
|
|
|
|
CONFLICTS+= bittornado-[0-9]*
|
|
CONFLICTS+= BitTornado-[0-9]*
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/extension.mk"
|
|
|
|
.if ${PYVERSSUFFIX} != "2.4"
|
|
SUBST_CLASSES+= sha
|
|
SUBST_MESSAGE.sha= Fixing references to deprecated sha module.
|
|
SUBST_STAGE.sha= pre-configure
|
|
SUBST_FILES.sha= BitTorrent/ConvertedMetainfo.py
|
|
SUBST_FILES.sha+= BitTorrent/NewVersion.py
|
|
SUBST_FILES.sha+= BitTorrent/PeerID.py
|
|
SUBST_FILES.sha+= BitTorrent/StorageWrapper.py
|
|
SUBST_FILES.sha+= BitTorrent/download.py
|
|
SUBST_FILES.sha+= BitTorrent/makemetafile.py
|
|
SUBST_FILES.sha+= BitTorrent/parsedir.py
|
|
SUBST_FILES.sha+= khashmir/khash.py
|
|
SUBST_FILES.sha+= khashmir/khashmir.py
|
|
SUBST_FILES.sha+= khashmir/utkhashmir.py
|
|
SUBST_FILES.sha+= torrentinfo-console.py
|
|
SUBST_SED.sha= -e "s/^from sha import .*/from hashlib import sha1 as sha/"
|
|
.endif
|
|
|
|
.include "../../devel/py-cursespanel/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|