kumquat-buildroot/package/axel/axel.mk
Martin Banky 0f9da87c1d axel: convert to gentargets and bump to 2.4
[Peter: fix build with locale, pass LDFLAGS, simplify install]
Signed-off-by: Martin Banky <Martin.Banky@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-09-26 23:11:43 +02:00

48 lines
993 B
Makefile

#############################################################
#
# axel
#
#############################################################
AXEL_VERSION = 2.4
AXEL_SOURCE = axel-$(AXEL_VERSION).tar.gz
AXEL_SITE = https://alioth.debian.org/frs/download.php/3015
AXEL_LDFLAGS = -lpthread
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
AXEL_DEPENDENCIES += gettext libintl
AXEL_LDFLAGS += -lintl
endif
ifneq ($(BR2_ENABLE_LOCALE),y)
AXEL_DISABLE_I18N=--i18n=0
endif
define AXEL_CONFIGURE_CMDS
(cd $(@D); \
./configure \
--prefix=/usr \
--debug=1 \
$(AXEL_DISABLE_I18N) \
)
endef
define AXEL_BUILD_CMDS
$(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
LFLAGS="$(TARGET_LDFLAGS) $(AXEL_LDFLAGS)" -C $(@D)
endef
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
$(eval $(call GENTARGETS,package,axel))