aMule: update to 2.3.1
[openwrt/svn-archive/archive.git] / net / aria2 / Makefile
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
9 PKG_NAME:=aria2
10 PKG_VERSION:=1.18.4
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=@SF/aria2
15 PKG_MD5SUM:=d10fc5ee6e708760134e4cb963ecc98e
16 PKG_INSTALL:=1
17
18 PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
19 PKG_LICENSE:=GPLv2
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_CONFIG_DEPENDS := \
23 ARIA2_NOSSL \
24 ARIA2_OPENSSL \
25 ARIA2_GNUTLS \
26 ARIA2_BITTORRENT \
27 ARIA2_METALINK
28
29 include $(INCLUDE_DIR)/package.mk
30
31 define Package/aria2/config
32 source "$(SOURCE)/Config.in"
33 endef
34
35 define Package/aria2
36 SECTION:=net
37 CATEGORY:=Network
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
42 endef
43
44 define Package/aria2/description
45 aria2 is a lightweight multi-protocol & multi-source command-line download
46 utility
47 endef
48
49 CONFIGURE_ARGS += \
50 --disable-nls \
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 \
57 --without-libnettle \
58 --without-libgmp \
59 --without-libgcrypt \
60 --without-libexpat \
61 --without-libcares \
62 --without-sqlite3 \
63 --with-libz
64
65 define Package/aria2/install
66 $(INSTALL_DIR) $(1)/usr/bin
67 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aria2c $(1)/usr/bin
68 endef
69
70 $(eval $(call BuildPackage,aria2))