Lines 1-8
Link Here
|
1 |
PORTNAME= pcre2 |
1 |
PORTNAME= pcre2 |
2 |
PORTVERSION= 10.42 |
2 |
DISTVERSION= 10.43 |
3 |
PORTREVISION= 1 |
|
|
4 |
CATEGORIES= devel |
3 |
CATEGORIES= devel |
5 |
MASTER_SITES= https://github.com/PCRE2Project/${PORTNAME}/releases/download/${PORTNAME}-${PORTVERSION}/ |
4 |
MASTER_SITES= https://github.com/PCRE2Project/${PORTNAME}/releases/download/${PORTNAME}-${DISTVERSION}/ |
|
|
5 |
|
6 |
PATCH_SITES= https://github.com/PCRE2Project/${PORTNAME}/commit/ |
7 |
PATCHFILES= fba4a6a5e8a7895db7e0efcbcdb7087a04a00322.patch:-p1 \ |
8 |
e4788704ccd64ab067dc348cdefea6221bfe9b97.patch:-p1 |
6 |
|
9 |
|
7 |
MAINTAINER= krion@FreeBSD.org |
10 |
MAINTAINER= krion@FreeBSD.org |
8 |
COMMENT= Perl Compatible Regular Expressions library, version 2 |
11 |
COMMENT= Perl Compatible Regular Expressions library, version 2 |
Lines 11-47
WWW= https://www.pcre.org/
Link Here
|
11 |
LICENSE= BSD3CLAUSE |
14 |
LICENSE= BSD3CLAUSE |
12 |
LICENSE_FILE= ${WRKSRC}/LICENCE |
15 |
LICENSE_FILE= ${WRKSRC}/LICENCE |
13 |
|
16 |
|
14 |
USES= autoreconf cpe libtool pkgconfig tar:bz2 |
17 |
USES= cmake:testing cpe pathfix pkgconfig tar:bz2 |
15 |
CPE_VENDOR= pcre |
18 |
CPE_VENDOR= pcre |
16 |
|
19 |
|
17 |
USE_LDCONFIG= yes |
20 |
USE_LDCONFIG= yes |
18 |
|
21 |
|
19 |
GNU_CONFIGURE= yes |
22 |
CMAKE_TESTING_ON= PCRE2_BUILD_TESTS |
20 |
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share |
23 |
CMAKE_OFF= PCRE2_BUILD_TESTS |
21 |
CONFIGURE_ARGS= --enable-pcre2-16 \ |
24 |
CMAKE_ON= BUILD_SHARED_LIBS \ |
22 |
--enable-pcre2-32 |
25 |
PCRE2_BUILD_PCRE2_16 \ |
23 |
INSTALL_TARGET= install-strip |
26 |
PCRE2_BUILD_PCRE2_32 |
24 |
|
27 |
|
25 |
OPTIONS_DEFINE= DOCS LIBBZ2 LIBZ |
28 |
OPTIONS_DEFINE= DOCS LIBBZ2 LIBZ STATIC |
26 |
OPTIONS_RADIO= CLI |
29 |
OPTIONS_RADIO= CLI |
27 |
OPTIONS_RADIO_CLI= LIBEDIT READLINE |
30 |
OPTIONS_RADIO_CLI= LIBEDIT READLINE |
|
|
31 |
OPTIONS_SUB= yes |
28 |
|
32 |
|
29 |
LIBBZ2_DESC= Using pcre2grep with .bz2 files |
33 |
LIBBZ2_DESC= Using pcre2grep with .bz2 files |
30 |
LIBZ_DESC= Using pcre2grep with .gz files |
34 |
LIBZ_DESC= Using pcre2grep with .gz files |
31 |
|
35 |
|
32 |
LIBBZ2_CONFIGURE_ON= --enable-pcre2grep-libbz2 |
36 |
LIBBZ2_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_BZip2:BOOL=True |
33 |
LIBEDIT_USES= libedit |
37 |
|
34 |
LIBEDIT_CONFIGURE_ENABLE= pcre2test-libedit |
38 |
LIBEDIT_USES= libedit |
35 |
LIBZ_CONFIGURE_ON= --enable-pcre2grep-libz |
39 |
LIBEDIT_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_Editline:BOOL=True |
36 |
READLINE_USES= readline |
40 |
|
37 |
READLINE_CONFIGURE_ENABLE= pcre2test-libreadline |
41 |
LIBZ_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_ZLIB:BOOL=True |
|
|
42 |
|
43 |
READLINE_USES= readline |
44 |
READLINE_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_Readline:BOOL=True |
45 |
|
46 |
STATIC_CMAKE_BOOL= BUILD_STATIC_LIBS |
38 |
|
47 |
|
39 |
.include <bsd.port.options.mk> |
48 |
.include <bsd.port.options.mk> |
40 |
|
49 |
|
41 |
.if ${ARCH:Mmips64*} == "" && ${ARCH:Mriscv64*} == "" |
50 |
.if ${ARCH:Mmips64*} == "" && ${ARCH:Mriscv64*} == "" |
42 |
CONFIGURE_ARGS+= --enable-jit |
51 |
CMAKE_ON+= PCRE2_SUPPORT_JIT |
43 |
.else |
52 |
.else |
44 |
CONFIGURE_ARGS+= --disable-jit |
53 |
CMAKE_OFF+= PCRE2_SUPPORT_JIT |
45 |
.endif |
54 |
.endif |
46 |
|
55 |
|
47 |
.if ${PORT_OPTIONS:MDOCS} |
56 |
.if ${PORT_OPTIONS:MDOCS} |
Lines 54-86
PORTDOCS= *
Link Here
|
54 |
# libraries, at the expense of longer load times (possible values: |
63 |
# libraries, at the expense of longer load times (possible values: |
55 |
# 2 (default), 3, and 4): |
64 |
# 2 (default), 3, and 4): |
56 |
.if defined(WITH_LINK_SIZE) |
65 |
.if defined(WITH_LINK_SIZE) |
57 |
CONFIGURE_ARGS+= --with-link-size=${WITH_LINK_SIZE} |
66 |
CMAKE_ARGS=+= -DPCRE2_LINK_SIZE:STRING=${WITH_LINK_SIZE} |
58 |
.endif |
67 |
.endif |
59 |
|
68 |
|
60 |
# Control PCRE resource use by limiting the default number of times pcre_exec() |
69 |
# Control PCRE resource use by limiting the default number of times pcre_exec() |
61 |
# can call match() during a single operation (default: 10 million): |
70 |
# can call match() during a single operation (default: 10 million): |
62 |
.if defined(WITH_MATCH_LIMIT) |
71 |
.if defined(WITH_MATCH_LIMIT) |
63 |
CONFIGURE_ARGS+= --with-match-limit=${WITH_MATCH_LIMIT} |
72 |
CMAKE_ARGS+= -DPCRE2_MATCH_LIMIT:STRING=${WITH_MATCH_LIMIT} |
|
|
73 |
.endif |
74 |
|
75 |
# This limit applies to all backtracks, whether or not they are nested. In |
76 |
# some environments it is desirable to limit the nesting of backtracking (that |
77 |
# is, the depth of tree that is searched) more strictly, in order to restrict |
78 |
# the maximum amount of heap memory that is used (default: 10 million): |
79 |
.if defined(WITH_MATCH_LIMIT_DEPTH) |
80 |
CMAKE_ARGS+= -DPCRE2_MATCH_LIMIT_DEPTH:STRING=${WITH_MATCH_LIMIT_DEPTH} |
64 |
.endif |
81 |
.endif |
65 |
|
82 |
|
66 |
# Control PCRE resource use by limiting the nesting depth of parentheses in |
83 |
# Control PCRE resource use by limiting the nesting depth of parentheses in |
67 |
# patterns compiled with pcre_compile() (default: 250): |
84 |
# patterns compiled with pcre_compile() (default: 250): |
68 |
.if defined(WITH_PARENS_NEST_LIMIT) |
85 |
.if defined(WITH_PARENS_NEST_LIMIT) |
69 |
CONFIGURE_ARGS+= --with-parens-nest-limit=${WITH_PARENS_NEST_LIMIT} |
86 |
CMAKE_ARGS+= -DPCRE2_PARENS_NEST_LIMIT:STRING=${WITH_PARENS_NEST_LIMIT} |
70 |
.endif |
|
|
71 |
|
72 |
#prevent regression test coredumps from causing failures on the |
73 |
#package-building cluster: |
74 |
.ifndef(MAINTAINER_MODE) |
75 |
CORELIMIT?= /usr/bin/limits -Sc 0 |
76 |
.endif |
87 |
.endif |
77 |
TESTLOGS?= RunGrepTest RunTest pcre_jit_test pcre_scanner_unittest \ |
|
|
78 |
pcre_stringpiece_unittest pcrecpp_unittest |
79 |
|
80 |
do-test: |
81 |
@cd ${WRKSRC} ; \ |
82 |
${SETENV} ${MAKE_ENV} ${CORELIMIT} ${MAKE_CMD} ${MAKE_ARGS} check ; \ |
83 |
for _l in ${TESTLOGS} ; do if ${TEST} -f $${_l}.log ; then \ |
84 |
${PRINTF} "\n\n$${_l}.log\n\n\n" ; ${CAT} $${_l}.log ; fi ; done |
85 |
|
88 |
|
86 |
.include <bsd.port.mk> |
89 |
.include <bsd.port.mk> |