# $Id: Portfile 67338 2010-05-06 09:48:47Z mww@macports.org $

PortSystem 1.0

name			aria2
version			1.9.2
categories		net
platforms		darwin
maintainers		mww
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     70ba78851ea62d2f694fb65160d884ad \
                    sha1    22f234d020383242e630407fad6f1234a214d147 \
                    rmd160  21318ac327ef6fefd9c008a278f06ef100696b1d
use_bzip2		yes

depends_lib		port:gettext port:libiconv port:gnutls port:libxml2

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

post-destroot { file delete -force "${destroot}${prefix}/lib/charset.alias" }

livecheck.type	freshmeat
