1 ################################################################################
5 ################################################################################
7 LIBCLI_VERSION
= c63c9d35144939c8b4fa3c5394aed2e29ff517b0
8 LIBCLI_SITE
= $(call github
,dparrish
,libcli
,$(LIBCLI_VERSION
))
9 LIBCLI_LICENSE
= LGPLv2.1
10 LIBCLI_LICENSE_FILES
= COPYING
11 LIBCLI_INSTALL_STAGING
= YES
13 # We will pass optimisation level via CFLAGS so remove libcli default
14 LIBCLI_MAKE_ARGS
+= OPTIM
=
16 # We can't run the test harness
17 LIBCLI_MAKE_ARGS
+= TESTS
=
19 # Disable the static library for shared only build
20 ifeq ($(BR2_SHARED_LIBS
),y
)
21 LIBCLI_MAKE_ARGS
+= STATIC_LIB
=
24 # Disable the shared library for static only build
25 ifeq ($(BR2_STATIC_LIBS
),y
)
26 LIBCLI_MAKE_ARGS
+= DYNAMIC_LIB
=
29 define LIBCLI_BUILD_CMDS
30 $(TARGET_MAKE_ENV
) $(MAKE
) $(TARGET_CONFIGURE_OPTS
) -C
$(@D
) \
34 define LIBCLI_INSTALL_STAGING_CMDS
35 $(TARGET_MAKE_ENV
) $(MAKE
) $(TARGET_CONFIGURE_OPTS
) -C
$(@D
) \
36 $(LIBCLI_MAKE_ARGS
) DESTDIR
=$(STAGING_DIR
) PREFIX
=/usr
install
39 define LIBCLI_INSTALL_TARGET_CMDS
40 $(TARGET_MAKE_ENV
) $(MAKE
) $(TARGET_CONFIGURE_OPTS
) -C
$(@D
) \
41 $(LIBCLI_MAKE_ARGS
) DESTDIR
=$(TARGET_DIR
) PREFIX
=/usr
install
44 $(eval
$(generic-package
))