Microblaze: added architecture support for both big endian and low endian
[buildroot-gz.git] / package / axel / axel.mk
blob91f6d1e0da199b6a5c00f5d6ec14e2173a528cea
1 #############################################################
3 # axel
5 #############################################################
6 AXEL_VERSION = 2.4
7 AXEL_SOURCE = axel-$(AXEL_VERSION).tar.gz
8 AXEL_SITE = https://alioth.debian.org/frs/download.php/3015
10 AXEL_LDFLAGS = -lpthread
12 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
13 AXEL_DEPENDENCIES += gettext libintl
14 AXEL_LDFLAGS += -lintl
15 endif
17 ifneq ($(BR2_ENABLE_LOCALE),y)
18 AXEL_DISABLE_I18N=--i18n=0
19 endif
21 define AXEL_CONFIGURE_CMDS
22 (cd $(@D); \
23 ./configure \
24 --prefix=/usr \
25 --debug=1 \
26 $(AXEL_DISABLE_I18N) \
28 endef
30 define AXEL_BUILD_CMDS
31 $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
32 LFLAGS="$(TARGET_LDFLAGS) $(AXEL_LDFLAGS)" -C $(@D)
33 endef
35 define AXEL_INSTALL_TARGET_CMDS
36 $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
37 endef
39 define AXEL_UNINSTALL_TARGET_CMDS
40 $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) uninstall
41 endef
43 define AXEL_CLEAN_CMDS
44 -$(MAKE) -C $(@D) clean
45 endef
47 $(eval $(call GENTARGETS))