Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 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-3-Clause" |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 11 | LIC_FILES_CHKSUM = "file://LICENCE;md5=6b3022283c9a79238d521848ea9dcb4d" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 12 | |
Andrew Geissler | 4ed12e1 | 2020-06-05 18:00:41 -0500 | [diff] [blame] | 13 | SRC_URI = "https://ftp.pcre.org/pub/pcre/pcre2-${PV}.tar.bz2" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 14 | |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 15 | SRC_URI[sha256sum] = "4d95a96e8b80529893b4562be12648d798b957b1ba1aae39606bbc2ab956d270" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 16 | |
| 17 | CVE_PRODUCT = "pcre2" |
| 18 | |
| 19 | S = "${WORKDIR}/pcre2-${PV}" |
| 20 | |
| 21 | PROVIDES += "pcre2" |
| 22 | DEPENDS += "bzip2 zlib" |
| 23 | |
| 24 | BINCONFIG = "${bindir}/pcre2-config" |
| 25 | |
| 26 | inherit autotools binconfig-disabled |
| 27 | |
| 28 | EXTRA_OECONF = "\ |
| 29 | --enable-newline-is-lf \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 30 | --with-link-size=2 \ |
| 31 | --with-match-limit=10000000 \ |
| 32 | --enable-pcre2-16 \ |
| 33 | --enable-pcre2-32 \ |
| 34 | " |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 35 | CFLAGS += "-D_REENTRANT" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 36 | CXXFLAGS:append:powerpc = " -lstdc++" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 37 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 38 | PACKAGES =+ "libpcre2-16 libpcre2-32 pcre2grep pcre2grep-doc pcre2test pcre2test-doc" |
| 39 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 40 | SUMMARY:pcre2grep = "grep utility that uses perl 5 compatible regexes" |
| 41 | SUMMARY:pcre2grep-doc = "grep utility that uses perl 5 compatible regexes - docs" |
| 42 | SUMMARY:pcre2test = "program for testing Perl-comatible regular expressions" |
| 43 | SUMMARY:pcre2test-doc = "program for testing Perl-comatible regular expressions - docs" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 44 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 45 | FILES:libpcre2-16 = "${libdir}/libpcre2-16.so.*" |
| 46 | FILES:libpcre2-32 = "${libdir}/libpcre2-32.so.*" |
| 47 | FILES:pcre2grep = "${bindir}/pcre2grep" |
| 48 | FILES:pcre2grep-doc = "${mandir}/man1/pcre2grep.1" |
| 49 | FILES:pcre2test = "${bindir}/pcre2test" |
| 50 | FILES:pcre2test-doc = "${mandir}/man1/pcre2test.1" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 51 | |
| 52 | BBCLASSEXTEND = "native nativesdk" |