2014-07-22 20:38:10 +00:00
|
|
|
#
|
2021-08-23 02:21:08 +00:00
|
|
|
# Copyright (C) 2012-2021 OpenWrt.org
|
2014-07-22 20:38:10 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=aria2
|
2023-10-07 11:50:00 +00:00
|
|
|
PKG_VERSION:=1.37.0
|
|
|
|
PKG_RELEASE:=1
|
2014-07-22 20:38:10 +00:00
|
|
|
|
2017-02-19 14:49:55 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2016-05-28 00:51:18 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/aria2/aria2/releases/download/release-$(PKG_VERSION)/
|
2023-10-07 11:50:00 +00:00
|
|
|
PKG_HASH:=60a420ad7085eb616cb6e2bdf0a7206d68ff3d37fb5a956dc44242eb2f79b66b
|
2014-07-22 20:38:10 +00:00
|
|
|
PKG_INSTALL:=1
|
2018-12-04 00:49:27 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2023-03-23 08:27:01 +00:00
|
|
|
PKG_BUILD_FLAGS:=gc-sections lto
|
2014-07-22 20:38:10 +00:00
|
|
|
|
2017-08-14 07:54:16 +00:00
|
|
|
PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>, \
|
|
|
|
Hsing-Wang Liao <kuoruan@gmail.com>
|
2014-07-22 20:38:10 +00:00
|
|
|
PKG_LICENSE:=GPLv2
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2019-09-12 12:13:21 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:tatsuhiro_tsujikawa:aria2
|
2014-07-22 20:38:10 +00:00
|
|
|
|
|
|
|
PKG_CONFIG_DEPENDS := \
|
2017-08-14 07:54:16 +00:00
|
|
|
CONFIG_ARIA2_NOSSL \
|
|
|
|
CONFIG_ARIA2_OPENSSL \
|
|
|
|
CONFIG_ARIA2_GNUTLS \
|
|
|
|
CONFIG_ARIA2_NOCRYPTO \
|
|
|
|
CONFIG_ARIA2_NETTLE \
|
|
|
|
CONFIG_ARIA2_LIBGCRYPT \
|
|
|
|
CONFIG_ARIA2_LIBXML2 \
|
|
|
|
CONFIG_ARIA2_EXPAT \
|
|
|
|
CONFIG_ARIA2_GMP \
|
|
|
|
CONFIG_ARIA2_BITTORRENT \
|
|
|
|
CONFIG_ARIA2_METALINK \
|
|
|
|
CONFIG_ARIA2_SFTP \
|
|
|
|
CONFIG_ARIA2_ASYNC_DNS \
|
|
|
|
CONFIG_ARIA2_COOKIE \
|
|
|
|
CONFIG_ARIA2_WEBSOCKET
|
2014-07-22 20:38:10 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-02-28 08:47:01 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2014-07-22 20:38:10 +00:00
|
|
|
|
|
|
|
define Package/aria2/config
|
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/aria2
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=File Transfer
|
|
|
|
TITLE:=lightweight download utility
|
2016-06-03 02:23:35 +00:00
|
|
|
URL:=https://aria2.github.io/
|
2017-08-14 07:54:16 +00:00
|
|
|
DEPENDS:=+zlib +libstdcpp +ARIA2_OPENSSL:libopenssl +ARIA2_GNUTLS:libgnutls \
|
|
|
|
+ARIA2_NETTLE:libnettle +ARIA2_LIBGCRYPT:libgcrypt +ARIA2_GMP:libgmp \
|
|
|
|
+ARIA2_LIBXML2:libxml2 +ARIA2_EXPAT:libexpat +ARIA2_SFTP:libssh2 \
|
|
|
|
+ARIA2_ASYNC_DNS:libcares +ARIA2_COOKIE:libsqlite3
|
2017-08-13 05:39:44 +00:00
|
|
|
USERID:=aria2=6800:aria2=6800
|
2014-07-22 20:38:10 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/aria2/description
|
2017-08-14 07:54:16 +00:00
|
|
|
aria2 is a lightweight multi-protocol & multi-source command-line download
|
|
|
|
utility
|
2014-07-22 20:38:10 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-nls \
|
|
|
|
$(if $(CONFIG_ARIA2_NOSSL),--disable,--enable)-ssl \
|
|
|
|
$(if $(CONFIG_ARIA2_BITTORRENT),--enable,--disable)-bittorrent \
|
|
|
|
$(if $(CONFIG_ARIA2_METALINK),--enable,--disable)-metalink \
|
2017-08-14 07:54:16 +00:00
|
|
|
$(if $(CONFIG_ARIA2_WEBSOCKET),--enable,--disable)-websocket \
|
2017-02-19 13:38:55 +00:00
|
|
|
$(if $(CONFIG_ARIA2_OPENSSL),--with,--without)-openssl \
|
|
|
|
$(if $(CONFIG_ARIA2_GNUTLS),--with,--without)-gnutls \
|
2017-08-14 07:54:16 +00:00
|
|
|
$(if $(CONFIG_ARIA2_NETTLE),--with,--without)-libnettle \
|
|
|
|
$(if $(CONFIG_ARIA2_LIBGCRYPT),--with,--without)-libgcrypt \
|
|
|
|
$(if $(CONFIG_ARIA2_GMP),--with,--without)-libgmp \
|
|
|
|
$(if $(CONFIG_ARIA2_LIBXML2),--with,--without)-libxml2 \
|
|
|
|
$(if $(CONFIG_ARIA2_EXPAT),--with,--without)-libexpat \
|
2016-06-03 02:23:35 +00:00
|
|
|
$(if $(CONFIG_ARIA2_SFTP),--with,--without)-libssh2 \
|
2017-02-19 13:38:55 +00:00
|
|
|
$(if $(CONFIG_ARIA2_ASYNC_DNS),--with,--without)-libcares \
|
|
|
|
$(if $(CONFIG_ARIA2_COOKIE),--with,--without)-sqlite3 \
|
aria2: explicitely disable libuv support
If libuv is present within the build environment, aria2 will fail to build
with the following error:
LibuvEventPoll.cc: In member function 'virtual void aria2::LibuvEventPoll::poll(const timeval&)':
LibuvEventPoll.cc:144:59: error: invalid conversion from 'void (*)(uv_timer_t*, int) {aka void (*)(uv_timer_s*, int)}' to 'uv_timer_cb {aka void (*)(uv_timer_s*)}' [-fpermissive]
uv_timer_start(timer, timer_callback, timeout, timeout);
^
In file included from LibuvEventPoll.h:43:0,
from LibuvEventPoll.cc:44:
.../staging_dir/target-arm_xscale_musl-1.1.14_eabi/usr/include/uv.h:770:44: note: initializing argument 2 of 'int uv_timer_start(uv_timer_t*, uv_timer_cb, uint64_t, uint64_t)'
UV_EXTERN int uv_timer_start(uv_timer_t* handle,
^
Makefile:2271: recipe for target 'LibuvEventPoll.lo' failed
make[6]: *** [LibuvEventPoll.lo] Error 1
Explicitely disable the libuv support in `configure` to avoid picking up this
unwanted dependency.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Patch modified to resolve conflict caused by #2804
This closes #2776
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-06-03 07:02:06 +00:00
|
|
|
--without-libuv \
|
2014-07-22 20:38:10 +00:00
|
|
|
--with-libz
|
|
|
|
|
2020-05-08 21:43:57 +00:00
|
|
|
define Package/aria2/conffiles
|
|
|
|
/etc/config/aria2
|
|
|
|
endef
|
|
|
|
|
2014-07-22 20:38:10 +00:00
|
|
|
define Package/aria2/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aria2c $(1)/usr/bin
|
2016-05-30 07:02:08 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/aria2.init $(1)/etc/init.d/aria2
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_CONF) ./files/aria2.conf $(1)/etc/config/aria2
|
2014-07-22 20:38:10 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,aria2))
|