diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2018-10-06 23:18:17 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2018-10-06 23:18:17 +0000 |
commit | ef33df61d69c1127ac5f35f3ed12d89ff42803be (patch) | |
tree | 533bbf9f614fa9275f007edbca05d79ab6788576 /net-p2p/py-libtorrent-rasterbar/Makefile | |
parent | 39709077f1c575996ef8fd62df9ea343e85e83b2 (diff) | |
download | ports-ef33df61d69c1127ac5f35f3ed12d89ff42803be.tar.gz ports-ef33df61d69c1127ac5f35f3ed12d89ff42803be.zip |
net-p2p/py-libtorrent-rasterbar: Add workarounds for several bugs in the python binding
Several missing symbol problems are worked around by adding a define to CFLAGS, and adding libraries to LDFLAGS.
Also fix a typo in pkg-descr.
Reported by: TJ <tj@mrsk.me>
Notes
Notes:
svn path=/head/; revision=481404
Diffstat (limited to 'net-p2p/py-libtorrent-rasterbar/Makefile')
-rw-r--r-- | net-p2p/py-libtorrent-rasterbar/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net-p2p/py-libtorrent-rasterbar/Makefile b/net-p2p/py-libtorrent-rasterbar/Makefile index d11fe962d4c7..6f35b2faf3f9 100644 --- a/net-p2p/py-libtorrent-rasterbar/Makefile +++ b/net-p2p/py-libtorrent-rasterbar/Makefile @@ -3,6 +3,7 @@ PORTNAME= libtorrent-rasterbar DISTVERSION= 1.1.10 +PORTREVISION= 1 CATEGORIES= net-p2p ipv6 python MASTER_SITES= https://github.com/arvidn/libtorrent/releases/download/libtorrent-${PORTVERSION:S/./_/g}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -16,9 +17,12 @@ LICENSE_FILE= ${WRKSRC}/../../COPYING LIB_DEPENDS= libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \ ${PY_BOOST} -USES= localbase python +USES= iconv localbase python USE_PYTHON= distutils autoplist +CFLAGS+= -DTORRENT_DISABLE_LOGGING # undefined symbol: https://github.com/arvidn/libtorrent/issues/3331 +LDFLAGS+= ${LOCALBASE}/lib/libboost_python${PYTHON_SUFFIX}.so ${LOCALBASE}/lib/libiconv.so # fails to link libs: https://github.com/arvidn/libtorrent/issues/3330 + WRKSRC_SUBDIR= bindings/python # ensure python paths are correctly identified |