2 # Copyright (C) 2012-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=@SF/aria2
15 PKG_MD5SUM:=d10fc5ee6e708760134e4cb963ecc98e
18 PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
20 PKG_LICENSE_FILES:=COPYING
22 PKG_CONFIG_DEPENDS := \
29 include $(INCLUDE_DIR)/package.mk
31 define Package/aria2/config
32 source "$(SOURCE)/Config.in"
38 SUBMENU:=File Transfer
39 TITLE:=lightweight download utility
40 URL:=http://aria2.sourceforge.net/
41 DEPENDS:=+zlib +ARIA2_METALINK:libxml2 +libstdcpp +ARIA2_OPENSSL:libopenssl +ARIA2_GNUTLS:libgnutls
44 define Package/aria2/description
45 aria2 is a lightweight multi-protocol & multi-source command-line download
51 $(if $(CONFIG_ARIA2_NOSSL),--disable,--enable)-ssl \
52 $(if $(CONFIG_ARIA2_OPENSSL),--with,--without)-openssl \
53 $(if $(CONFIG_ARIA2_GNUTLS),--with,--without)-gnutls \
54 $(if $(CONFIG_ARIA2_BITTORRENT),--enable,--disable)-bittorrent \
55 $(if $(CONFIG_ARIA2_METALINK),--enable,--disable)-metalink \
56 $(if $(CONFIG_ARIA2_METALINK),--with,--without)-libxml2 \
65 define Package/aria2/install
66 $(INSTALL_DIR) $(1)/usr/bin
67 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aria2c $(1)/usr/bin
70 $(eval $(call BuildPackage,aria2))