1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/net-p2p/libtorrent-rasterbar-16-python/Makefile
Doug Barton a0d4b7ae98 Add the 0.16 branch of libtorrent-rasterbar
The most revolutionary aspect of the new branch is that it brings in
support for uTP.

This port also brings in a patch consisting of the changes from 0.16.0
release through local SVN revision 6850. These fixes include patches we
had in the 0.15 version of the port, as well as various other fixes that
were reported by me, and others post the 0.16.0 release.  These fixes
should be in the 0.16.1 release.
2012-05-17 08:44:12 +00:00

47 lines
1.3 KiB
Makefile

# New ports collection makefile for: libtorrent-rasterbar-16-python
# Date created: 5 May 2012
# Whom: Doug Barton, dougb@FreeBSD.org
#
#
# $FreeBSD$
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
COMMENT= Python bindings for libtorrent-rasterbar-16
CATEGORIES= net-p2p python
USE_PYTHON= 2.5+
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}setuptools>=0.6:${PORTSDIR}/devel/py-setuptools
LIB_DEPENDS+= boost_python.4:${PORTSDIR}/devel/boost-python-libs \
torrent-rasterbar.6:${PORTSDIR}/net-p2p/libtorrent-rasterbar-16
BUILD_WRKSRC= ${WRKSRC}/bindings/python
INSTALL_WRKSRC= ${BUILD_WRKSRC}
PLIST= ${.CURDIR}/pkg-plist
INSTALLS_EGGINFO= yes
PYDISTUTILS_EGGINFO= python_libtorrent-${PORTVERSION}-py${PYTHON_VER}.egg-info
NOPORTDOCS= yes
slave-post-patch:
@${REINPLACE_CMD} -E -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/bindings/python/setup.py.in
slave-post-install:
# fix installation permissions
@${CHMOD} ${SHAREMODE} ${PYTHONPREFIX_SITELIBDIR}/libtorrent.so
MASTERDIR= ${.CURDIR}/../libtorrent-rasterbar-16
.include "${MASTERDIR}/Makefile"
##
# information available after <bsd.port.pre.mk>
##
# insure python paths are correctly identified
CONFIGURE_ENV+= PYTHON_INCLUDEDIR="${PYTHON_INCLUDEDIR}" \
PYTHON_VERSION="${PYTHON_VERSION}"
# prefix PKGNAME with python- so that the egg info file is properly named.
PYDISTUTILS_PKGNAME= python-${PORTNAME}