2013-10-09 16:19:10 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libxmlrpc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-01-13 09:48:18 +01:00
|
|
|
LIBXMLRPC_VERSION = 1.39.12
|
2013-10-09 16:19:10 +02:00
|
|
|
LIBXMLRPC_SOURCE = xmlrpc-c-$(LIBXMLRPC_VERSION).tgz
|
|
|
|
LIBXMLRPC_SITE = http://downloads.sourceforge.net/project/xmlrpc-c/Xmlrpc-c%20Super%20Stable/$(LIBXMLRPC_VERSION)
|
2017-03-30 15:43:38 +02:00
|
|
|
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)
|
2013-10-09 16:19:10 +02:00
|
|
|
LIBXMLRPC_LICENSE_FILES = doc/COPYING
|
|
|
|
LIBXMLRPC_INSTALL_STAGING = YES
|
2014-12-27 17:25:55 +01:00
|
|
|
LIBXMLRPC_DEPENDENCIES = libcurl host-autoconf
|
2013-10-09 16:19:10 +02:00
|
|
|
LIBXMLRPC_CONFIG_SCRIPTS = xmlrpc-c-config
|
2014-03-06 09:53:33 +01:00
|
|
|
LIBXMLRPC_MAKE = $(MAKE1)
|
2013-10-09 16:19:10 +02:00
|
|
|
|
2014-12-27 17:25:55 +01:00
|
|
|
# Using autoconf, not automake, so we cannot use AUTORECONF = YES.
|
|
|
|
define LIBXMLRPC_RUN_AUTOCONF
|
2017-07-05 13:14:19 +02:00
|
|
|
cd $(@D); $(HOST_DIR)/bin/autoconf
|
2014-12-27 17:25:55 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
LIBXMLRPC_PRE_CONFIGURE_HOOKS += LIBXMLRPC_RUN_AUTOCONF
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBXMLRPC_CONF_OPTS = \
|
2013-10-09 16:19:10 +02:00
|
|
|
$(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_ENV = \
|
|
|
|
CC_FOR_BUILD="$(HOSTCC)" \
|
|
|
|
LD_FOR_BUILD="$(HOSTLD)" \
|
|
|
|
CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \
|
|
|
|
LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)"
|
|
|
|
|
2015-06-09 16:20:09 +02:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
LIBXMLRPC_STATIC_OPTS = SHARED_LIB_TYPE=NONE MUST_BUILD_SHLIB=N
|
|
|
|
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
|
|
|
|
|
2013-10-09 16:19:10 +02:00
|
|
|
$(eval $(autotools-package))
|