fix ssmtp compile
[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 TARGET_CFLAGS += $(FPIC)
38
39 CONFIGURE_ARGS += \
40 --enable-shared \
41 --enable-static \
42 --without-c14n \
43 --without-catalog \
44 --without-debug \
45 --without-docbook \
46 --with-html \
47 --without-ftp \
48 --without-http \
49 --without-iconv \
50 --without-iso8859x \
51 --without-legacy \
52 --with-output \
53 --without-pattern \
54 --without-push \
55 --without-python \
56 --with-reader \
57 --without-readline \
58 --without-regexps \
59 --with-sax1 \
60 --with-schemas \
61 --with-threads \
62 --with-tree \
63 --with-valid \
64 --with-writer \
65 --with-xinclude \
66 --with-xpath \
67 --with-xptr \
68 --with-zlib \
69
70
71 define Build/Compile
72 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
73 endef
74
75 define Build/InstallDev
76 mkdir -p $(1)/usr/bin
77 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xml2-config $(1)/usr/bin/
78 mkdir -p $(1)/usr/include
79 $(CP) $(PKG_INSTALL_DIR)/usr/include/libxml2 $(1)/usr/include/
80 mkdir -p $(1)/usr/lib
81 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.{a,so*} $(1)/usr/lib/
82 mkdir -p $(1)/usr/lib/pkgconfig
83 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxml-2.0.pc $(1)/usr/lib/pkgconfig/
84 $(SED) 's,-I$$$${includedir}/libxml2,-I$(1)/usr/include/libxml2,g' $(1)/usr/bin/xml2-config
85 $(SED) 's,-L$$$${libdir},,g' $(1)/usr/bin/xml2-config
86 endef
87
88 define Package/libxml2/install
89 $(INSTALL_DIR) $(1)/usr/lib
90 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.so.* $(1)/usr/lib/
91 endef
92
93
94 $(eval $(call BuildPackage,libxml2))
95