source: trunk/dports/net/libtorrent-rasterbar/Portfile

Last change on this file was 151933, checked in by devans@…, 13 months ago

libtorrent-rasterbar: update to version 1.1.1, dependencies, drop outdated patch now incorporated upstream.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- 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
2# $Id: Portfile 151933 2016-08-24 06:34:16Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           active_variants 1.1
6PortGroup           compiler_blacklist_versions 1.0
7PortGroup           conflicts_build 1.0
8PortGroup           github 1.0
9
10github.setup        arvidn libtorrent 1_1_1 libtorrent-
11name                libtorrent-rasterbar
12version             [string map {_ .} ${version}]
13license             BSD
14categories          net
15maintainers         devans openmaintainer
16platforms           darwin
17homepage            http://www.rasterbar.com/products/libtorrent/
18
19description         A C++ bittorrent library (not the same as port libtorrent)
20
21long_description    A C++ bittorrent library designed to run on anything from embedded systems to large scale \
22                    seed servers. It comes with python bindings and detailed documentation.
23
24checksums           rmd160  18ad6a0bf99556d5e7b60659e53dbd33b895dc3d \
25                    sha256  f2c6dee65b97645ba88aa3bb84af0b8e0f4b7190ccfe2b6cce107bf05bc1a125
26
27depends_build       port:pkgconfig \
28                    port:autoconf \
29                    port:automake \
30                    port:libtool
31
32depends_lib         port:boost \
33                    path:lib/libssl.dylib:openssl
34
35patchfiles          patch-configure.ac.diff \
36                    patch-bindings-python-setup.py.diff
37
38post-patch {
39    reinplace "s|__MP_BUILD_ARCH__|${build_arch}|" ${worksrcpath}/bindings/python/setup.py
40}
41
42compiler.blacklist  *gcc* {clang < 300}
43
44configure.args      --disable-silent-rules \
45                    --enable-python-binding \
46                    --with-boost-libdir="${prefix}/lib" \
47                    --with-boost-python="boost_python-mt"
48
49configure.cmd       ./autotool.sh && ./configure
50
51universal_variant   no
52
53conflicts_build     ${name}
54
55variant python27 description {Build bindings for Python 2.7} {
56        require_active_variants boost python27
57        depends_lib-append port:python27
58        configure.python ${prefix}/bin/python2.7
59        configure.env-append \
60                "PYTHON_INSTALL_PARAMS=--prefix=${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7" \
61                PYTHON_EXTRA_LIBS=' '
62}
63
64variant error_logging description {Enable logging of errors to disk} {
65        configure.args-append --enable-logging=errors
66}
67
68default_variants    +python27
Note: See TracBrowser for help on using the repository browser.