2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2008-11-08 19:05:41 +00:00
|
|
|
|
2009-04-05 13:00:17 +01:00
|
|
|
PKG := libxml2
|
2019-09-02 21:40:09 +01:00
|
|
|
$(PKG)_WEBSITE := http://xmlsoft.org/
|
2009-09-20 13:36:46 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2019-11-03 10:04:41 +00:00
|
|
|
$(PKG)_VERSION := 2.9.10
|
|
|
|
$(PKG)_CHECKSUM := aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f
|
2009-04-05 13:00:17 +01:00
|
|
|
$(PKG)_SUBDIR := libxml2-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := libxml2-$($(PKG)_VERSION).tar.gz
|
2014-07-20 10:21:48 +01:00
|
|
|
$(PKG)_URL := http://xmlsoft.org/sources/$($(PKG)_FILE)
|
2018-11-19 21:25:29 +00:00
|
|
|
$(PKG)_URL_2 := https://ftp.osuosl.org/pub/blfs/conglomeration/libxml2/$($(PKG)_FILE)
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc xz zlib
|
2008-11-08 19:05:41 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2019-05-13 20:52:31 +01:00
|
|
|
$(WGET) -q -O- 'https://gitlab.gnome.org/GNOME/libxml2/tags' | \
|
|
|
|
$(SED) -n "s,.*<a [^>]\+>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 \
|
2013-12-15 10:18:51 +00:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
2015-12-02 09:33:51 +00:00
|
|
|
--with-zlib='$(PREFIX)/$(TARGET)/lib' \
|
2008-11-08 19:05:41 +00:00
|
|
|
--without-debug \
|
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=
|
2014-10-18 23:44:38 +01:00
|
|
|
ln -sf '$(PREFIX)/$(TARGET)/bin/xml2-config' '$(PREFIX)/bin/$(TARGET)-xml2-config'
|
2008-11-08 19:05:41 +00:00
|
|
|
endef
|