move curl back to packages
[openwrt/svn-archive/archive.git] / libs / libxml2 / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libxml2
12 PKG_VERSION:=2.6.32
13 PKG_RELEASE:=1
14
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
19
20 PKG_FIXUP = libtool
21
22 include $(INCLUDE_DIR)/package.mk
23
24
25 define Package/libxml2
26 SECTION:=libs
27 CATEGORY:=Libraries
28 DEPENDS:=+libpthread +zlib
29 TITLE:=Gnome XML library
30 URL:=http://xmlsoft.org/
31 endef
32
33 define Package/libxml2/description
34 A library for manipulating XML and HTML resources.
35 endef
36
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
70 define Build/Compile
71 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
72 endef
73
74 define Build/InstallDev
75 mkdir -p $(1)/usr/bin
76 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xml2-config $(1)/usr/bin/
77 mkdir -p $(1)/usr/include
78 $(CP) $(PKG_INSTALL_DIR)/usr/include/libxml2 $(1)/usr/include/
79 mkdir -p $(1)/usr/lib
80 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.{a,so*} $(1)/usr/lib/
81 mkdir -p $(1)/usr/lib/pkgconfig
82 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxml-2.0.pc $(1)/usr/lib/pkgconfig/
83 $(SED) 's,-I$$$${includedir}/libxml2,-I$(1)/usr/include/libxml2,g' $(1)/usr/bin/xml2-config
84 $(SED) 's,-L$$$${libdir},,g' $(1)/usr/bin/xml2-config
85 endef
86
87 define Package/libxml2/install
88 $(INSTALL_DIR) $(1)/usr/lib
89 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.so.* $(1)/usr/lib/
90 endef
91
92
93 $(eval $(call BuildPackage,libxml2))
94