set dhcp lease file in dnsmasq.conf instead of /tmp/dhcp.leases
[openwrt.git] / openwrt / package / libxml2 / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=libxml2
6 PKG_VERSION:=2.6.20
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=8f0b3ce721bda11401e656b90ba4e78c
9
10 PKG_SOURCE_URL:=http://xmlsoft.org/sources/ \
11 ftp://fr.rpmfind.net/pub/libxml/
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 include $(TOPDIR)/package/rules.mk
19
20 $(eval $(call PKG_template,LIBXML2,libxml2,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(strip $(TARGET_CFLAGS))" \
26 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
27 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 $(DISABLE_LARGEFILE) \
47 $(DISABLE_NLS) \
48 --enable-shared \
49 --enable-static \
50 --disable-rpath \
51 --with-gnu-ld \
52 --without-c14n \
53 --without-catalog \
54 --without-debug \
55 --without-docbook \
56 --with-html \
57 --without-ftp \
58 --without-http \
59 --without-iconv \
60 --without-iso8859x \
61 --without-legacy \
62 --with-output \
63 --without-pattern \
64 --without-push \
65 --without-python \
66 --with-reader \
67 --without-readline \
68 --without-regexps \
69 --with-sax1 \
70 --with-schemas \
71 --with-threads \
72 --with-tree \
73 --with-valid \
74 --with-writer \
75 --with-xinclude \
76 --with-xpath \
77 --with-xptr \
78 --with-zlib \
79 );
80 touch $@
81
82 $(PKG_BUILD_DIR)/.built:
83 rm -rf $(PKG_INSTALL_DIR)
84 mkdir -p $(PKG_INSTALL_DIR)
85 $(MAKE) -C $(PKG_BUILD_DIR) \
86 DESTDIR="$(PKG_INSTALL_DIR)" \
87 all install
88 touch $@
89
90 $(IPKG_LIBXML2):
91 install -m0755 -d $(IDIR_LIBXML2)/usr/lib
92 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libxml2.so.* $(IDIR_LIBXML2)/usr/lib/
93 $(RSTRIP) $(IDIR_LIBXML2)
94 $(IPKG_BUILD) $(IDIR_LIBXML2) $(PACKAGE_DIR)
95
96 $(STAGING_DIR)/usr/lib/libxml2.so: $(PKG_BUILD_DIR)/.built
97 mkdir -p $(STAGING_DIR)/usr/bin
98 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/xml2-config $(STAGING_DIR)/usr/bin/
99 mkdir -p $(STAGING_DIR)/usr/include
100 cp -fpR $(PKG_INSTALL_DIR)/usr/include/libxml2 $(STAGING_DIR)/usr/include/
101 mkdir -p $(STAGING_DIR)/usr/lib
102 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libxml2.{a,so*} $(STAGING_DIR)/usr/lib/
103 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
104 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxml-2.0.pc $(STAGING_DIR)/usr/lib/pkgconfig/
105 $(SED) 's,-I$${includedir}/libxml2,,g' $(STAGING_DIR)/usr/bin/xml2-config
106 $(SED) 's,-I$${includedir},,g' $(STAGING_DIR)/usr/bin/xml2-config
107 $(SED) 's,-I$(STAGING_DIR)/usr/include,,g' $(STAGING_DIR)/usr/bin/xml2-config
108 $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/bin/xml2-config
109 $(SED) 's,-L$(STAGING_DIR)/usr/lib,,g' $(STAGING_DIR)/usr/bin/xml2-config
110 touch $@
111
112 install-dev: $(STAGING_DIR)/usr/lib/libxml2.so
113
114 uninstall-dev:
115 rm -rf \
116 $(STAGING_DIR)/usr/bin/xml2-config \
117 $(STAGING_DIR)/usr/include/libxml2 \
118 $(STAGING_DIR)/usr/lib/libxml2.{a,so*} \
119 $(STAGING_DIR)/usr/lib/pkgconfig/libxml-2.0.pc \
120
121 compile-targets: install-dev
122 clean-targets: uninstall-dev
123
124 mostlyclean:
125 make -C $(PKG_BUILD_DIR) clean
126 rm $(PKG_BUILD_DIR)/.built
127
This page took 0.053759 seconds and 5 git commands to generate.