# -*- 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

PortSystem          1.0
PortGroup           active_variants 1.1
PortGroup           github 1.0

github.setup        rakshasa rtorrent 0.9.8 v
revision            1
github.tarball_from releases

conflicts           rtorrent-devel
set real_name       rtorrent

checksums           rmd160  fde07c9b9db00a90cb851b058402a87d447f92f7 \
                    sha256  9edf0304bf142215d3bc85a0771446b6a72d0ad8218efbe184b41e4c9c7542af \
                    size    647523

categories          net
platforms           darwin
maintainers         nomaintainer
license             {GPL-2+ OpenSSLException}

description         console-based BitTorrent client

long_description    rTorrent is a console-based BitTorrent client. It aims to \
                    be a fully-featured and efficient client with the ability to \
                    run in the background using screen. It supports fast-resume \
                    and session management.

depends_build       port:pkgconfig

depends_lib         port:curl \
                    port:libsigcxx2 \
                    port:libtorrent \
                    port:ncurses \
                    path:lib/libssl.dylib:openssl \
                    port:zlib

# https://github.com/rakshasa/rtorrent/wiki/Installing#non-blocking-hostname-lookup-in-curl
require_active_variants curl ares

compiler.cxx_standard   2011

configure.args      --mandir=${prefix}/share/man \
                    --disable-debug \
                    --enable-ipv6

variant xmlrpc description {Enable XMLRPC interface} {
    configure.args-append   --with-xmlrpc-c
    depends_lib-append      port:xmlrpc-c
}
