DESCR

aria2 is a utility for downloading files. It has completely new design
concept from its predecessor, Aria, and is written from scratch. aria2
has a segmented downloading engine in its core. It can download one
file from multiple URLs or multiple connections from one URL. This
results in very high speed downloading, much faster than ordinary
browsers. This engine in was implemented in a single-thread model. The
architecture is clean and easy to extend. aria2 currently supports
HTTP, FTP, and BitTorrent. It also supports Metalink version 3.0.

Please visit the project web site at http://aria2.sourceforge.net

Makefile

# $NetBSD: Makefile,v 1.20 2009/09/22 12:38:45 tnn Exp $
#

DISTNAME= aria2-1.2.0
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aria2/}
EXTRACT_SUFX= .tar.bz2

MAINTAINER= bjs@NetBSD.org
HOMEPAGE= http://aria2.sourceforge.net/
COMMENT= Multi-threaded, multi-protocol, flexible download accelerator

PKG_DESTDIR_SUPPORT= user-destdir

GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_PKGLOCALEDIR= yes

CONFIGURE_ARGS+= --enable-bittorrent
CONFIGURE_ARGS+= --enable-metalink
CONFIGURE_ARGS+= --with-included-gettext=no
CONFIGURE_ARGS+= --with-libexpat
CONFIGURE_ARGS+= --without-libxml2

GCC_REQD+= 3.4
TEST_TARGET= check
USE_FEATURES= getopt_long snprintf

.include "../../mk/compiler.mk"

.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
BUILDLINK_DEPMETHOD.cppunit?= build
BUILDLINK_API_DEPENDS.cppunit+= cppunit>=1.10.2
. include "../../devel/cppunit/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-xmltest
.endif

.include "options.mk"

.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../net/libcares/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"

PLIST

@comment $NetBSD: PLIST,v 1.10 2009/06/14 18:09:21 joerg Exp $
bin/aria2c
man/man1/aria2c.1
share/doc/aria2/README
share/doc/aria2/README.html
share/doc/aria2/aria2c.1.html
share/locale/bg/LC_MESSAGES/aria2.mo
share/locale/ca/LC_MESSAGES/aria2.mo
share/locale/da/LC_MESSAGES/aria2.mo
share/locale/de/LC_MESSAGES/aria2.mo
share/locale/el/LC_MESSAGES/aria2.mo
share/locale/en@boldquot/LC_MESSAGES/aria2.mo
share/locale/en@quot/LC_MESSAGES/aria2.mo
share/locale/es/LC_MESSAGES/aria2.mo
share/locale/fi/LC_MESSAGES/aria2.mo
share/locale/fr/LC_MESSAGES/aria2.mo
share/locale/he/LC_MESSAGES/aria2.mo
share/locale/hu/LC_MESSAGES/aria2.mo
share/locale/id/LC_MESSAGES/aria2.mo
share/locale/it/LC_MESSAGES/aria2.mo
share/locale/ja/LC_MESSAGES/aria2.mo
share/locale/nl/LC_MESSAGES/aria2.mo
share/locale/nn/LC_MESSAGES/aria2.mo
share/locale/pl/LC_MESSAGES/aria2.mo
share/locale/pt_BR/LC_MESSAGES/aria2.mo
share/locale/ru/LC_MESSAGES/aria2.mo
share/locale/sr/LC_MESSAGES/aria2.mo
share/locale/sv/LC_MESSAGES/aria2.mo
share/locale/th/LC_MESSAGES/aria2.mo
share/locale/tr/LC_MESSAGES/aria2.mo
share/locale/uk/LC_MESSAGES/aria2.mo
share/locale/vi/LC_MESSAGES/aria2.mo
share/locale/zh_CN/LC_MESSAGES/aria2.mo
share/locale/zh_TW/LC_MESSAGES/aria2.mo

distinfo

$NetBSD: distinfo,v 1.16 2009/03/08 23:41:33 bjs Exp $

SHA1 (aria2-1.2.0.tar.bz2) = a71a0c5b713728891b98cb66b6a3d6b4fa1df79f
RMD160 (aria2-1.2.0.tar.bz2) = e97d21bb6c492921fb11aa39489cf8712b37c5a3
Size (aria2-1.2.0.tar.bz2) = 1243730 bytes

options.mk

# $NetBSD: options.mk,v 1.9 2009/09/22 12:38:45 tnn Exp $

PKG_OPTIONS_VAR= PKG_OPTIONS.aria2

PKG_OPTIONS_GROUP.ssl= gnutls ssl
PKG_OPTIONS_REQUIRED_GROUPS= ssl

PKG_SUPPORTED_OPTIONS= sqlite
PKG_SUGGESTED_OPTIONS= ssl sqlite
###
### XXX Remove this in the future [2008-04-15 bjs]
###
.if !empty(PKG_OPTIONS.aria2:U:Maria2-metalink) || \
!empty(PKG_DEFAULT_OPTIONS:U:Maria2-metalink)
PKG_OPTIONS_DEPRECATED_WARNINGS+=\
"NOTE: The aria2-metalink option is deprecated; this package"\
" now supports the metalink protocol by default."
.endif

.include "../../mk/bsd.options.mk"
###
### SSL/TLS implementation
###
.if !empty(PKG_OPTIONS:Mssl)
CONFIGURE_ARGS+= --with-openssl
CONFIGURE_ARGS+= --with-gnutls=no
. include "../../security/openssl/buildlink3.mk"
.else
CONFIGURE_ARGS+= --with-gnutls
CONFIGURE_ARGS+= --with-openssl=no
. include "../../security/gnutls/buildlink3.mk"
. include "../../security/gnutls/libgnutls-config.mk"
.endif
###
### firefox3 cookie support via sqlite3
###
.if !empty(PKG_OPTIONS:Msqlite)
CONFIGURE_ARGS+= --with-sqlite3
CONFIGURE_ARGS+= --with-sqlite3-prefix=${BUILDLINK_PREFIX.sqlite:Q}
. include "../../databases/sqlite3/buildlink3.mk"
.else
CONFIGURE_ARGS+= --with-sqlite3=no
.endif