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

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • 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 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
3
4PortSystem          1.0
5PortGroup           active_variants 1.1
6PortGroup           compiler_blacklist_versions 1.0
7PortGroup           github 1.0
8
9github.setup        arvidn libtorrent 1_0_6 libtorrent-
10name                libtorrent-rasterbar
11version             [string map {_ .} ${version}]
12license             BSD
13categories          net
14maintainers         devans openmaintainer
15platforms           darwin
16homepage            http://www.rasterbar.com/products/libtorrent/
17
18description         A C++ bittorrent library (not the same as port libtorrent)
19
20long_description    A C++ bittorrent library designed to run on anything from embedded systems to large scale \
21                    seed servers. It comes with python bindings and detailed documentation.
22
23checksums           rmd160  287d0854ad0e6987f60fcac9819eb783fe8ec523 \
24                    sha256  93ef392b7cfcf4a3d605ef09255e12808d64a07db1a491e9600df21503053334
25
26depends_build       port:pkgconfig \
27                    port:autoconf \
28                    port:automake \
29                    port:libtool
30
31depends_lib         port:boost \
32                    port:libgeoip \
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                    --enable-geoip \
47                    --with-libgeoip \
48                    --with-boost-libdir="${prefix}/lib" \
49                    --with-boost-python="boost_python-mt"
50
51configure.cmd       ./autotool.sh && ./configure
52
53universal_variant   no
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_LDFLAGS=' '
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.