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