# Created by: Doug Barton # $FreeBSD$ PORTNAME= libtorrent-rasterbar DISTVERSION= 1.1.14 PORTREVISION= 1 CATEGORIES= net-p2p python MASTER_SITES= https://github.com/arvidn/libtorrent/releases/download/libtorrent-${PORTVERSION:S/./_/g}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} PKGNAMESUFFIX= 11 MAINTAINER= yuri@FreeBSD.org COMMENT= Python bindings for libtorrent-rasterbar LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/../../COPYING LIB_DEPENDS= libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar11 \ ${PY_BOOST} CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}-libtorrent-rasterbar BROKEN= Broken upstream, doesn't install anything, see https://github.com/arvidn/libtorrent/issues/4204 #' USES= compiler:c11 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 CONFIGURE_ENV= PYTHON_INCLUDEDIR="${PYTHON_INCLUDEDIR}" \ PYTHON_VERSION="${PYTHON_VERSION}" .include