xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-support/libpcre/libpcre2_10.40.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunDESCRIPTION = "There are two major versions of the PCRE library. The \
2*4882a593Smuzhiyunnewest version is PCRE2, which is a re-working of the original PCRE \
3*4882a593Smuzhiyunlibrary to provide an entirely new API. The original, very widely \
4*4882a593Smuzhiyundeployed PCRE library's API and feature are stable, future releases \
5*4882a593Smuzhiyun will be for bugfixes only. All new future features will be to PCRE2, \
6*4882a593Smuzhiyunnot the original PCRE 8.x series."
7*4882a593SmuzhiyunSUMMARY = "Perl Compatible Regular Expressions version 2"
8*4882a593SmuzhiyunHOMEPAGE = "http://www.pcre.org"
9*4882a593SmuzhiyunSECTION = "devel"
10*4882a593SmuzhiyunLICENSE = "BSD-3-Clause"
11*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENCE;md5=41bfb977e4933c506588724ce69bf5d2"
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunSRC_URI = "https://github.com/PhilipHazel/pcre2/releases/download/pcre2-${PV}/pcre2-${PV}.tar.bz2 \
14*4882a593Smuzhiyun"
15*4882a593SmuzhiyunUPSTREAM_CHECK_URI = "https://github.com/PhilipHazel/pcre2/releases"
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunSRC_URI[sha256sum] = "14e4b83c4783933dc17e964318e6324f7cae1bc75d8f3c79bc6969f00c159d68"
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunCVE_PRODUCT = "pcre2"
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunS = "${WORKDIR}/pcre2-${PV}"
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunPROVIDES += "pcre2"
24*4882a593SmuzhiyunDEPENDS += "bzip2 zlib"
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunBINCONFIG = "${bindir}/pcre2-config"
27*4882a593Smuzhiyun
28*4882a593Smuzhiyuninherit autotools binconfig-disabled
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunEXTRA_OECONF = "\
31*4882a593Smuzhiyun    --enable-newline-is-lf \
32*4882a593Smuzhiyun    --with-link-size=2 \
33*4882a593Smuzhiyun    --with-match-limit=10000000 \
34*4882a593Smuzhiyun    --enable-pcre2-16 \
35*4882a593Smuzhiyun    --enable-pcre2-32 \
36*4882a593Smuzhiyun"
37*4882a593SmuzhiyunCFLAGS += "-D_REENTRANT"
38*4882a593SmuzhiyunCXXFLAGS:append:powerpc = " -lstdc++"
39*4882a593Smuzhiyun
40*4882a593SmuzhiyunPACKAGES =+ "libpcre2-16 libpcre2-32 pcre2grep pcre2grep-doc pcre2test pcre2test-doc"
41*4882a593Smuzhiyun
42*4882a593SmuzhiyunSUMMARY:pcre2grep = "grep utility that uses perl 5 compatible regexes"
43*4882a593SmuzhiyunSUMMARY:pcre2grep-doc = "grep utility that uses perl 5 compatible regexes - docs"
44*4882a593SmuzhiyunSUMMARY:pcre2test = "program for testing Perl-comatible regular expressions"
45*4882a593SmuzhiyunSUMMARY:pcre2test-doc = "program for testing Perl-comatible regular expressions - docs"
46*4882a593Smuzhiyun
47*4882a593SmuzhiyunFILES:libpcre2-16 = "${libdir}/libpcre2-16.so.*"
48*4882a593SmuzhiyunFILES:libpcre2-32 = "${libdir}/libpcre2-32.so.*"
49*4882a593SmuzhiyunFILES:pcre2grep = "${bindir}/pcre2grep"
50*4882a593SmuzhiyunFILES:pcre2grep-doc = "${mandir}/man1/pcre2grep.1"
51*4882a593SmuzhiyunFILES:pcre2test = "${bindir}/pcre2test"
52*4882a593SmuzhiyunFILES:pcre2test-doc = "${mandir}/man1/pcre2test.1"
53*4882a593Smuzhiyun
54*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk"
55