# -*- 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.16.8 v
github.tarball_from releases
revision            0

conflicts           rtorrent-devel
categories          net
maintainers         nomaintainer
license             {GPL-2+ OpenSSLException}

checksums           rmd160  2cdad2e67a331bce35ef2569cfe7627682b200b4 \
                    sha256  1040d14c909ffae51361805d03aa5d11fcfbc2df65daae5c09696d9e70853853 \
                    size    854737

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-append \
                    port:pkgconfig \
                    port:libtool

depends_lib-append  port:libtorrent \
                    port:ncurses \
                    path:lib/libssl.dylib:openssl \
                    port:zlib

compiler.cxx_standard   2011

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

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