From bc3dc2b44ba1d80ed93f43a8d43c3d80ff548077 Mon Sep 17 00:00:00 2001 From: Peter Seiderer Date: Mon, 14 Jun 2021 22:47:49 +0200 Subject: [PATCH] package/libxmlrpc: add option to install xmlrpc tools Signed-off-by: Peter Seiderer Signed-off-by: Thomas Petazzoni --- package/libxmlrpc/Config.in | 9 +++++++++ package/libxmlrpc/libxmlrpc.mk | 12 ++++++++++++ 2 files changed, 21 insertions(+) diff --git a/package/libxmlrpc/Config.in b/package/libxmlrpc/Config.in index d24a79163d..f8b8c411e1 100644 --- a/package/libxmlrpc/Config.in +++ b/package/libxmlrpc/Config.in @@ -10,5 +10,14 @@ config BR2_PACKAGE_LIBXMLRPC http://xmlrpc-c.sourceforge.net/ +if BR2_PACKAGE_LIBXMLRPC + +config BR2_PACKAGE_LIBXMLRPC_TOOLS_XMLRPC + bool "install cli tool" + help + Command line tool xmlrpc. + +endif # BR2_PACKAGE_LIBXMLRPC + comment "libxmlrpc needs a toolchain w/ threads" depends on !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/libxmlrpc/libxmlrpc.mk b/package/libxmlrpc/libxmlrpc.mk index 833dca5065..c1b0eae8ee 100644 --- a/package/libxmlrpc/libxmlrpc.mk +++ b/package/libxmlrpc/libxmlrpc.mk @@ -53,4 +53,16 @@ LIBXMLRPC_INSTALL_STAGING_OPTS = $(LIBXMLRPC_STATIC_OPTS) \ LIBXMLRPC_INSTALL_TARGET_OPTS = $(LIBXMLRPC_STATIC_OPTS) \ DESTDIR=$(TARGET_DIR) install +ifeq ($(BR2_PACKAGE_LIBXMLRPC_TOOLS_XMLRPC),y) +define LIBXMLRPC_TOOLS_XMLRPC_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(LIBXMLRPC_MAKE_OPTS) -C $(@D)/tools/xmlrpc +endef +LIBXMLRPC_POST_BUILD_HOOKS += LIBXMLRPC_TOOLS_XMLRPC_BUILD_CMDS +define LIBXMLRPC_TOOLS_XMLRPC_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(LIBXMLRPC_MAKE_OPTS) -C $(@D)/tools/xmlrpc \ + DESTDIR=$(TARGET_DIR) install +endef +LIBXMLRPC_POST_INSTALL_TARGET_HOOKS += LIBXMLRPC_TOOLS_XMLRPC_INSTALL_TARGET_CMDS +endif + $(eval $(autotools-package)) -- 2.30.2