2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://gd.tuwien.ac.at/languages/libxml/ \
16 http://xmlsoft.org/sources/ \
17 ftp://fr.rpmfind.net/pub/libxml/
18 PKG_MD5SUM:=8127a65e8c3b08856093099b52599c86
24 include $(INCLUDE_DIR)/package.mk
26 define Package/libxml2
29 TITLE:=Gnome XML library
30 URL:=http://xmlsoft.org/
31 DEPENDS:=+libpthread +zlib
34 define Package/libxml2/description
35 A library for manipulating XML and HTML resources.
38 TARGET_CFLAGS += $(FPIC)
71 define Build/InstallDev
72 $(INSTALL_DIR) $(2)/bin
73 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xml2-config $(2)/bin/
74 $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(2)/bin/xml2-config
76 $(INSTALL_DIR) $(1)/usr/include
78 $(PKG_INSTALL_DIR)/usr/include/libxml2 \
81 $(INSTALL_DIR) $(1)/usr/lib
83 $(PKG_INSTALL_DIR)/usr/lib/libxml2.{la,a,so*} \
86 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
88 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxml-2.0.pc \
89 $(1)/usr/lib/pkgconfig/
91 $(INSTALL_DIR) $(2)/share/aclocal/
93 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
97 define Package/libxml2/install
98 $(INSTALL_DIR) $(1)/usr/lib
100 $(PKG_INSTALL_DIR)/usr/lib/libxml2.so.* \
105 $(eval $(call BuildPackage,libxml2))