# -*- 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
PortGroup           legacysupport 1.1

# strnlen
legacysupport.newest_darwin_requires_legacy 10

github.setup        rakshasa rtorrent 0.16.12 v
github.tarball_from releases
revision            0

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

checksums           rmd160  a1dde64f8377c8365664cc4a779017cfea12c061 \
                    sha256  46e8b5e9b6daadaf5d3002a3bc5cbde25d6bdc0eb2f17177641cf47ce2d3ef86 \
                    size    859606

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

# error: *** A compiler with support for C++17 language features is required.
compiler.cxx_standard   2017

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
}
