# -*- 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 # $Id: Portfile 136407 2015-05-16 12:48:47Z devans@macports.org $ PortSystem 1.0 PortGroup active_variants 1.1 PortGroup compiler_blacklist_versions 1.0 name libtorrent-rasterbar version 1.0.5 license BSD categories net maintainers devans openmaintainer platforms darwin homepage http://www.rasterbar.com/products/libtorrent/ master_sites sourceforge:libtorrent 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 9139356e7adb0ab1f6fb42267629bd584f1cb580 \ sha256 474a43da2147bec7e333c10f70b07221f4732dd67e071d5e90acc7edb8f657b0 depends_build port:pkgconfig depends_lib port:boost \ port:libgeoip \ port:openssl patchfiles patch-configure.diff \ patch-bindings-python-setup.py.diff post-patch { reinplace "s|__MP_BUILD_ARCH__|${build_arch}|" ${worksrcpath}/bindings/python/setup.py } compiler.blacklist *gcc* {clang < 300} configure.args --disable-silent-rules \ --enable-python-binding \ --enable-geoip \ --with-libgeoip \ --with-boost-libdir="${prefix}/lib" \ --with-boost-python="boost_python-mt" universal_variant no variant python27 conflicts python26 description {Build bindings for Python 2.7} { require_active_variants boost python27 depends_lib-append port:python27 configure.python ${prefix}/bin/python2.7 configure.env-append \ "PYTHON_INSTALL_PARAMS=--prefix=${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7" \ PYTHON_EXTRA_LDFLAGS=' ' } variant error_logging description {Enable logging of errors to disk} { configure.args-append --enable-logging=errors } default_variants +python27 livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"