2012-03-28 14:46:58 +01:00
|
|
|
# This file is part of MXE.
|
2012-03-29 11:14:15 +01:00
|
|
|
# See index.html for further information.
|
2008-11-08 19:05:41 +00:00
|
|
|
|
2009-08-21 05:58:11 +01:00
|
|
|
# libxml2
|
2009-04-05 13:00:17 +01:00
|
|
|
PKG := libxml2
|
2009-09-20 13:36:46 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2010-11-28 18:07:21 +00:00
|
|
|
$(PKG)_CHECKSUM := 859dd535edbb851cc15b64740ee06551a7a17d40
|
2009-04-05 13:00:17 +01:00
|
|
|
$(PKG)_SUBDIR := libxml2-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := libxml2-$($(PKG)_VERSION).tar.gz
|
|
|
|
$(PKG)_URL := ftp://xmlsoft.org/libxml2/$($(PKG)_FILE)
|
|
|
|
$(PKG)_DEPS := gcc
|
2008-11-08 19:05:41 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2010-04-21 00:15:03 +01:00
|
|
|
wget -q -O- 'http://git.gnome.org/browse/libxml2/refs/tags' | \
|
2009-10-21 12:24:44 +01:00
|
|
|
grep '<a href=' | \
|
|
|
|
$(SED) -n "s,.*<a href='[^']*/tag/?id=v\\([0-9][^']*\\)'.*,\\1,p" | \
|
2008-11-08 19:05:41 +00:00
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2010-02-16 03:12:53 +00:00
|
|
|
$(SED) -i 's,`uname`,MinGW,g' '$(1)/xml2-config.in'
|
2008-11-08 19:05:41 +00:00
|
|
|
cd '$(1)' && ./configure \
|
|
|
|
--host='$(TARGET)' \
|
|
|
|
--disable-shared \
|
|
|
|
--without-debug \
|
|
|
|
--prefix='$(PREFIX)/$(TARGET)' \
|
2010-05-02 16:58:37 +01:00
|
|
|
--without-python \
|
|
|
|
--without-threads
|
2009-11-10 13:13:55 +00:00
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
|
|
|
|
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
|
2008-11-08 19:05:41 +00:00
|
|
|
endef
|