blob: 820f8a508497c443d943488808f48326c09ed8d8 (
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
32
|
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# libxml2
PKG := libxml2
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.7.6
$(PKG)_CHECKSUM := b0f6bf8408e759ac4b8b9650005ee8adea911e1d
$(PKG)_SUBDIR := libxml2-$($(PKG)_VERSION)
$(PKG)_FILE := libxml2-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.xmlsoft.org/
$(PKG)_URL := ftp://xmlsoft.org/libxml2/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://git.gnome.org/cgit/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 \
--host='$(TARGET)' \
--disable-shared \
--without-debug \
--prefix='$(PREFIX)/$(TARGET)' \
--without-python
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef
|