contribs: libxml2: Update to 2.9.8
[vlc.git] / contrib / src / libxml2 / rules.mak
blobc4aab837ae09b75aef5ce20d871f330f0020b409
1 # libxml2
3 LIBXML2_VERSION := 2.9.8
4 LIBXML2_URL := http://xmlsoft.org/sources/libxml2-$(LIBXML2_VERSION).tar.gz
6 PKGS += libxml2
7 ifeq ($(call need_pkg,"libxml-2.0"),)
8 PKGS_FOUND += libxml2
9 endif
11 $(TARBALLS)/libxml2-$(LIBXML2_VERSION).tar.gz:
12 $(call download_pkg,$(LIBXML2_URL),libxml2)
14 .sum-libxml2: libxml2-$(LIBXML2_VERSION).tar.gz
16 XMLCONF = --with-minimal \
17 --with-catalog \
18 --with-reader \
19 --with-tree \
20 --with-push \
21 --with-xptr \
22 --with-valid \
23 --with-xpath \
24 --with-xinclude \
25 --with-sax1 \
26 --without-zlib \
27 --without-iconv \
28 --without-http \
29 --without-ftp \
30 --without-docbook \
31 --without-regexps \
32 --without-python
34 ifdef WITH_OPTIMIZATION
35 XMLCONF+= --without-debug
36 endif
38 libxml2: libxml2-$(LIBXML2_VERSION).tar.gz .sum-libxml2
39 $(UNPACK)
40 $(APPLY) $(SRC)/libxml2/win32.patch
41 $(APPLY) $(SRC)/libxml2/bins.patch
42 $(APPLY) $(SRC)/libxml2/pthread.patch
43 ifdef HAVE_WINSTORE
44 $(APPLY) $(SRC)/libxml2/nogetcwd.patch
45 endif
46 $(call pkg_static,"libxml-2.0.pc.in")
47 $(MOVE)
49 .libxml2: libxml2
50 $(RECONF)
51 cd $< && $(HOSTVARS) ./configure $(HOSTCONF) CFLAGS="$(CFLAGS) -DLIBXML_STATIC" $(XMLCONF)
52 cd $< && $(MAKE) install
53 touch $@