You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2012-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=aria2
  9. PKG_VERSION:=1.24.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://github.com/aria2/aria2/releases/download/release-$(PKG_VERSION)/
  13. PKG_MD5SUM:=d8d75cd0ee01c3e50e57214ff552a961
  14. PKG_INSTALL:=1
  15. PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>, Hsing-Wang Liao <kuoruan@gmail.com>
  16. PKG_LICENSE:=GPLv2
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_CONFIG_DEPENDS := \
  19. ARIA2_NOSSL \
  20. ARIA2_OPENSSL \
  21. ARIA2_GNUTLS \
  22. ARIA2_BITTORRENT \
  23. ARIA2_METALINK \
  24. ARIA2_SFTP \
  25. ARIA2_EXPAT \
  26. ARIA2_LIBXML2
  27. include $(INCLUDE_DIR)/package.mk
  28. define Package/aria2/config
  29. source "$(SOURCE)/Config.in"
  30. endef
  31. define Package/aria2
  32. SECTION:=net
  33. CATEGORY:=Network
  34. SUBMENU:=File Transfer
  35. TITLE:=lightweight download utility
  36. URL:=https://aria2.github.io/
  37. DEPENDS:=+zlib +ARIA2_SFTP:libssh2 +ARIA2_LIBXML2:libxml2 +ARIA2_EXPAT:libexpat +libstdcpp +ARIA2_OPENSSL:libopenssl +ARIA2_GNUTLS:libgnutls
  38. endef
  39. define Package/aria2/description
  40. aria2 is a lightweight multi-protocol & multi-source command-line download
  41. utility
  42. endef
  43. CONFIGURE_ARGS += \
  44. --disable-nls \
  45. $(if $(CONFIG_ARIA2_NOSSL),--disable,--enable)-ssl \
  46. $(if $(CONFIG_ARIA2_OPENSSL),--with,--without)-openssl \
  47. $(if $(CONFIG_ARIA2_GNUTLS),--with,--without)-gnutls \
  48. $(if $(CONFIG_ARIA2_BITTORRENT),--enable,--disable)-bittorrent \
  49. $(if $(CONFIG_ARIA2_METALINK),--enable,--disable)-metalink \
  50. $(if $(CONFIG_ARIA2_SFTP),--with,--without)-libssh2 \
  51. $(if $(CONFIG_ARIA2_LIBXML2),--with,--without)-libxml2 \
  52. $(if $(CONFIG_ARIA2_EXPAT),--with,--without)-libexpat \
  53. --without-libnettle \
  54. --without-libgmp \
  55. --without-libgcrypt \
  56. --without-libcares \
  57. --without-libuv \
  58. --without-sqlite3 \
  59. --with-libz
  60. define Package/aria2/install
  61. $(INSTALL_DIR) $(1)/usr/bin
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aria2c $(1)/usr/bin
  63. $(INSTALL_DIR) $(1)/etc/init.d
  64. $(INSTALL_BIN) ./files/aria2.init $(1)/etc/init.d/aria2
  65. $(INSTALL_DIR) $(1)/etc/config
  66. $(INSTALL_CONF) ./files/aria2.conf $(1)/etc/config/aria2
  67. endef
  68. $(eval $(call BuildPackage,aria2))