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

github.setup        axel-download-accelerator axel 2.17.14 v
revision            0
categories          net www
platforms           darwin
maintainers         {i0ntempest @i0ntempest} openmaintainer
license             {GPL-2+ OpenSSLException}

description         A light Unix download accelerator

long_description    Axel does the same thing any other accelerator does: \
                    it opens more than one HTTP/FTP connection per download and \
                    each connection transfers its own, separate, part of the file. \
                    It may sound weird, but it works very well in practice.

github.tarball_from releases
use_xz              yes

checksums           rmd160  cf9df492e5ade17ebfe4ca95ef44f601d8915f41 \
                    sha256  938ee7c8c478bf6fcc82359bbf9576f298033e8b13908e53e3ea9c45c1443693 \
                    size    226132

depends_build-append \
                    port:pkgconfig \
                    port:gettext

depends_lib         path:lib/libssl.dylib:openssl

# Tiger needs a different workaround for this issue:
# https://github.com/axel-download-accelerator/axel/issues/136
patchfiles-append   patch-axel-tiger-no-posix-c-source.diff

post-destroot {
    copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}
}
