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

PortSystem 1.0
PortGroup           github 1.0
PortGroup           cxx11 1.0

github.setup        aria2 aria2 1.28.0 release-
github.tarball_from releases
categories          net
platforms           darwin
maintainers         mww mps
license             {GPL-2+ OpenSSLException}
description         download utility with resuming and segmented downloading
long_description    aria2 is a download utility with resuming and segmented \
                    downloading. Supported protocols are HTTP/HTTPS/FTP/BitTorrent.
                    
use_xz              yes

checksums           rmd160  2f24d49032cc4453b7695c0c99997553b28bffa9 \
                    sha256  e0a125a557b9aacf23468374f63215e9b1d6165c990bd8ecb0603cdc1d5d72f0

depends_build       port:pkgconfig
depends_lib         port:gettext port:libiconv port:gnutls port:libxml2

# use_* must be defined after depends_*, otherwise the automatic dependencies
# will be overwritten.
# Alternatively, depends_*-append could be used.
use_autoreconf      yes

configure.cxxflags-append -I${prefix}/include/libxml2
configure.ldflags-append  -lintl
configure.args      --with-gnutls --with-libgnutls-prefix=${prefix} \
                    --with-libiconv-prefix=${prefix} \
                    --with-libintl-prefix=${prefix} \
                    --with-xml-prefix=${prefix} \
                    --without-sqlite3