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.

70 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2012-2014 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.18.7
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=@SF/aria2
  13. PKG_MD5SUM:=36e92af92b4370817c577ed802546842
  14. PKG_INSTALL:=1
  15. PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
  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. include $(INCLUDE_DIR)/package.mk
  25. define Package/aria2/config
  26. source "$(SOURCE)/Config.in"
  27. endef
  28. define Package/aria2
  29. SECTION:=net
  30. CATEGORY:=Network
  31. SUBMENU:=File Transfer
  32. TITLE:=lightweight download utility
  33. URL:=http://aria2.sourceforge.net/
  34. DEPENDS:=+zlib +ARIA2_METALINK:libxml2 +libstdcpp +ARIA2_OPENSSL:libopenssl +ARIA2_GNUTLS:libgnutls
  35. endef
  36. define Package/aria2/description
  37. aria2 is a lightweight multi-protocol & multi-source command-line download
  38. utility
  39. endef
  40. CONFIGURE_ARGS += \
  41. --disable-nls \
  42. $(if $(CONFIG_ARIA2_NOSSL),--disable,--enable)-ssl \
  43. $(if $(CONFIG_ARIA2_OPENSSL),--with,--without)-openssl \
  44. $(if $(CONFIG_ARIA2_GNUTLS),--with,--without)-gnutls \
  45. $(if $(CONFIG_ARIA2_BITTORRENT),--enable,--disable)-bittorrent \
  46. $(if $(CONFIG_ARIA2_METALINK),--enable,--disable)-metalink \
  47. $(if $(CONFIG_ARIA2_METALINK),--with,--without)-libxml2 \
  48. --without-libnettle \
  49. --without-libgmp \
  50. --without-libgcrypt \
  51. --without-libexpat \
  52. --without-libcares \
  53. --without-sqlite3 \
  54. --with-libz
  55. define Package/aria2/install
  56. $(INSTALL_DIR) $(1)/usr/bin
  57. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aria2c $(1)/usr/bin
  58. endef
  59. $(eval $(call BuildPackage,aria2))