blob: b9cc8bbdf1ba513afeda5d83d16c8cc323e6e0b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# This file is part of MXE.
# See index.html for further information.
PKG := libxml2
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.9.2
$(PKG)_CHECKSUM := 5178c30b151d044aefb1b08bf54c3003a0ac55c59c866763997529d60770d5bc
$(PKG)_SUBDIR := libxml2-$($(PKG)_VERSION)
$(PKG)_FILE := libxml2-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://xmlsoft.org/sources/$($(PKG)_FILE)
$(PKG)_URL_2 := ftp://xmlsoft.org/libxml2/$($(PKG)_FILE)
$(PKG)_DEPS := gcc xz
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://git.gnome.org/browse/libxml2/refs/tags' | \
grep '<a href=' | \
$(SED) -n "s,.*<a href='[^']*/tag/?id=v\\([0-9][^']*\\)'.*,\\1,p" | \
head -1
endef
define $(PKG)_BUILD
$(SED) -i 's,`uname`,MinGW,g' '$(1)/xml2-config.in'
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--without-debug \
--without-python \
--without-threads
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
ln -sf '$(PREFIX)/$(TARGET)/bin/xml2-config' '$(PREFIX)/bin/$(TARGET)-xml2-config'
endef
|