annotate src/pcre2.mk @ 5531:eae508c12529

Add build rule for build-octave (bug #49503). * src/build-octave.mk: Add new build rule for build-octave which can be used for cross-building binary packages that depend on Octave as a build tool. * dist-files.mk: Add new file to list. * index.html: Add new package to list. * src/of-communications.mk, src/of-image.mk, src/of-mapping.mk, src/of-optiminterp.mk, src/of-sparsersb.mk, src/of-statistics.mk, src/of-windows.mk: Add optional dependency on build-octave. * configure.ac: Add new configure switch "--disable-system-octave" that is needed to build the build-octave package. * Makefile.in: Add variable "USE_SYSTEM_OCTAVE". Exclude build-octave from the default build tools and build it only if a package explicitly depends on it. Display warning about missing native Octave version only if necessary.
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 08 Sep 2020 23:04:38 +0200
parents cd41c2d17ef3
children 16d1cd92da01
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
1 # This file is part of MXE.
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
2 # See index.html for further information.
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
3
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
4 PKG := pcre2
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
5 $(PKG)_IGNORE :=
5396
3417e1f0d5ed * src/pcre2.mk: update to v10.35
John Donoghue <john.donoghue@ieee.org>
parents: 5253
diff changeset
6 $(PKG)_VERSION := 10.35
3417e1f0d5ed * src/pcre2.mk: update to v10.35
John Donoghue <john.donoghue@ieee.org>
parents: 5253
diff changeset
7 $(PKG)_CHECKSUM := 2e5ee2dd397fa8c3ce9aed1a986e51d66a88bdb0
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
8 $(PKG)_SUBDIR := pcre2-$($(PKG)_VERSION)
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
9 $(PKG)_FILE := pcre2-$($(PKG)_VERSION).tar.bz2
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/pcre/pcre2/$($(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
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
12
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
13 define $(PKG)_UPDATE
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
14 $(WGET) -q -O- 'http://sourceforge.net/projects/pcre/files/pcre2/' | \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
15 $(SED) -n 's,.*tr title="\([0-9][^"]*\)".*,\1,p' | \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
16 head -1
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
17 endef
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
18
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
19 define $(PKG)_BUILD
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
20 cd '$(1)' && ./configure \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
21 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
22 $(ENABLE_SHARED_OR_STATIC) \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
23 --prefix='$(HOST_PREFIX)' \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
24 --enable-pcre2-16 \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
25 --enable-utf \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
26 --enable-unicode-properties \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
27 --enable-cpp \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
28 --disable-pcregrep-libz \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
29 --disable-pcregrep-libbz2 \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
30 --disable-pcretest-libreadline && $(CONFIGURE_POST_HOOK)
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
31 rm -f '$(HOST_PREFIX)'/share/man/man3/pcre2-16*.3
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
32 $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_PROGS) DESTDIR='$(3)'
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
33 $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_PROGS) DESTDIR='$(3)'
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
34 if [ "$(ENABLE_DEP_DOCS)" == "no" ]; then \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
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
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
38 rm -rf "$(3)$(HOST_PREFIX)/share/man"; \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
39 fi
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
40 if [ $(MXE_NATIVE_BUILD) = no ]; then \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
41 $(INSTALL) -d '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
42 $(INSTALL) -m755 '$(3)$(HOST_BINDIR)/pcre2-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/pcre2-config'; \
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
43 fi
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents:
diff changeset
44 endef