Lines 1-39
Link Here
|
|
|
1 |
# Created by: Doug Barton <dougb@FreeBSD.org> |
1 |
# $FreeBSD: head/net-p2p/libtorrent-rasterbar-16-python/Makefile 311774 2013-02-06 15:33:54Z bapt $ |
2 |
# $FreeBSD: head/net-p2p/libtorrent-rasterbar-16-python/Makefile 311774 2013-02-06 15:33:54Z bapt $ |
2 |
|
3 |
|
3 |
PORTREVISION= 2 |
4 |
PORTREVISION= 3 |
4 |
|
5 |
CATEGORIES= net-p2p python |
5 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
6 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
6 |
|
7 |
|
7 |
COMMENT= Python bindings for libtorrent-rasterbar-16 |
8 |
COMMENT= Python bindings for libtorrent-rasterbar-16 |
8 |
CATEGORIES= net-p2p python |
|
|
9 |
|
9 |
|
10 |
USE_PYTHON= yes |
10 |
LIB_DEPENDS+= torrent-rasterbar:${PORTSDIR}/net-p2p/libtorrent-rasterbar-16 \ |
|
|
11 |
boost_python:${PORTSDIR}/devel/boost-python-libs |
11 |
|
12 |
|
12 |
LIB_DEPENDS+= boost_python:${PORTSDIR}/devel/boost-python-libs \ |
13 |
MASTERDIR= ${.CURDIR}/../libtorrent-rasterbar-16 |
13 |
torrent-rasterbar.7:${PORTSDIR}/net-p2p/libtorrent-rasterbar-16 |
|
|
14 |
|
14 |
|
15 |
BUILD_WRKSRC= ${WRKSRC}/bindings/python |
15 |
BUILD_WRKSRC= ${WRKSRC}/bindings/python |
16 |
INSTALL_WRKSRC= ${BUILD_WRKSRC} |
16 |
INSTALL_WRKSRC= ${BUILD_WRKSRC} |
17 |
PLIST= ${.CURDIR}/pkg-plist |
|
|
18 |
INSTALLS_EGGINFO= yes |
19 |
PYDISTUTILS_PKGNAME= python_libtorrent |
20 |
|
17 |
|
21 |
NOPORTDOCS= yes |
18 |
USE_PYTHON= yes |
|
|
19 |
USE_PYDISTUTILS= yes |
20 |
PYDISTUTILS_PKGNAME= python_libtorrent |
22 |
|
21 |
|
23 |
slave-post-patch: |
22 |
PLIST= ${.CURDIR}/pkg-plist |
24 |
@${REINPLACE_CMD} -E -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ |
23 |
PLIST_FILES+= %%PYTHON_SITELIBDIR%%/libtorrent.so |
25 |
${WRKSRC}/bindings/python/setup.py.in |
|
|
26 |
|
27 |
slave-post-install: |
28 |
# fix installation permissions |
29 |
@${CHMOD} ${SHAREMODE} ${PYTHONPREFIX_SITELIBDIR}/libtorrent.so |
30 |
|
24 |
|
31 |
MASTERDIR= ${.CURDIR}/../libtorrent-rasterbar-16 |
25 |
NOPORTDOCS= yes |
32 |
.include "${MASTERDIR}/Makefile" |
26 |
NOPORTEXAMPLES= yes |
33 |
|
27 |
|
34 |
## |
|
|
35 |
# information available after <bsd.port.pre.mk> |
36 |
## |
37 |
# insure python paths are correctly identified |
28 |
# insure python paths are correctly identified |
38 |
CONFIGURE_ENV+= PYTHON_INCLUDEDIR="${PYTHON_INCLUDEDIR}" \ |
29 |
CONFIGURE_ENV+= PYTHON_INCLUDEDIR="${PYTHON_INCLUDEDIR}" \ |
39 |
PYTHON_VERSION="${PYTHON_VERSION}" |
30 |
PYTHON_VERSION="${PYTHON_VERSION}" |
|
|
31 |
|
32 |
.include "${MASTERDIR}/Makefile" |