8e41fd0c4c
This commit switches to use the new gettext logic, which involves: - using TARGET_NLS_DEPENDENCIES instead of hand-encoded dependencies on gettext/host-gettext - using TARGET_NLS_LIBS to force linking against libintl - dropping BR2_PACKAGE_GETTEXT selection Note that -lpthread is no longer needed for -lintl, but axel uses pthread directly anyway, so we have to keep -lpthread as part of LDFLAGS. Finally, we now use BR2_SYSTEM_ENABLE_NLS to decide whether NLS support should be enabled or not. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
37 lines
865 B
Makefile
37 lines
865 B
Makefile
################################################################################
|
|
#
|
|
# axel
|
|
#
|
|
################################################################################
|
|
|
|
AXEL_VERSION = 2.4
|
|
AXEL_SITE = http://sources.buildroot.net
|
|
AXEL_LICENSE = GPL-2.0+
|
|
AXEL_LICENSE_FILES = COPYING
|
|
AXEL_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
|
AXEL_LDFLAGS = -lpthread $(TARGET_NLS_LIBS)
|
|
|
|
ifeq ($(BR2_SYSTEM_ENABLE_NLS),)
|
|
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
|
|
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
|
|
LFLAGS="$(TARGET_LDFLAGS) $(AXEL_LDFLAGS)" -C $(@D)
|
|
endef
|
|
|
|
define AXEL_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|