# $Id: Portfile 54867 2009-08-03 08:19:45Z mww@macports.org $

PortSystem 1.0

name			aria2
version			1.5.1
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     b1928993ffcf23076553eb43f45a3278 \
                    sha1    176401f504a94a9d9756383f020a9b108884ec4b \
                    rmd160  e522c639a67807ca59b1f4f8d8e7858150deae90
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.check	freshmeat
