2015-01-14 15:58:44 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libcli
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-01-08 22:48:26 +01:00
|
|
|
LIBCLI_VERSION = 1.10.2
|
|
|
|
LIBCLI_SITE = $(call github,dparrish,libcli,V$(LIBCLI_VERSION))
|
2017-03-30 15:43:34 +02:00
|
|
|
LIBCLI_LICENSE = LGPL-2.1
|
2015-01-14 15:58:44 +01:00
|
|
|
LIBCLI_LICENSE_FILES = COPYING
|
|
|
|
LIBCLI_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
# We will pass optimisation level via CFLAGS so remove libcli default
|
|
|
|
LIBCLI_MAKE_ARGS += OPTIM=
|
|
|
|
|
|
|
|
# We can't run the test harness
|
|
|
|
LIBCLI_MAKE_ARGS += TESTS=
|
|
|
|
|
|
|
|
# Disable the static library for shared only build
|
|
|
|
ifeq ($(BR2_SHARED_LIBS),y)
|
|
|
|
LIBCLI_MAKE_ARGS += STATIC_LIB=
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Disable the shared library for static only build
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
LIBCLI_MAKE_ARGS += DYNAMIC_LIB=
|
|
|
|
endif
|
|
|
|
|
|
|
|
define LIBCLI_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
|
|
|
$(LIBCLI_MAKE_ARGS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBCLI_INSTALL_STAGING_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
|
|
|
$(LIBCLI_MAKE_ARGS) DESTDIR=$(STAGING_DIR) PREFIX=/usr install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBCLI_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
|
|
|
$(LIBCLI_MAKE_ARGS) DESTDIR=$(TARGET_DIR) PREFIX=/usr install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|