diff options
Diffstat (limited to 'meta/recipes-support/libpcre/libpcre2_10.22.bb')
-rw-r--r-- | meta/recipes-support/libpcre/libpcre2_10.22.bb | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-support/libpcre/libpcre2_10.22.bb b/meta/recipes-support/libpcre/libpcre2_10.22.bb new file mode 100644 index 0000000000..1e00ed54d1 --- /dev/null +++ b/meta/recipes-support/libpcre/libpcre2_10.22.bb | |||
@@ -0,0 +1,56 @@ | |||
1 | DESCRIPTION = "There are two major versions of the PCRE library. The \ | ||
2 | newest version is PCRE2, which is a re-working of the original PCRE \ | ||
3 | library to provide an entirely new API. The original, very widely \ | ||
4 | deployed PCRE library's API and feature are stable, future releases \ | ||
5 | will be for bugfixes only. All new future features will be to PCRE2, \ | ||
6 | not the original PCRE 8.x series." | ||
7 | SUMMARY = "Perl Compatible Regular Expressions version 2" | ||
8 | HOMEPAGE = "http://www.pcre.org" | ||
9 | SECTION = "devel" | ||
10 | LICENSE = "BSD" | ||
11 | LIC_FILES_CHKSUM = "file://LICENCE;md5=ab9633efd38d6f799398df2c248b5aec" | ||
12 | |||
13 | SRC_URI = "https://ftp.pcre.org/pub/pcre/pcre2-${PV}.tar.bz2 \ | ||
14 | file://pcre-cross.patch \ | ||
15 | " | ||
16 | |||
17 | SRC_URI[md5sum] = "c0c02517938ee2b0d350d53edf450664" | ||
18 | SRC_URI[sha256sum] = "b2b44619f4ac6c50ad74c2865fd56807571392496fae1c9ad7a70993d018f416" | ||
19 | |||
20 | S = "${WORKDIR}/pcre2-${PV}" | ||
21 | |||
22 | PROVIDES += "pcre2" | ||
23 | DEPENDS += "bzip2 zlib" | ||
24 | |||
25 | BINCONFIG = "${bindir}/pcre2-config" | ||
26 | |||
27 | inherit autotools binconfig-disabled | ||
28 | |||
29 | EXTRA_OECONF = "\ | ||
30 | --enable-newline-is-lf \ | ||
31 | --enable-rebuild-chartables \ | ||
32 | --with-link-size=2 \ | ||
33 | --with-match-limit=10000000 \ | ||
34 | " | ||
35 | |||
36 | # Set LINK_SIZE in BUILD_CFLAGS given that the autotools bbclass use it to | ||
37 | # set CFLAGS_FOR_BUILD, required for the libpcre build. | ||
38 | BUILD_CFLAGS =+ "-DLINK_SIZE=2 -I${B}/src" | ||
39 | CFLAGS += "-D_REENTRANT" | ||
40 | CXXFLAGS_append_powerpc = " -lstdc++" | ||
41 | |||
42 | export CCLD_FOR_BUILD ="${BUILD_CCLD}" | ||
43 | |||
44 | PACKAGES =+ "pcre2grep pcre2grep-doc pcre2test pcre2test-doc" | ||
45 | |||
46 | SUMMARY_pcre2grep = "grep utility that uses perl 5 compatible regexes" | ||
47 | SUMMARY_pcre2grep-doc = "grep utility that uses perl 5 compatible regexes - docs" | ||
48 | SUMMARY_pcre2test = "program for testing Perl-comatible regular expressions" | ||
49 | SUMMARY_pcre2test-doc = "program for testing Perl-comatible regular expressions - docs" | ||
50 | |||
51 | FILES_pcre2grep = "${bindir}/pcre2grep" | ||
52 | FILES_pcre2grep-doc = "${mandir}/man1/pcre2grep.1" | ||
53 | FILES_pcre2test = "${bindir}/pcre2test" | ||
54 | FILES_pcre2test-doc = "${mandir}/man1/pcre2test.1" | ||
55 | |||
56 | BBCLASSEXTEND = "native nativesdk" | ||