[packages] aria2: update to 1.15.1
[openwrt/svn-archive/archive.git] / net / aria2 / Makefile
1 #
2 # Copyright (C) 2012 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.15.1
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=@SF/aria2
15 PKG_MD5SUM:=a749a1f7cfe03a7518630d2310267c42
16 PKG_INSTALL:=1
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/aria2
21 SECTION:=net
22 CATEGORY:=Network
23 SUBMENU:=File Transfer
24 TITLE:=lightweight download utility
25 URL:=http://aria2.sourceforge.net/
26 DEPENDS:=+libopenssl +zlib +libxml2 +libstdcpp \
27 $(INTL_DEPENDS) $(ICONV_DEPENDS)
28 endef
29
30 define Package/aria2/description
31 aria2 is a lightweight multi-protocol & multi-source command-line download
32 utility
33 endef
34
35 CONFIGURE_ARGS += \
36 --disable-nls \
37 --without-gnutls \
38 --without-libnettle \
39 --without-libgmp \
40 --without-libgcrypt \
41 --without-libexpat \
42 --without-libcares \
43 --without-sqlite3 \
44 --with-openssl \
45 --with-libxml2 \
46 --with-libz
47
48 CONFIGURE_VARS += \
49 ZLIB_CFLAGS="-I$(STAGING_DIR)/usr/include" \
50 ZLIB_LIBS="-L$(STAGING_DIR)/usr/lib"
51
52 define Package/aria2/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aria2c $(1)/usr/bin
55 endef
56
57 $(eval $(call BuildPackage,aria2))