python-pathvalidate: bump version to 0.14.1
[buildroot-gz.git] / package / libxmlrpc / libxmlrpc.mk
blob738ae9a81158d38d8b08b3975b4f08a1c70226ba
1 ################################################################################
3 # libxmlrpc
5 ################################################################################
7 LIBXMLRPC_VERSION = 1.39.12
8 LIBXMLRPC_SOURCE = xmlrpc-c-$(LIBXMLRPC_VERSION).tgz
9 LIBXMLRPC_SITE = http://downloads.sourceforge.net/project/xmlrpc-c/Xmlrpc-c%20Super%20Stable/$(LIBXMLRPC_VERSION)
10 LIBXMLRPC_LICENSE = BSD-3c (xml-rpc main code and abyss web server), BSD like (lib/expat), Python 1.5.2 license (parts of xmlrpc_base64.c)
11 LIBXMLRPC_LICENSE_FILES = doc/COPYING
12 LIBXMLRPC_INSTALL_STAGING = YES
13 LIBXMLRPC_DEPENDENCIES = libcurl host-autoconf
14 LIBXMLRPC_CONFIG_SCRIPTS = xmlrpc-c-config
15 LIBXMLRPC_MAKE = $(MAKE1)
17 # Using autoconf, not automake, so we cannot use AUTORECONF = YES.
18 define LIBXMLRPC_RUN_AUTOCONF
19 cd $(@D); $(HOST_DIR)/usr/bin/autoconf
20 endef
22 LIBXMLRPC_PRE_CONFIGURE_HOOKS += LIBXMLRPC_RUN_AUTOCONF
24 LIBXMLRPC_CONF_OPTS = \
25 $(if $(BR2_USE_WCHAR),,ac_cv_header_wchar_h=no) \
26 $(if $(BR2_INSTALL_LIBSTDCPP),,--disable-cplusplus) \
27 have_curl_config=$(STAGING_DIR)/usr/bin/curl-config \
28 CURL_CONFIG=$(STAGING_DIR)/usr/bin/curl-config
30 # Our package uses autoconf, but not automake, so we need to pass
31 # those variables at compile time as well.
32 LIBXMLRPC_MAKE_ENV = \
33 CC_FOR_BUILD="$(HOSTCC)" \
34 LD_FOR_BUILD="$(HOSTLD)" \
35 CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \
36 LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)"
38 ifeq ($(BR2_STATIC_LIBS),y)
39 LIBXMLRPC_STATIC_OPTS = SHARED_LIB_TYPE=NONE MUST_BUILD_SHLIB=N
40 endif
42 LIBXMLRPC_MAKE_OPTS = $(LIBXMLRPC_STATIC_OPTS)
43 LIBXMLRPC_INSTALL_STAGING_OPTS = $(LIBXMLRPC_STATIC_OPTS) \
44 DESTDIR=$(STAGING_DIR) install
45 LIBXMLRPC_INSTALL_TARGET_OPTS = $(LIBXMLRPC_STATIC_OPTS) \
46 DESTDIR=$(TARGET_DIR) install
48 $(eval $(autotools-package))