2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://xmlsoft.org
/sources
/ \
17 ftp
://fr.rpmfind.net
/pub
/libxml
/
18 PKG_MD5SUM
:=dc43ff7ae6aded45f578c87b7b0c8766
21 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libxml2
28 DEPENDS
:=+libpthread
+zlib
29 TITLE
:=Gnome XML library
30 URL
:=http
://xmlsoft.org
/
33 define Package
/libxml2
/description
34 A library for manipulating XML and HTML resources.
37 TARGET_CFLAGS
+= $(FPIC
)
70 define Build
/InstallDev
71 $(INSTALL_DIR
) $(2)/bin
72 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/xml2-config
$(2)/bin
/
73 $(SED
) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(2)/bin
/xml2-config
75 $(INSTALL_DIR
) $(1)/usr
/include
77 $(PKG_INSTALL_DIR
)/usr
/include/libxml2 \
80 $(INSTALL_DIR
) $(1)/usr
/lib
82 $(PKG_INSTALL_DIR
)/usr
/lib
/libxml2.
{la
,so
*} \
85 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
87 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxml-2.0.
pc \
88 $(1)/usr
/lib
/pkgconfig
/
90 $(INSTALL_DIR
) $(2)/share
/aclocal
/
92 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
96 define Package
/libxml2
/install
97 $(INSTALL_DIR
) $(1)/usr
/lib
99 $(PKG_INSTALL_DIR
)/usr
/lib
/libxml2.so.
* \
104 $(eval
$(call BuildPackage
,libxml2
))