aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/libtorrent-rasterbar-15-python/Makefile
blob: 40341e49079a9cb09e36490b652eee18a963953b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $FreeBSD$

PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
PORTREVISION=   2

COMMENT=    Python bindings for libtorrent-rasterbar-15
CATEGORIES= net-p2p python

DEPRECATED= Unusable, development ceased
EXPIRATION_DATE=2013-12-13

USE_PYTHON= yes

LIB_DEPENDS+=   libboost_python.so:${PORTSDIR}/devel/boost-python-libs \
        libtorrent-rasterbar.so.6:${PORTSDIR}/net-p2p/libtorrent-rasterbar-15

BUILD_WRKSRC=   ${WRKSRC}/bindings/python
INSTALL_WRKSRC= ${BUILD_WRKSRC}
PLIST=      ${.CURDIR}/pkg-plist

INSTALLS_EGGINFO=   yes
PYDISTUTILS_PKGNAME=    python_libtorrent

NOPORTDOCS= yes

NO_STAGE=   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-15
.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}"