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
:=8f0b3ce721bda11401e656b90ba4e78c
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/libxml2
29 DEPENDS
:=+libpthread
+zlib
30 TITLE
:=Gnome XML library
32 A library for manipulating XML and HTML resources.
33 URL
:=http
://xmlsoft.org
/
36 define Build
/Configure
37 $(call Build
/Configure
/Default
, \
71 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
72 DESTDIR
="$(PKG_INSTALL_DIR)" \
76 define Build
/InstallDev
77 mkdir
-p
$(STAGING_DIR
)/usr
/bin
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/xml2-config
$(STAGING_DIR
)/usr
/bin
/
79 mkdir
-p
$(STAGING_DIR
)/usr
/include
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libxml2
$(STAGING_DIR
)/usr
/include/
81 mkdir
-p
$(STAGING_DIR
)/usr
/lib
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxml2.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
83 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
84 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxml-2.0.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
85 $(SED
) 's,-I$$$${includedir}/libxml2,,g' $(STAGING_DIR
)/usr
/bin
/xml2-config
86 $(SED
) 's,-I$$$${includedir},,g' $(STAGING_DIR
)/usr
/bin
/xml2-config
87 $(SED
) 's,-I$(STAGING_DIR)/usr/include,,g' $(STAGING_DIR
)/usr
/bin
/xml2-config
88 $(SED
) 's,-L$$$${libdir},,g' $(STAGING_DIR
)/usr
/bin
/xml2-config
89 $(SED
) 's,-L$(STAGING_DIR)/usr/lib,,g' $(STAGING_DIR
)/usr
/bin
/xml2-config
90 $(SED
) 's,-I$$$${includedir}/libxml2,,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/libxml-2.0.
pc
91 $(SED
) 's,-L$$$${libdir},,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/libxml-2.0.
pc
94 define Build
/UninstallDev
96 $(STAGING_DIR
)/usr
/bin
/xml2-config \
97 $(STAGING_DIR
)/usr
/include/libxml2 \
98 $(STAGING_DIR
)/usr
/lib
/libxml2.
{a
,so
*} \
99 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/libxml-2.0.
pc
102 define Package
/libxml2
/install
103 $(INSTALL_DIR
) $(1)/usr
/lib
104 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxml2.so.
* $(1)/usr
/lib
/
107 $(eval
$(call BuildPackage
,libxml2
))