annotate src/pcre.mk @ 5509:9b74815e8337

binutils: update to v2.35 * src/build-binutils.mk, src/native-binutils.mk: update version, checksum
author John Donoghue <john.donoghue@ieee.org>
date Wed, 12 Aug 2020 07:33:57 -0400
parents 7f618ab721ef
children b62524b5a62f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2253
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 408
diff changeset
3
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
4 PKG := pcre
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 425
diff changeset
5 $(PKG)_IGNORE :=
5314
7f618ab721ef * src/pcre.mk: update to v8.44
John Donoghue
parents: 5253
diff changeset
6 $(PKG)_VERSION := 8.44
7f618ab721ef * src/pcre.mk: update to v8.44
John Donoghue
parents: 5253
diff changeset
7 $(PKG)_CHECKSUM := 8179b083053fce9b4a766513fa1f14807aabee42
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_SUBDIR := pcre-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
9 $(PKG)_FILE := pcre-$($(PKG)_VERSION).tar.bz2
422
d2f5eb27e051 improved download URLs for all SourceForge packages to ensure that the selected SOURCEFORGE_MIRROR is really used
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/pcre/pcre/$($(PKG)_VERSION)/$($(PKG)_FILE)
2241
6e795530f3a2 update package pcre
Mark Brand <mabrand@mabrand.nl>
parents: 2180
diff changeset
11 $(PKG)_URL_2 := ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
12 $(PKG)_DEPS :=
245
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 define $(PKG)_UPDATE
4988
8fd7e6b01ee3 * src/pcre.mk: update to v8.43
John Donoghue
parents: 4730
diff changeset
15 $(WGET) -q -O- 'https://ftp.pcre.org/pub/pcre/' | \
8fd7e6b01ee3 * src/pcre.mk: update to v8.43
John Donoghue
parents: 4730
diff changeset
16 $(SED) -n 's,.*pcre-\([0-9]\+\)\(\.[0-9]\+\)*\.zip.*,\1\2,p' | \
8fd7e6b01ee3 * src/pcre.mk: update to v8.43
John Donoghue
parents: 4730
diff changeset
17 tail -1
245
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 endef
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 define $(PKG)_BUILD
3088
79d8d9ae6d78 [MSVC] enable PCRE compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
21 $(if $(filter-out msvc,$(MXE_SYSTEM)),
79d8d9ae6d78 [MSVC] enable PCRE compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
22 $(SED) -i 's|__declspec(dllimport)||' '$(1)/pcre.h.in'
79d8d9ae6d78 [MSVC] enable PCRE compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
23 $(SED) -i 's|__declspec(dllimport)||' '$(1)/pcreposix.h')
245
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
25 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2676
diff changeset
26 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2861
diff changeset
27 --prefix='$(HOST_PREFIX)' \
2253
a7cd38ce7a20 package pcre: enable utf-16 support
Mark Brand <mabrand@mabrand.nl>
parents: 2241
diff changeset
28 --enable-pcre16 \
a7cd38ce7a20 package pcre: enable utf-16 support
Mark Brand <mabrand@mabrand.nl>
parents: 2241
diff changeset
29 --enable-utf \
245
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --enable-unicode-properties \
425
afd650c42ba3 disable C++ support for package pcre
Volker Grabsch <vog@notjusthosting.com>
parents: 422
diff changeset
31 --disable-cpp \
245
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --disable-pcregrep-libz \
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --disable-pcregrep-libbz2 \
3088
79d8d9ae6d78 [MSVC] enable PCRE compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
34 --disable-pcretest-libreadline && $(CONFIGURE_POST_HOOK)
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2861
diff changeset
35 rm -f '$(HOST_PREFIX)'/share/man/man3/pcre16*.3
4308
411ddca4207f More dont install dependancy docs
John D
parents: 4166
diff changeset
36 $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_PROGS) DESTDIR='$(3)'
411ddca4207f More dont install dependancy docs
John D
parents: 4166
diff changeset
37 $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_PROGS) DESTDIR='$(3)'
411ddca4207f More dont install dependancy docs
John D
parents: 4166
diff changeset
38 if [ "$(ENABLE_DEP_DOCS)" == "no" ]; then \
411ddca4207f More dont install dependancy docs
John D
parents: 4166
diff changeset
39 rm -rf "$(3)$(HOST_PREFIX)/share/doc/pcre/html"; \
5253
1a660724ea98 * src/pcre2.mk, src/pcre.mk: dont install txt files
John Donoghue <john.donoghue@ieee.org>
parents: 4988
diff changeset
40 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: 4988
diff changeset
41 rm -f "$(3)$(HOST_PREFIX)/share/doc/pcre2/ChangeLog"; \
4308
411ddca4207f More dont install dependancy docs
John D
parents: 4166
diff changeset
42 rm -rf "$(3)$(HOST_PREFIX)/share/man"; \
411ddca4207f More dont install dependancy docs
John D
parents: 4166
diff changeset
43 fi
3216
11f8ec654cd4 Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents: 3088
diff changeset
44 if [ $(MXE_NATIVE_BUILD) = no ]; then \
3306
2b4e9822f50b Undo changeset 2ccb71581ee9, 70873001835f, 724c7c2201aa and create BUILD_TOOLS_PREFIX/bin
John Donoghue <john.donoghue@ieee.org>
parents: 3301
diff changeset
45 $(INSTALL) -d '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \
2b4e9822f50b Undo changeset 2ccb71581ee9, 70873001835f, 724c7c2201aa and create BUILD_TOOLS_PREFIX/bin
John Donoghue <john.donoghue@ieee.org>
parents: 3301
diff changeset
46 $(INSTALL) -m755 '$(3)$(HOST_BINDIR)/pcre-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/pcre-config'; \
3216
11f8ec654cd4 Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents: 3088
diff changeset
47 fi
245
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
48 endef