# Created by: Doug Barton <dougb@FreeBSD.org>
# $FreeBSD: tags/RELEASE_11_0_0/net-p2p/libtorrent-rasterbar-python/Makefile 412348 2016-04-01 14:16:16Z mat $

CATEGORIES=	net-p2p python
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

COMMENT=	Python bindings for libtorrent-rasterbar

LIB_DEPENDS=	libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \
		libboost_python.so:devel/boost-python-libs

MASTERDIR=	${.CURDIR}/../libtorrent-rasterbar

BUILD_WRKSRC=	${WRKSRC}/bindings/python
INSTALL_WRKSRC=	${BUILD_WRKSRC}

SLAVE_PORT=	yes
USES=		python
USE_PYTHON=	distutils
PYDISTUTILS_PKGNAME=	python_libtorrent

PLIST=		${NONEXISTENT}
PLIST_FILES=	%%PYTHON_SITELIBDIR%%/libtorrent.so

OPTIONS_EXCLUDE=	DOCS EXAMPLES STRIP

# insure python paths are correctly identified
CONFIGURE_ENV=	PYTHON_INCLUDEDIR="${PYTHON_INCLUDEDIR}" \
		PYTHON_VERSION="${PYTHON_VERSION}"

.include "${MASTERDIR}/Makefile"
