[packages] lftp: update to 4.1.1, use g++-uc, remove stdc++ hack, use tabs rather...
[openwrt/svn-archive/archive.git] / libs / xmlrpc-c / Makefile
1 #
2 # Copyright (C) 2007-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=xmlrpc-c
11 PKG_REV:=2042
12 PKG_VERSION:=1.24.4_r$(PKG_REV)
13 PKG_RELEASE:=1
14
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_FIXUP:=libtool
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/xmlrpc-c
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=XML-RPC library for C/C++ (Xmlrpc-c)
30 URL:=http://xmlrpc-c.sourceforge.net/
31 DEPENDS:=+libcurl +libxml2
32 endef
33
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.
38 endef
39
40 CONFIGURE_ARGS+= \
41 --enable-libxml2-backend \
42 --disable-wininet-client \
43 --disable-libwww-client \
44 --disable-abyss-server \
45 --disable-cplusplus \
46 --disable-static \
47
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/
61 endef
62
63 define Package/xmlrpc-c/install
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxmlrpc*.so* $(1)/usr/lib/
66 endef
67
68 $(eval $(call BuildPackage,xmlrpc-c))