2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2008-04-17 06:52:57 +02:00
|
|
|
#
|
|
|
|
# axel
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2010-09-26 09:13:53 +02:00
|
|
|
AXEL_VERSION = 2.4
|
|
|
|
AXEL_SOURCE = axel-$(AXEL_VERSION).tar.gz
|
2013-06-30 18:04:21 +02:00
|
|
|
AXEL_SITE = https://alioth.debian.org/frs/download.php/file/3015
|
2013-01-20 10:22:30 +01:00
|
|
|
AXEL_LICENSE = GPLv2+
|
|
|
|
AXEL_LICENSE_FILES = COPYING
|
2008-04-17 06:52:57 +02:00
|
|
|
|
2010-09-26 09:13:53 +02:00
|
|
|
AXEL_LDFLAGS = -lpthread
|
2008-04-17 06:52:57 +02:00
|
|
|
|
2010-09-26 09:13:53 +02:00
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
2012-09-16 14:57:49 +02:00
|
|
|
AXEL_DEPENDENCIES += gettext
|
2010-09-26 09:13:53 +02:00
|
|
|
AXEL_LDFLAGS += -lintl
|
2008-04-17 06:52:57 +02:00
|
|
|
endif
|
|
|
|
|
2010-09-26 09:13:53 +02:00
|
|
|
ifneq ($(BR2_ENABLE_LOCALE),y)
|
|
|
|
AXEL_DISABLE_I18N=--i18n=0
|
|
|
|
endif
|
2008-04-17 06:52:57 +02:00
|
|
|
|
2010-09-26 09:13:53 +02:00
|
|
|
define AXEL_CONFIGURE_CMDS
|
|
|
|
(cd $(@D); \
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--debug=1 \
|
|
|
|
$(AXEL_DISABLE_I18N) \
|
|
|
|
)
|
|
|
|
endef
|
2008-04-17 06:52:57 +02:00
|
|
|
|
2010-09-26 09:13:53 +02:00
|
|
|
define AXEL_BUILD_CMDS
|
|
|
|
$(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
LFLAGS="$(TARGET_LDFLAGS) $(AXEL_LDFLAGS)" -C $(@D)
|
|
|
|
endef
|
2008-04-17 06:52:57 +02:00
|
|
|
|
2010-09-26 09:13:53 +02:00
|
|
|
define AXEL_INSTALL_TARGET_CMDS
|
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define AXEL_UNINSTALL_TARGET_CMDS
|
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) uninstall
|
|
|
|
endef
|
|
|
|
|
|
|
|
define AXEL_CLEAN_CMDS
|
|
|
|
-$(MAKE) -C $(@D) clean
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|