Ticket #7636: Makefile

File Makefile, 1.5 KB (added by sherpya, 6 years ago)

Makefile only, create as net/axel/Makefile

Line 
1#
2# Copyright (C) 2010 Gianluigi Tiesi <sherpya@netfarm.it>
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=axel
11PKG_VERSION:=2.4
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://alioth.debian.org/frs/download.php/3015
16PKG_MD5SUM:=a2a762fce0c96781965c8f9786a3d09d
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/axel
23    SECTION:=net
24    CATEGORY:=Network
25    TITLE:=Axel Download Accelerator
26    DEPENDS:=+libpthread
27    URL:=http://axel.alioth.debian.org/
28    MAINTAINER:=Gianluigi Tiesi <sherpya@netfarm.it>
29endef
30
31define Package/axel/description
32Axel tries to accelerate HTTP/FTP downloading process by using multiple connections for one file.
33It can use multiple mirrors for a download. Axel has no dependencies and is lightweight,
34so it might be useful as a wget clone on byte-critical systems.
35endef
36
37# notes:
38#  - I'm using = and not += because it is not a standard configure script
39#  - I ask not to strip, because it should be handled by the toolchain
40CONFIGURE_ARGS =        \
41        --prefix=/usr   \
42        --etcdir=/etc   \
43        --debug=0               \
44        --i18n=0                \
45        --strip=0
46
47define Package/axel/install
48        $(INSTALL_DIR) $(1)/usr/bin
49        $(INSTALL_BIN) $(PKG_BUILD_DIR)/axel $(1)/usr/bin/
50        $(INSTALL_DIR) $(1)/etc
51        $(INSTALL_DATA) $(PKG_BUILD_DIR)/axelrc.example $(1)/etc/axelrc
52        echo "alternate_output = 1" >> $(1)/etc/axelrc
53endef
54
55$(eval $(call BuildPackage,axel))