initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
config BR2_PACKAGE_LIBXMLRPC
|
||||
bool "libxmlrpc"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
select BR2_PACKAGE_LIBCURL
|
||||
help
|
||||
XML-RPC is a quick-and-easy way to make procedure calls over
|
||||
the Internet. It converts the procedure call into an XML
|
||||
document, sends it to a remote server using HTTP, and gets
|
||||
back the response as XML.
|
||||
|
||||
http://xmlrpc-c.sourceforge.net/
|
||||
|
||||
if BR2_PACKAGE_LIBXMLRPC
|
||||
|
||||
config BR2_PACKAGE_LIBXMLRPC_TOOLS_XMLRPC
|
||||
bool "install cli tool"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
Command line tool xmlrpc.
|
||||
|
||||
comment "cli tool needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
endif # BR2_PACKAGE_LIBXMLRPC
|
||||
|
||||
comment "libxmlrpc needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 626e36295f43b320082bc7bdd961b46f39fbe2719535b5a417975a8e50c8f7f3 libxmlrpc-r3119-br2.tar.gz
|
||||
sha256 db7a6d3f187b218c3534010a83424c6bcdef88e6a0b6b1aa3a8762238bd642e6 doc/COPYING
|
||||
@@ -0,0 +1,68 @@
|
||||
################################################################################
|
||||
#
|
||||
# libxmlrpc
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# 1.58.02 (code/advanced@r3119)
|
||||
LIBXMLRPC_VERSION = r3119
|
||||
LIBXMLRPC_SITE = https://svn.code.sf.net/p/xmlrpc-c/code/advanced
|
||||
LIBXMLRPC_SITE_METHOD = svn
|
||||
LIBXMLRPC_LICENSE = BSD-3-Clause (xml-rpc main code and abyss web server), BSD like (lib/expat), Python 1.5.2 license (parts of xmlrpc_base64.c)
|
||||
LIBXMLRPC_LICENSE_FILES = doc/COPYING
|
||||
LIBXMLRPC_INSTALL_STAGING = YES
|
||||
LIBXMLRPC_DEPENDENCIES = libcurl host-autoconf
|
||||
LIBXMLRPC_CONFIG_SCRIPTS = xmlrpc-c-config
|
||||
LIBXMLRPC_MAKE = $(MAKE1)
|
||||
|
||||
# Using autoconf, not automake, so we cannot use AUTORECONF = YES.
|
||||
define LIBXMLRPC_RUN_AUTOCONF
|
||||
cd $(@D); $(AUTOCONF)
|
||||
endef
|
||||
|
||||
LIBXMLRPC_PRE_CONFIGURE_HOOKS += LIBXMLRPC_RUN_AUTOCONF
|
||||
|
||||
LIBXMLRPC_CONF_OPTS = \
|
||||
$(if $(BR2_USE_WCHAR),,ac_cv_header_wchar_h=no) \
|
||||
$(if $(BR2_INSTALL_LIBSTDCPP),,--disable-cplusplus) \
|
||||
have_curl_config=$(STAGING_DIR)/usr/bin/curl-config \
|
||||
CURL_CONFIG=$(STAGING_DIR)/usr/bin/curl-config
|
||||
|
||||
# Our package uses autoconf, but not automake, so we need to pass
|
||||
# those variables at compile time as well.
|
||||
LIBXMLRPC_MAKE_OPTS = \
|
||||
CC_FOR_BUILD="$(HOSTCC)" \
|
||||
LD_FOR_BUILD="$(HOSTLD)" \
|
||||
CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \
|
||||
LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)"
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
LIBXMLRPC_STATIC_OPTS = SHARED_LIB_TYPE=NONE MUST_BUILD_SHLIB=N
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
LIBXMLRPC_DEPENDENCIES += host-pkgconf openssl
|
||||
LIBXMLRPC_CONF_OPTS += --enable-abyss-openssl
|
||||
else
|
||||
LIBXMLRPC_CONF_OPTS += --disable-abyss-openssl
|
||||
endif
|
||||
|
||||
LIBXMLRPC_MAKE_OPTS += $(LIBXMLRPC_STATIC_OPTS)
|
||||
LIBXMLRPC_INSTALL_STAGING_OPTS = $(LIBXMLRPC_STATIC_OPTS) \
|
||||
DESTDIR=$(STAGING_DIR) install
|
||||
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))
|
||||
Reference in New Issue
Block a user