You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.2 KiB
33 lines
1.2 KiB
# This file is part of MXE. See LICENSE.md for licensing information.
|
|
|
|
PKG := libxml2
|
|
$(PKG)_WEBSITE := http://www.xmlsoft.org/
|
|
$(PKG)_IGNORE :=
|
|
$(PKG)_VERSION := 2.9.4
|
|
$(PKG)_CHECKSUM := ffb911191e509b966deb55de705387f14156e1a56b21824357cdf0053233633c
|
|
$(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 := cc xz zlib
|
|
|
|
define $(PKG)_UPDATE
|
|
$(WGET) -q -O- 'https://git.gnome.org/browse/libxml2/refs/tags' | \
|
|
grep '<a href=' | \
|
|
$(SED) -n "s,.*<a href='[^']*/tag/?h=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) \
|
|
--with-zlib='$(PREFIX)/$(TARGET)/lib' \
|
|
--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
|