2 # Copyright (C) 2006 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
:=2621d322c16f0257e30f0ff2b13384de
22 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
)
72 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" all install
75 define Build
/InstallDev
77 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/xml2-config
$(1)/usr
/bin
/
78 mkdir
-p
$(1)/usr
/include
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libxml2
$(1)/usr
/include/
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxml2.
{a
,so
*} $(1)/usr
/lib
/
82 mkdir
-p
$(1)/usr
/lib
/pkgconfig
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxml-2.0.
pc $(1)/usr
/lib
/pkgconfig
/
84 $(SED
) 's,-I$$$${includedir}/libxml2,-I$(1)/usr/include/libxml2,g' $(1)/usr
/bin
/xml2-config
85 $(SED
) 's,-L$$$${libdir},,g' $(1)/usr
/bin
/xml2-config
88 define Package
/libxml2
/install
89 $(INSTALL_DIR
) $(1)/usr
/lib
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxml2.so.
* $(1)/usr
/lib
/
94 $(eval
$(call BuildPackage
,libxml2
))