# $Id: Portfile 106575 2013-05-31 06:07:13Z mww@macports.org $

PortSystem 1.0

name                aria2
version             1.17.1
categories          net
platforms           darwin
maintainers         mww
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.

homepage            http://aria2.sourceforge.net/
master_sites        sourceforge
checksums           rmd160  bab446a216fb450c8048587ab3bad24a1c383e73 \
                    sha256  7ed40814894a7b48bc50fa8123d777e448cdf44ebafc0c0e22cb9d6df66a0c6c
use_bzip2           yes

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

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

livecheck.type      freecode
