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
://xmlsoft.org
/sources
/ \
16 ftp
://fr.rpmfind.net
/pub
/libxml
/
17 PKG_MD5SUM
:=9abc9959823ca9ff904f1fbcf21df066
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/libxml2
27 TITLE
:=Gnome XML library
28 URL
:=http
://xmlsoft.org
/
29 DEPENDS
:=+libpthread
+zlib
32 define Package
/libxml2
/description
33 A library for manipulating XML and HTML resources.
36 TARGET_CFLAGS
+= $(FPIC
)
69 define Build
/InstallDev
70 $(INSTALL_DIR
) $(2)/bin
71 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/xml2-config
$(2)/bin
/
72 $(SED
) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(2)/bin
/xml2-config
74 $(INSTALL_DIR
) $(1)/usr
/include
76 $(PKG_INSTALL_DIR
)/usr
/include/libxml2 \
79 $(INSTALL_DIR
) $(1)/usr
/lib
81 $(PKG_INSTALL_DIR
)/usr
/lib
/libxml2.
{la
,a
,so
*} \
84 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
86 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxml-2.0.
pc \
87 $(1)/usr
/lib
/pkgconfig
/
89 $(INSTALL_DIR
) $(2)/share
/aclocal
/
91 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
95 define Package
/libxml2
/install
96 $(INSTALL_DIR
) $(1)/usr
/lib
98 $(PKG_INSTALL_DIR
)/usr
/lib
/libxml2.so.
* \
103 $(eval
$(call BuildPackage
,libxml2
))