summaryrefslogtreecommitdiffstats
path: root/rules/xmlrpc-c.make
blob: e49b4fc70dd2c1b15037fa207eaa2c40dbf4ef71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# -*-makefile-*-
#
# Copyright (C) 2010 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_XMLRPC_C) += xmlrpc-c

#
# Paths and names
#
XMLRPC_C_VERSION	:= 1.06.42
XMLRPC_C_MD5		:= 248bacf3a998ceca6f491a213337c592
XMLRPC_C		:= xmlrpc-c-$(XMLRPC_C_VERSION)
XMLRPC_C_SUFFIX		:= tgz
XMLRPC_C_URL		:= $(call ptx/mirror, SF, xmlrpc-c/Xmlrpc-c%20Super%20Stable/$(XMLRPC_C_VERSION)/$(XMLRPC_C).$(XMLRPC_C_SUFFIX))
XMLRPC_C_SOURCE		:= $(SRCDIR)/$(XMLRPC_C).$(XMLRPC_C_SUFFIX)
XMLRPC_C_DIR		:= $(BUILDDIR)/$(XMLRPC_C)
XMLRPC_C_LICENSE	:= unknown

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

XMLRPC_C_CONF_TOOL := autoconf
XMLRPC_C_CONF_OPT := \
	$(CROSS_AUTOCONF_USR) \
	--enable-static \
	--disable-wininet-client \
	--disable-libwww-client \
	--without-libwww-ssl

ifdef PTXCONF_XMLRPC_C_CURL
XMLRPC_C_CONF_OPT += --enable-curl-client
else
XMLRPC_C_CONF_OPT += --disable-curl-client
endif

ifdef PTXCONF_XMLRPC_C_ABYSS_SERVER
XMLRPC_C_CONF_OPT += --enable-abyss-server
else
XMLRPC_C_CONF_OPT += --disable-abyss-server
endif

ifdef PTXCONF_XMLRPC_C_ABYSS_THREADS
XMLRPC_C_CONF_OPT += --enable-abyss-threads
else
XMLRPC_C_CONF_OPT += --disable-abyss-threads
endif

ifdef PTXCONF_XMLRPC_C_CGI_SERVER
XMLRPC_C_CONF_OPT += --enable-cgi-server
else
XMLRPC_C_CONF_OPT += --disable-cgi-server
endif

ifdef PTXCONF_XMLRPC_C_CPLUSPLUS
XMLRPC_C_CONF_OPT += --enable-cplusplus
else
XMLRPC_C_CONF_OPT += --disable-cplusplus
endif

ifdef PTXCONF_XMLRPC_C_LIBXML2
XMLRPC_C_CONF_OPT += --enable-libxml2-backend
else
XMLRPC_C_CONF_OPT += --disable-libxml2-backend
endif

XMLRPC_C_MAKE_OPT := \
	CADD="$(CROSS_CPPFLAGS) $(CROSS_CFLAGS) -fPIC" \
	LADD="$(CROSS_LDFLAGS)" \
	BUILDTOOL_CC=$(HOSTCC) \
	BUILDTOOL_CCLD=$(HOSTCC)

XMLRPC_C_MAKE_PAR := NO

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/xmlrpc-c.targetinstall:
	@$(call targetinfo)

	@$(call install_init, xmlrpc-c)
	@$(call install_fixup, xmlrpc-c,PRIORITY,optional)
	@$(call install_fixup, xmlrpc-c,SECTION,base)
	@$(call install_fixup, xmlrpc-c,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
	@$(call install_fixup, xmlrpc-c,DESCRIPTION,missing)

	@$(call install_lib, xmlrpc-c, 0, 0, 0644, libxmlrpc)
	@$(call install_lib, xmlrpc-c, 0, 0, 0644, libxmlrpc_server)
	@$(call install_lib, xmlrpc-c, 0, 0, 0644, libxmlrpc_server_abyss)

ifdef PTXCONF_XMLRPC_C_CPLUSPLUS
	@$(call install_lib, xmlrpc-c, 0, 0, 0644, libxmlrpc++)
	@$(call install_lib, xmlrpc-c, 0, 0, 0644, libxmlrpc_server++)
	@$(call install_lib, xmlrpc-c, 0, 0, 0644, libxmlrpc_server_abyss++)
endif

	@$(call install_lib, xmlrpc-c, 0, 0, 0644, libxmlrpc_util)

ifndef PTXCONF_XMLRPC_C_LIBXML2
	@$(call install_lib, xmlrpc-c, 0, 0, 0644, libxmlrpc_xmlparse)
	@$(call install_lib, xmlrpc-c, 0, 0, 0644, libxmlrpc_xmltok)
endif

ifdef PTXCONF_XMLRPC_C_CLIENT
	@$(call install_lib, xmlrpc-c, 0, 0, 0644, libxmlrpc_client)

ifdef PTXCONF_XMLRPC_C_CPLUSPLUS
	@$(call install_lib, xmlrpc-c, 0, 0, 0644, libxmlrpc_client++)
endif
endif

ifdef PTXCONF_XMLRPC_C_ABYSS_SERVER
	@$(call install_lib, xmlrpc-c, 0, 0, 0644, libxmlrpc_abyss)
endif

ifdef PTXCONF_XMLRPC_C_CGI_SERVER
	@$(call install_lib, xmlrpc-c, 0, 0, 0644, libxmlrpc_server_cgi)
endif

ifdef XMLRPC_C_CGI_SERVER
	@$(call install_lib, xmlrpc-c, 0, 0, 0644, libxmlrpc_server)
endif

	@$(call install_finish, xmlrpc-c)

	@$(call touch)

# vim: syntax=make