2 # Copyright (C) 2006-2014 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
:=9c0cfef285d5c4a5c80d00904ddab380
21 PKG_LICENSE_FILES
:=COPYING
23 PKG_MAINTAINER
:=Michael Heimpold
<mhei@heimpold.de
>
29 include $(INCLUDE_DIR
)/package.mk
31 define Package
/libxml2
34 TITLE
:=Gnome XML library
35 URL
:=http
://xmlsoft.org
/
36 DEPENDS
:=+libpthread
+zlib
39 define Package
/libxml2
/description
40 A library for manipulating XML and HTML resources.
43 TARGET_CFLAGS
+= $(FPIC
)
77 define Build
/InstallDev
78 $(INSTALL_DIR
) $(2)/bin
79 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/xml2-config
$(2)/bin
/
80 $(SED
) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(2)/bin
/xml2-config
82 $(INSTALL_DIR
) $(1)/usr
/include
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libxml2
$(1)/usr
/include/
85 $(INSTALL_DIR
) $(1)/usr
/lib
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxml2.
{la
,a
,so
*} $(1)/usr
/lib
/
88 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
89 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxml-2.0.
pc $(1)/usr
/lib
/pkgconfig
/
91 $(INSTALL_DIR
) $(2)/share
/aclocal
/
92 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* $(2)/share
/aclocal
95 define Package
/libxml2
/install
96 $(INSTALL_DIR
) $(1)/usr
/lib
97 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxml2.so
* $(1)/usr
/lib
/
100 $(eval
$(call BuildPackage
,libxml2
))