2 # Copyright (C) 2007-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_VERSION
:=1.24.4_r
$(PKG_REV
)
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://xmlrpc-c.svn.sourceforge.net
/svnroot
/xmlrpc-c
/advanced
17 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_VERSION
:=$(PKG_REV
)
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/xmlrpc-c
29 TITLE
:=XML-RPC library for C
/C
++ (Xmlrpc-c
)
30 URL
:=http
://xmlrpc-c.sourceforge.net
/
31 DEPENDS
:=+libcurl
+libxml2
34 define Package
/xmlrpc-c
/description
35 Programming library for writing an XML-RPC server or client in C or C
++.
36 XML-RPC is a standard network protocol to allow a client program to make
37 a simple remote procedure call
(RPC
) type request of a server.
41 --enable-libxml2-backend \
42 --disable-wininet-client \
43 --disable-libwww-client \
44 --disable-abyss-server \
48 define Build
/InstallDev
49 $(INSTALL_DIR
) $(1)/usr
/include
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h
$(1)/usr
/include/
51 $(INSTALL_DIR
) $(1)/usr
/include/xmlrpc-c
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/xmlrpc-c
/*.h
$(1)/usr
/include/xmlrpc-c
53 $(INSTALL_DIR
) $(1)/usr
/lib
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxmlrpc
*.
{a
,so
*} $(1)/usr
/lib
/
55 $(INSTALL_DIR
) $(1)/usr
/bin
56 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/xmlrpc-c-config
$(1)/usr
/bin
/
57 $(SED
) 's,HEADERINST_DIR="/usr/include",HEADERINST_DIR="$(STAGING_DIR)/usr/include",g' $(1)/usr
/bin
/xmlrpc-c-config
58 $(SED
) 's,LIBINST_DIR="/usr/lib",LIBINST_DIR="$(STAGING_DIR)/usr/lib",g' $(1)/usr
/bin
/xmlrpc-c-config
59 $(INSTALL_DIR
) $(2)/bin
60 ln
-sf
$(STAGING_DIR
)/usr
/bin
/xmlrpc-c-config
$(2)/bin
/
63 define Package
/xmlrpc-c
/install
64 $(INSTALL_DIR
) $(1)/usr
/lib
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxmlrpc
*.so
* $(1)/usr
/lib
/
68 $(eval
$(call BuildPackage
,xmlrpc-c
))