[packages] libxml2: update to v2.7.5
[openwrt/svn-archive/archive.git] / libs / libxml2 / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libxml2
11 PKG_VERSION:=2.7.5
12 PKG_RELEASE:=1
13
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:=2e29ca610579438714ebb1e4010a0ece
18
19 PKG_FIXUP:=libtool
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libxml2
25 SECTION:=libs
26 CATEGORY:=Libraries
27 DEPENDS:=+libpthread +zlib
28 TITLE:=Gnome XML library
29 URL:=http://xmlsoft.org/
30 endef
31
32 define Package/libxml2/description
33 A library for manipulating XML and HTML resources.
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 CONFIGURE_ARGS += \
39 --enable-shared \
40 --enable-static \
41 --without-c14n \
42 --without-catalog \
43 --without-debug \
44 --without-docbook \
45 --with-html \
46 --without-ftp \
47 --without-http \
48 --without-iconv \
49 --without-iso8859x \
50 --without-legacy \
51 --with-output \
52 --without-pattern \
53 --without-push \
54 --without-python \
55 --with-reader \
56 --without-readline \
57 --without-regexps \
58 --with-sax1 \
59 --with-schemas \
60 --with-threads \
61 --with-tree \
62 --with-valid \
63 --with-writer \
64 --with-xinclude \
65 --with-xpath \
66 --with-xptr \
67 --with-zlib \
68
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
73
74 $(INSTALL_DIR) $(1)/usr/include
75 $(CP) \
76 $(PKG_INSTALL_DIR)/usr/include/libxml2 \
77 $(1)/usr/include/
78
79 $(INSTALL_DIR) $(1)/usr/lib
80 $(CP) \
81 $(PKG_INSTALL_DIR)/usr/lib/libxml2.{la,a,so*} \
82 $(1)/usr/lib/
83
84 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
85 $(INSTALL_DATA) \
86 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxml-2.0.pc \
87 $(1)/usr/lib/pkgconfig/
88
89 $(INSTALL_DIR) $(2)/share/aclocal/
90 $(INSTALL_DATA) \
91 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
92 $(2)/share/aclocal
93 endef
94
95 define Package/libxml2/install
96 $(INSTALL_DIR) $(1)/usr/lib
97 $(CP) \
98 $(PKG_INSTALL_DIR)/usr/lib/libxml2.so.* \
99 $(1)/usr/lib/
100 endef
101
102
103 $(eval $(call BuildPackage,libxml2))