Mercurial > mxe-octave
view src/pcre2.mk @ 6346:de41362b906e release
Added tag octave-release-7.2.0 for changeset ecc4c238a1ab
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 28 Jul 2022 10:15:00 -0400 |
parents | 7c12df833a01 |
children | bee5e6740778 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := pcre2 $(PKG)_IGNORE := $(PKG)_VERSION := 10.39 $(PKG)_CHECKSUM := 9cf3ec88cd68dc76354eb0568738c47b57377042 $(PKG)_SUBDIR := pcre2-$($(PKG)_VERSION) $(PKG)_FILE := pcre2-$($(PKG)_VERSION).tar.bz2 $(PKG)_URL := https://github.com/PhilipHazel/$(PKG)/releases/download/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_DEPS := zlib define $(PKG)_UPDATE $(WGET) -q -O- 'https://github.com/PhilipHazel/pcre2/tags' | \ $(SED) -n 's|.*releases/tag/pcre2-\([^"]*\).*|\1|p' | $(SORT) -V | \ tail -1 endef define $(PKG)_BUILD cd '$(1)' && ./configure \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ $(ENABLE_SHARED_OR_STATIC) \ --prefix='$(HOST_PREFIX)' \ --enable-pcre2-16 \ --enable-utf \ --enable-unicode-properties \ --enable-cpp \ --disable-pcregrep-libz \ --disable-pcregrep-libbz2 \ --disable-pcretest-libreadline && $(CONFIGURE_POST_HOOK) rm -f '$(HOST_PREFIX)'/share/man/man3/pcre2-16*.3 $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_PROGS) DESTDIR='$(3)' $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_PROGS) DESTDIR='$(3)' if [ "$(ENABLE_DEP_DOCS)" == "no" ]; then \ rm -rf "$(3)$(HOST_PREFIX)/share/doc/pcre2/html"; \ rm -f "$(3)$(HOST_PREFIX)/share/doc/pcre2/*.txt"; \ rm -f "$(3)$(HOST_PREFIX)/share/doc/pcre2/ChangeLog"; \ rm -rf "$(3)$(HOST_PREFIX)/share/man"; \ fi if [ $(MXE_NATIVE_BUILD) = no ]; then \ $(INSTALL) -d '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \ $(INSTALL) -m755 '$(3)$(HOST_BINDIR)/pcre2-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/pcre2-config'; \ fi endef