openwrt之aria2

#
# Copyright (C) 2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk

PKG_NAME:=aria2
PKG_VERSION:=1.18.1
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.bz2
PKG_SOURCE_URL:=
PKG_MD5SUM:=
PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/aria2
    SECTION:=net
    CATEGORY:=Network
    SUBMENU:=File Transfer
    TITLE:=lightweight download utility
    URL:=http://aria2.sourceforge.net/
    DEPENDS:=+libopenssl +zlib +libxml2 +libstdcpp \
    $(INTL_DEPENDS) $(ICONV_DEPENDS)
endef

define Package/aria2/description
    aria2 is a lightweight multi-protocol & multi-source command-line download
    utility
endef

define Package/aria2/conffiles
    /etc/config/aria2
endef

CONFIGURE_ARGS += \
    --disable-nls \
    --without-gnutls \
    --without-libnettle \
    --without-libgmp \
    --without-libgcrypt \
    --without-libexpat \
    --without-libcares \
    --without-sqlite3 \
    --with-openssl \
    --with-libxml2 \
    --with-libz

CONFIGURE_VARS += \
    ZLIB_CFLAGS="-I$(STAGING_DIR)/usr/include" \
    ZLIB_LIBS="-L$(STAGING_DIR)/usr/lib"

define Package/aria2/install
    $(INSTALL_DIR) $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aria2c $(1)/usr/bin
endef

$(eval $(call BuildPackage,aria2))
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值