# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup active_variants 1.1
PortGroup compiler_blacklist_versions 1.0
PortGroup conflicts_build 1.0
github.setup arvidn libtorrent 1_1_12 libtorrent_
name libtorrent-rasterbar
version [string map {_ .} ${version}]
maintainers {devans @dbevans} openmaintainer
homepage https://libtorrent.org/
description A C++ bittorrent library (not the same as port libtorrent)
long_description A C++ bittorrent library designed to run on anything from embedded systems to large scale \
seed servers. It comes with python bindings and detailed documentation.
checksums rmd160 0d72014dbb640887e99aaa338ff812678e3dfb8b \
sha256 231ff7562e32a760103edb6794501899177905288f6729d0d2cdb4f7be37199a \
depends_build port:pkgconfig \
path:lib/libssl.dylib:openssl
patchfiles patch-configure.ac.diff \
patch-bindings-python-setup.py.diff
reinplace "s|__MP_BUILD_ARCH__|${build_arch}|" ${worksrcpath}/bindings/python/setup.py
compiler.blacklist *gcc-3.* *gcc-4.* {clang < 300}
configure.args --disable-silent-rules \
--enable-python-binding \
--with-boost-libdir="${prefix}/lib" \
--with-boost-python="boost_python-mt"
configure.cmd ./autotool.sh && ./configure
variant python27 description {Build bindings for Python 2.7} {
require_active_variants boost python27
depends_lib-append port:python27
configure.python ${prefix}/bin/python2.7
PYTHON_INSTALL_PARAMS=--prefix=${destroot}${frameworks_dir}/Python.framework/Versions/2.7 \