[package] update xmlrpc-c to 1.19.2 (#5674)
[openwrt/svn-archive/archive.git] / libs / xmlrpc-c / Makefile
1 #
2 # Copyright (C) 2007-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $ sav $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=xmlrpc-c
12 PKG_REV:=1785
13 PKG_VERSION:=1.19.2_r$(PKG_REV)
14 PKG_RELEASE:=1
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)
19 PKG_SOURCE_PROTO:=svn
20
21 PKG_BUILD_DEPENDS:=libcurl libxml2
22
23 PKG_FIXUP = libtool
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/xmlrpc-c
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=XML-RPC library for C/C++ (Xmlrpc-c)
31 URL:=http://xmlrpc-c.sourceforge.net/
32 DEPENDS:=+libcurl +libxml2
33 endef
34
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.
39 endef
40
41 CONFIGURE_ARGS+= \
42 --enable-libxml2-backend \
43 --disable-wininet-client \
44 --disable-libwww-client \
45 --disable-abyss-server \
46 --disable-cplusplus \
47 --disable-static \
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
51 endef
52
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
58 mkdir -p $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxmlrpc*.{a,so*} $(1)/usr/lib/
60 mkdir -p $(1)/usr/bin
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
64 mkdir -p $(2)/bin
65 ln -sf $(STAGING_DIR)/usr/bin/xmlrpc-c-config $(2)/bin/
66 endef
67
68 define Package/xmlrpc-c/install
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxmlrpc*.so* $(1)/usr/lib/
71 endef
72
73 $(eval $(call BuildPackage,xmlrpc-c))