Mercurial > mxe-octave
view src/libxml2.mk @ 7106:47ac621e632f release
append our octaverc file to existing site rcfile
* binary-dist-rules.mk (copy-dist-files): Append octaverc to existing
file instead of overwriting.
* octaverc: Note that these commands come from MXE Octave.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 13 Mar 2024 12:16:26 -0400 |
parents | 424c35c8273b |
children | cb0bb3d5bad8 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := libxml2 $(PKG)_IGNORE := $(PKG)_VERSION := 2.12.5 $(PKG)_CHECKSUM := 951411e915b9955c31849503e1d9000c99533000 $(PKG)_SUBDIR := libxml2-v$($(PKG)_VERSION) $(PKG)_FILE := libxml2-v$($(PKG)_VERSION).tar.gz $(PKG)_URL := https://gitlab.gnome.org/GNOME/$(PKG)/-/archive/v$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_DEPS := zlib libiconv xz ifneq ($(MXE_SYSTEM),msvc) $(PKG)_DEPS := xz endif ifneq ($(MXE_SYSTEM),linux) $(PKG)_CONFIGURE_OPTIONS := ac_cv_search_iconv=-liconv endif define $(PKG)_UPDATE $(WGET) -q -O- https://gitlab.gnome.org/GNOME/libxml2/tags | \ $(SED) -n 's|.*/tags/v\([^"]*\).*|\1|p' | grep -v 'rc' | $(SORT) -V | \ tail -1 endef define $(PKG)_BUILD #$(SED) -i 's,`uname`,MinGW,g' '$(1)/xml2-config.in' cd '$(1)' && ./autogen.sh \ $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ $(ENABLE_SHARED_OR_STATIC) \ $($(PKG)_CONFIGURE_OPTIONS) \ --without-debug \ --prefix='$(HOST_PREFIX)' \ --with-zlib='$(HOST_PREFIX)' \ --without-python \ --without-threads && $(CONFIGURE_POST_HOOK) $(MAKE) -C '$(1)' -j '$(JOBS)' noinst_PROGRAMS= $(MAKE) -C '$(1)' -j 1 install noinst_PROGRAMS= DESTDIR='$(3)' if [ "$(ENABLE_DEP_DOCS)" == "no" ]; then \ rm -rf "$(3)$(HOST_PREFIX)/share/gtk-doc"; \ rm -rf "$(3)$(HOST_PREFIX)/share/doc/$($(PKG)_SUBDIR)"; \ rm -rf "$(3)$(HOST_PREFIX)/share/doc/$(PKG)"; \ fi endef