Mercurial > mxe-octave
annotate src/pcre2.mk @ 6213:5f64fb928091 release
build-gcc: Avoid library clash when calling msgfmt.
* src/build-gcc-1-msgfmt.patch: Don't use libraries from the build tree when
calling `msgfmt`.
* dist-files.mk: Add patch to list.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 06 May 2022 19:36:10 +0200 |
parents | 7c12df833a01 |
children | bee5e6740778 |
rev | line source |
---|---|
4735 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := pcre2 | |
5 $(PKG)_IGNORE := | |
5967
7c12df833a01
* src/pcre2.mk: update to v10.39, use github
John Donoghue <john.donoghue@ieee.org>
parents:
5781
diff
changeset
|
6 $(PKG)_VERSION := 10.39 |
7c12df833a01
* src/pcre2.mk: update to v10.39, use github
John Donoghue <john.donoghue@ieee.org>
parents:
5781
diff
changeset
|
7 $(PKG)_CHECKSUM := 9cf3ec88cd68dc76354eb0568738c47b57377042 |
4735 | 8 $(PKG)_SUBDIR := pcre2-$($(PKG)_VERSION) |
9 $(PKG)_FILE := pcre2-$($(PKG)_VERSION).tar.bz2 | |
5967
7c12df833a01
* src/pcre2.mk: update to v10.39, use github
John Donoghue <john.donoghue@ieee.org>
parents:
5781
diff
changeset
|
10 $(PKG)_URL := https://github.com/PhilipHazel/$(PKG)/releases/download/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE) |
5454
cd41c2d17ef3
Update dependancies on packages
John Donoghue <john.donoghue@ieee.org>
parents:
5396
diff
changeset
|
11 $(PKG)_DEPS := zlib |
4735 | 12 |
13 define $(PKG)_UPDATE | |
5967
7c12df833a01
* src/pcre2.mk: update to v10.39, use github
John Donoghue <john.donoghue@ieee.org>
parents:
5781
diff
changeset
|
14 $(WGET) -q -O- 'https://github.com/PhilipHazel/pcre2/tags' | \ |
7c12df833a01
* src/pcre2.mk: update to v10.39, use github
John Donoghue <john.donoghue@ieee.org>
parents:
5781
diff
changeset
|
15 $(SED) -n 's|.*releases/tag/pcre2-\([^"]*\).*|\1|p' | $(SORT) -V | \ |
7c12df833a01
* src/pcre2.mk: update to v10.39, use github
John Donoghue <john.donoghue@ieee.org>
parents:
5781
diff
changeset
|
16 tail -1 |
4735 | 17 endef |
18 | |
19 define $(PKG)_BUILD | |
20 cd '$(1)' && ./configure \ | |
21 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | |
22 $(ENABLE_SHARED_OR_STATIC) \ | |
23 --prefix='$(HOST_PREFIX)' \ | |
24 --enable-pcre2-16 \ | |
25 --enable-utf \ | |
26 --enable-unicode-properties \ | |
27 --enable-cpp \ | |
28 --disable-pcregrep-libz \ | |
29 --disable-pcregrep-libbz2 \ | |
30 --disable-pcretest-libreadline && $(CONFIGURE_POST_HOOK) | |
31 rm -f '$(HOST_PREFIX)'/share/man/man3/pcre2-16*.3 | |
32 $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_PROGS) DESTDIR='$(3)' | |
33 $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_PROGS) DESTDIR='$(3)' | |
34 if [ "$(ENABLE_DEP_DOCS)" == "no" ]; then \ | |
35 rm -rf "$(3)$(HOST_PREFIX)/share/doc/pcre2/html"; \ | |
5253
1a660724ea98
* src/pcre2.mk, src/pcre.mk: dont install txt files
John Donoghue <john.donoghue@ieee.org>
parents:
5223
diff
changeset
|
36 rm -f "$(3)$(HOST_PREFIX)/share/doc/pcre2/*.txt"; \ |
1a660724ea98
* src/pcre2.mk, src/pcre.mk: dont install txt files
John Donoghue <john.donoghue@ieee.org>
parents:
5223
diff
changeset
|
37 rm -f "$(3)$(HOST_PREFIX)/share/doc/pcre2/ChangeLog"; \ |
4735 | 38 rm -rf "$(3)$(HOST_PREFIX)/share/man"; \ |
39 fi | |
40 if [ $(MXE_NATIVE_BUILD) = no ]; then \ | |
41 $(INSTALL) -d '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \ | |
42 $(INSTALL) -m755 '$(3)$(HOST_BINDIR)/pcre2-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/pcre2-config'; \ | |
43 fi | |
44 endef |