#
-# Copyright (C) 2007-2010 OpenWrt.org
+# Copyright (C) 2007-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
include $(TOPDIR)/rules.mk
PKG_NAME:=xmlrpc-c
-PKG_REV:=2080
+PKG_REV:=2233
PKG_VERSION:=advanced_r$(PKG_REV)
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
-define Package/xmlrpc-c-common
+define Package/xmlrpc-c/Default
SECTION:=libs
CATEGORY:=Libraries
- TITLE:=XML-RPC library - common
+ TITLE:=XML-RPC library
URL:=http://xmlrpc-c.sourceforge.net/
endef
+define Package/xmlrpc-c-common
+ $(call Package/xmlrpc-c/Default)
+ TITLE+= - common
+endef
+
define Package/xmlrpc-c-internal
- SECTION:=libs
- CATEGORY:=Libraries
- TITLE:=XML-RPC library - (ueses internal expat variant)
- URL:=http://xmlrpc-c.sourceforge.net/
+ $(call Package/xmlrpc-c/Default)
+ TITLE+= - (uses internal expat variant)
DEPENDS:=+xmlrpc-c-common
# PROVIDES:=xmlrpc-c
VARIANT:=internal
endef
define Package/xmlrpc-c
- SECTION:=libs
- CATEGORY:=Libraries
- TITLE:=XML-RPC library
- URL:=http://xmlrpc-c.sourceforge.net/
+ $(call Package/xmlrpc-c/Default)
DEPENDS:=+xmlrpc-c-internal
endef
define Package/xmlrpc-c-libxml2
- SECTION:=libs
- CATEGORY:=Libraries
- TITLE:=XML-RPC library - (uses libxml2)
- URL:=http://xmlrpc-c.sourceforge.net/
+ $(call Package/xmlrpc-c/Default)
+ TITLE+= - (uses libxml2)
DEPENDS:=+xmlrpc-c-common +libxml2 @BROKEN
# PROVIDES:=xmlrpc-c
VARIANT:=libxml2
endef
define Package/xmlrpc-c-client
- SECTION:=libs
- CATEGORY:=Libraries
- TITLE:=XML-RPC library - client
- URL:=http://xmlrpc-c.sourceforge.net/
+ $(call Package/xmlrpc-c/Default)
+ TITLE+= - client
DEPENDS:=+xmlrpc-c +libcurl
endef
define Package/xmlrpc-c-server
- SECTION:=libs
- CATEGORY:=Libraries
- TITLE:=XML-RPC library - server
- URL:=http://xmlrpc-c.sourceforge.net/
+ $(call Package/xmlrpc-c/Default)
+ TITLE+= - server
DEPENDS:=+xmlrpc-c
endef
define Package/xmlrpc-c-abyss
- SECTION:=libs
- CATEGORY:=Libraries
- TITLE:=XML-RPC library - abyss
- URL:=http://xmlrpc-c.sourceforge.net/
+ $(call Package/xmlrpc-c/Default)
+ TITLE+= - abyss
DEPENDS:=+xmlrpc-c-common
endef
define Package/xmlrpc-c-server-abyss
- SECTION:=libs
- CATEGORY:=Libraries
- TITLE:=XML-RPC library - abyss server
- URL:=http://xmlrpc-c.sourceforge.net/
+ $(call Package/xmlrpc-c/Default)
+ TITLE+= - abyss server
DEPENDS:=+xmlrpc-c-server +xmlrpc-c-abyss
endef
--disable-libwww-client \
--enable-abyss-server \
--disable-cplusplus \
- --disable-static \
--disable-abyss-threads \
--disable-cgi-server
$(1)/usr/lib \
$(1)/usr/bin \
$(2)/bin
-
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/* \
$(1)/usr/include/
-
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libxmlrpc*.{a,so*} \
$(1)/usr/lib/
-
$(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/bin/xmlrpc-c-config \
$(2)/bin/
-
$(SED) \
's,HEADERINST_DIR="/usr/include",HEADERINST_DIR="$(STAGING_DIR)/usr/include",g' \
$(2)/bin/xmlrpc-c-config
-
$(SED) \
's,LIBINST_DIR="/usr/lib",LIBINST_DIR="$(STAGING_DIR)/usr/lib",g' \
$(2)/bin/xmlrpc-c-config
define Package/xmlrpc-c-libxml2/install
$(INSTALL_DIR) \
$(1)/usr/lib
-
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libxmlrpc.so* \
$(1)/usr/lib/
define Package/xmlrpc-c-internal/install
$(INSTALL_DIR) \
$(1)/usr/lib
-
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libxmlrpc.so* \
$(1)/usr/lib/
-
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libxmlrpc_xmltok.so* \
$(1)/usr/lib/
-
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libxmlrpc_xmlparse.so* \
$(1)/usr/lib/
define Package/xmlrpc-c-server/install
$(INSTALL_DIR) \
$(1)/usr/lib
-
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libxmlrpc_server.so* \
$(1)/usr/lib/
define Package/xmlrpc-c-abyss/install
$(INSTALL_DIR) \
$(1)/usr/lib
-
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libxmlrpc_abyss.so* \
$(1)/usr/lib/
define Package/xmlrpc-c-server-abyss/install
$(INSTALL_DIR) \
$(1)/usr/lib
-
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libxmlrpc_server_abyss.so* \
$(1)/usr/lib/
define Package/xmlrpc-c-client/install
$(INSTALL_DIR) \
$(1)/usr/lib
-
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libxmlrpc_client* \
$(1)/usr/lib/
define Package/xmlrpc-c-common/install
$(INSTALL_DIR) \
$(1)/usr/lib
-
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libxmlrpc_util.so* \
$(1)/usr/lib/
true
endef
-
$(eval $(call BuildPackage,xmlrpc-c))
$(eval $(call BuildPackage,xmlrpc-c-common))
$(eval $(call BuildPackage,xmlrpc-c-libxml2))