1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# libcli 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunLIBCLI_VERSION = 1.10.4 8*4882a593SmuzhiyunLIBCLI_SITE = $(call github,dparrish,libcli,V$(LIBCLI_VERSION)) 9*4882a593SmuzhiyunLIBCLI_LICENSE = LGPL-2.1 10*4882a593SmuzhiyunLIBCLI_LICENSE_FILES = COPYING 11*4882a593SmuzhiyunLIBCLI_INSTALL_STAGING = YES 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun# We will pass optimisation level via CFLAGS so remove libcli default 14*4882a593SmuzhiyunLIBCLI_MAKE_ARGS += OPTIM= 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun# We can't run the test harness 17*4882a593SmuzhiyunLIBCLI_MAKE_ARGS += TESTS= 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun# Disable the static library for shared only build 20*4882a593Smuzhiyunifeq ($(BR2_SHARED_LIBS),y) 21*4882a593SmuzhiyunLIBCLI_MAKE_ARGS += STATIC_LIB= 22*4882a593Smuzhiyunendif 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun# Disable the shared library for static only build 25*4882a593Smuzhiyunifeq ($(BR2_STATIC_LIBS),y) 26*4882a593SmuzhiyunLIBCLI_MAKE_ARGS += DYNAMIC_LIB= 27*4882a593Smuzhiyunendif 28*4882a593Smuzhiyun 29*4882a593Smuzhiyundefine LIBCLI_BUILD_CMDS 30*4882a593Smuzhiyun $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \ 31*4882a593Smuzhiyun $(LIBCLI_MAKE_ARGS) 32*4882a593Smuzhiyunendef 33*4882a593Smuzhiyun 34*4882a593Smuzhiyundefine LIBCLI_INSTALL_STAGING_CMDS 35*4882a593Smuzhiyun $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \ 36*4882a593Smuzhiyun $(LIBCLI_MAKE_ARGS) DESTDIR=$(STAGING_DIR) PREFIX=/usr install 37*4882a593Smuzhiyunendef 38*4882a593Smuzhiyun 39*4882a593Smuzhiyundefine LIBCLI_INSTALL_TARGET_CMDS 40*4882a593Smuzhiyun $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \ 41*4882a593Smuzhiyun $(LIBCLI_MAKE_ARGS) DESTDIR=$(TARGET_DIR) PREFIX=/usr install 42*4882a593Smuzhiyunendef 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun$(eval $(generic-package)) 45