Portfile

# $Id: Portfile 22568 2007-03-05 00:26:59Z mww@macports.org $

PortSystem 1.0

name aria2
version 0.10.1
revision 1
categories net
platforms darwin
maintainers mww@macports.org
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 sha1 eb10ccbab78297a0b29804f41bcf7ba10219dfb8
use_bzip2 yes

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

configure.env CXXFLAGS=-I${prefix}/include/libxml2 \
LDFLAGS=-L${prefix}/lib
configure.args --with-gnutls --with-gnutls-prefix=${prefix} \
--with-libiconv-prefix=${prefix} \
--with-libintl-prefix=${prefix} \
--with-xml-prefix=${prefix}

# patchfiles patch-SharedHandle.h
patchfiles patch-FixCompilation

platform darwin 8 {
configure.env-append CC=/usr/bin/gcc-4.0 CXX=/usr/bin/g++-4.0
}

livecheck.check freshmeat

files