[packages] sshtunnel: Add SSH VPN support
[packages.git] / libs / libxml2 / Makefile
1 #
2 # Copyright (C) 2006-2012 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.8
12 PKG_RELEASE:=2
13
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:=8127a65e8c3b08856093099b52599c86
19
20 PKG_FIXUP:=autoreconf
21 PKG_INSTALL:=1
22 PKG_BUILD_PARALLEL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libxml2
27   SECTION:=libs
28   CATEGORY:=Libraries
29   TITLE:=Gnome XML library
30   URL:=http://xmlsoft.org/
31   DEPENDS:=+libpthread +zlib
32 endef
33
34 define Package/libxml2/description
35   A library for manipulating XML and HTML resources.
36 endef
37
38 TARGET_CFLAGS += $(FPIC)
39
40 CONFIGURE_ARGS += \
41         --enable-shared \
42         --enable-static \
43         --with-c14n \
44         --without-catalog \
45         --with-debug \
46         --without-docbook \
47         --with-html \
48         --without-ftp \
49         --without-http \
50         --without-iconv \
51         --without-iso8859x \
52         --without-legacy \
53         --with-output \
54         --without-pattern \
55         --without-push \
56         --without-python \
57         --with-reader \
58         --without-readline \
59         --without-regexps \
60         --with-sax1 \
61         --with-schemas \
62         --with-threads \
63         --with-tree \
64         --with-valid \
65         --with-writer \
66         --with-xinclude \
67         --with-xpath \
68         --with-xptr \
69         --with-zlib \
70
71 define Build/InstallDev
72         $(INSTALL_DIR) $(2)/bin
73         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xml2-config $(2)/bin/
74         $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(2)/bin/xml2-config
75
76         $(INSTALL_DIR) $(1)/usr/include
77         $(CP) \
78                 $(PKG_INSTALL_DIR)/usr/include/libxml2 \
79                 $(1)/usr/include/
80
81         $(INSTALL_DIR) $(1)/usr/lib
82         $(CP) \
83                 $(PKG_INSTALL_DIR)/usr/lib/libxml2.{la,a,so*} \
84                 $(1)/usr/lib/
85
86         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
87         $(INSTALL_DATA) \
88                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxml-2.0.pc \
89                 $(1)/usr/lib/pkgconfig/
90
91         $(INSTALL_DIR) $(2)/share/aclocal/
92         $(INSTALL_DATA) \
93                 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
94                 $(2)/share/aclocal
95 endef
96
97 define Package/libxml2/install
98         $(INSTALL_DIR) $(1)/usr/lib
99         $(CP) \
100                 $(PKG_INSTALL_DIR)/usr/lib/libxml2.so.* \
101                 $(1)/usr/lib/
102 endef
103
104
105 $(eval $(call BuildPackage,libxml2))