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