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

Last change on this file since 24636 was 24636, checked in by swalker, 5 years ago

[packages] xmlrpc-c: update to 1.24.4 (#8277), thanks sav, use PKG_INSTALL and refresh patches

File size: 2.0 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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=xmlrpc-c
11PKG_REV:=2042
12PKG_VERSION:=1.24.4_r$(PKG_REV)
13PKG_RELEASE:=1
14
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_FIXUP:=libtool
22PKG_INSTALL:=1
23
24include $(INCLUDE_DIR)/package.mk
25
26define 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
32endef
33
34define 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.
38endef
39
40CONFIGURE_ARGS+= \
41        --enable-libxml2-backend \
42        --disable-wininet-client \
43        --disable-libwww-client \
44        --disable-abyss-server \
45        --disable-cplusplus \
46        --disable-static \
47
48define 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/
61endef
62
63define Package/xmlrpc-c/install
64        $(INSTALL_DIR) $(1)/usr/lib
65        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxmlrpc*.so* $(1)/usr/lib/
66endef
67
68$(eval $(call BuildPackage,xmlrpc-c))
Note: See TracBrowser for help on using the repository browser.