source: packages/libs/xmlrpc-c/Makefile @ 21298

Last change on this file since 21298 was 21298, checked in by florian, 7 years ago

[package] update xmlrpc-c to 1.22.2 (#7250)

File size: 2.2 KB
Line 
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# $ sav $
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=xmlrpc-c
12PKG_REV:=1913
13PKG_VERSION:=1.22.2_r$(PKG_REV)
14PKG_RELEASE:=1
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/advanced
17PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18PKG_SOURCE_VERSION:=$(PKG_REV)
19PKG_SOURCE_PROTO:=svn
20
21PKG_BUILD_DEPENDS:=libcurl libxml2
22
23PKG_FIXUP = libtool
24
25include $(INCLUDE_DIR)/package.mk
26
27define 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
33endef
34
35define 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.
39endef
40
41CONFIGURE_ARGS+= \
42        --enable-libxml2-backend \
43        --disable-wininet-client \
44        --disable-libwww-client \
45        --disable-abyss-server \
46        --disable-cplusplus \
47        --disable-static \
48
49define Build/Compile
50        $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
51endef
52
53define Build/InstallDev
54        $(INSTALL_DIR) $(1)/usr/include
55        $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
56        $(INSTALL_DIR) $(1)/usr/include/xmlrpc-c
57        $(CP) $(PKG_INSTALL_DIR)/usr/include/xmlrpc-c/*.h $(1)/usr/include/xmlrpc-c
58        $(INSTALL_DIR) $(1)/usr/lib
59        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxmlrpc*.{a,so*} $(1)/usr/lib/
60        $(INSTALL_DIR) $(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        $(INSTALL_DIR) $(2)/bin
65        ln -sf $(STAGING_DIR)/usr/bin/xmlrpc-c-config $(2)/bin/
66endef
67
68define Package/xmlrpc-c/install
69        $(INSTALL_DIR) $(1)/usr/lib
70        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxmlrpc*.so* $(1)/usr/lib/
71endef
72
73$(eval $(call BuildPackage,xmlrpc-c))
Note: See TracBrowser for help on using the repository browser.