kumquat-buildroot/package/axel/axel.mk
Jerzy Grzegorek 0e2e7c71d0 package: remove the default value of the $(PKG)_SOURCE variable
Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net>
Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com)
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2013-10-06 21:52:19 +02:00

50 lines
1.0 KiB
Makefile

################################################################################
#
# axel
#
################################################################################
AXEL_VERSION = 2.4
AXEL_SITE = https://alioth.debian.org/frs/download.php/file/3015
AXEL_LICENSE = GPLv2+
AXEL_LICENSE_FILES = COPYING
AXEL_LDFLAGS = -lpthread
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
AXEL_DEPENDENCIES += gettext
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 $(generic-package))