# $Id: Portfile 118633 2014-04-06 11:42:57Z mww@macports.org $

PortSystem 1.0

name                aria2
version             1.18.5
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  0b624d0fa8923afbb0c9d3566ca52bbd2b2a43f7 \
                    sha256  25e21f94bb278a8624e0e4e131e740d105f7d5570290053beb8ae6c33fb9ce3f
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
