2 # Copyright (C) 2006-2016 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:=ae249165c173b1ff386ee8ad676815f5
21 PKG_LICENSE_FILES:=COPYING
23 PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
29 include $(INCLUDE_DIR)/host-build.mk
30 include $(INCLUDE_DIR)/package.mk
32 define Package/libxml2
35 TITLE:=Gnome XML library
36 URL:=http://xmlsoft.org/
37 DEPENDS:=+libpthread +zlib
40 define Package/libxml2/description
41 A library for manipulating XML and HTML resources.
44 TARGET_CFLAGS += $(FPIC)
75 --with-zlib=$(STAGING_DIR)/usr \
78 HOST_CONFIGURE_ARGS += \
110 define Build/InstallDev
111 $(INSTALL_DIR) $(2)/bin
112 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xml2-config $(2)/bin/
113 $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(2)/bin/xml2-config
115 $(INSTALL_DIR) $(1)/usr/include
116 $(CP) $(PKG_INSTALL_DIR)/usr/include/libxml2 $(1)/usr/include/
118 $(INSTALL_DIR) $(1)/usr/lib
119 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.{la,a,so*} $(1)/usr/lib/
121 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
122 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxml-2.0.pc $(1)/usr/lib/pkgconfig/
124 $(INSTALL_DIR) $(2)/share/aclocal/
125 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(2)/share/aclocal
128 define Package/libxml2/install
129 $(INSTALL_DIR) $(1)/usr/lib
130 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.so* $(1)/usr/lib/
134 $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(HOST_BUILD_DIR)/xml2-config
135 $(call Host/Install/Default)
138 $(eval $(call HostBuild))
139 $(eval $(call BuildPackage,libxml2))