aboutsummaryrefslogtreecommitdiff
path: root/package/axel/axel.mk
diff options
context:
space:
mode:
authorGravatar Ismael Luceno <ismael@iodev.co.uk>2017-11-25 01:44:47 -0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-11-25 13:21:27 +0100
commit921014df873fbdeac63eb72164d40316721bb417 (patch)
tree7b0b6e9ea570a6ceb43a24272570925a67b39085 /package/axel/axel.mk
parentc33c9ca62a1d34c59538b77e88d9e5f130527971 (diff)
downloadbuildroot-921014df873fbdeac63eb72164d40316721bb417.tar.gz
buildroot-921014df873fbdeac63eb72164d40316721bb417.tar.bz2
axel: bump to version 2.16
- Change upstream URL. - Add optional dependency on libressl/openssl. - Switch to autotools-package. Signed-off-by: Ismael Luceno <ismael@iodev.co.uk> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/axel/axel.mk')
-rw-r--r--package/axel/axel.mk42
1 files changed, 18 insertions, 24 deletions
diff --git a/package/axel/axel.mk b/package/axel/axel.mk
index 60bf5e4a61..dcc8afd0b4 100644
--- a/package/axel/axel.mk
+++ b/package/axel/axel.mk
@@ -4,33 +4,27 @@
#
################################################################################
-AXEL_VERSION = 2.4
-AXEL_SITE = http://sources.buildroot.net
+AXEL_VERSION = 2.16
+AXEL_SITE = https://github.com/axel-download-accelerator/axel/releases/download/v$(AXEL_VERSION)
+AXEL_SOURCE = axel-$(AXEL_VERSION).tar.xz
AXEL_LICENSE = GPL-2.0+
AXEL_LICENSE_FILES = COPYING
AXEL_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
-AXEL_LDFLAGS = -lpthread $(TARGET_NLS_LIBS)
-ifeq ($(BR2_SYSTEM_ENABLE_NLS),)
-AXEL_DISABLE_I18N = --i18n=0
-endif
-
-define AXEL_CONFIGURE_CMDS
- (cd $(@D); \
- ./configure \
- --prefix=/usr \
- --debug=1 \
- $(AXEL_DISABLE_I18N) \
- )
-endef
+# ac_cv_prog_cc_c99 is required for BR2_USE_WCHAR=n because the C99 test
+# provided by autoconf relies on wchar_t.
+AXEL_CONF_OPTS = \
+ ac_cv_prog_cc_c99=-std=c99 \
+ CFLAGS="$(TARGET_CFLAGS)"
-define AXEL_BUILD_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
- LFLAGS="$(TARGET_LDFLAGS) $(AXEL_LDFLAGS)" -C $(@D)
-endef
-
-define AXEL_INSTALL_TARGET_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
-endef
+ifeq ($(BR2_PACKAGE_LIBRESSL),y)
+AXEL_CONF_OPTS += --with-ssl
+AXEL_DEPENDENCIES += libressl
+else ifeq ($(BR2_PACKAGE_OPENSSL),y)
+AXEL_CONF_OPTS += --with-ssl
+AXEL_DEPENDENCIES += openssl
+else
+AXEL_CONF_OPTS += --without-ssl
+endif
-$(eval $(generic-package))
+$(eval $(autotools-package))