# $Id: Portfile 91847 2012-04-11 23:01:02Z mww@macports.org $

PortSystem 1.0

name                aria2
version             1.15.0
categories          net
platforms           darwin
maintainers         mww
license             GPL-2
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           md5     a381b8a0fe2d71f726187237ac6de82d \
                    sha1    b29e498a31fdcf890ba93749a221f6022784e003 \
                    rmd160  14ef1bf3d0e199e7789cab6e4759576fba06058b
use_bzip2           yes

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

if {${configure.compiler} == "clang"} { 
    configure.compiler llvm-gcc-4.2 
} 

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
