https://vcs.pcre.org/pcre2/code/trunk/ChangeLog?revision=1254&view=markup - Resyncs upstream library major/minor numbers with ${WRKSRC}/src/pcre2.h.generic instead of shared_libs.log - patch-RunGrepTest reapplied with new /g suffix - Minor bumps for the pcre2 libraries because of changelog items 5 and 11. These add PCRE2_SUBSTITUTE_LITERAL and PCRE2_SUBSTITUTE_REPLACEMENT_ONLY as new values for the `options' argument of pcre2_substitute(...uint32_t options,...). pcre2.h exports these new values. - No versioning bumps due to item 15 because it can be considered a bugfix. set_start_bits() now limits depth of recursion to 1000, adds depthptr to the argument list and adds a new error return code (SSB_TOODEEP). (Sequence is pcre2_compile() --> pcre2_study.c:1672 study() --> set_start_bits()). study() and set_start_bits() are both private helpers while pcre2_compile() is part of the API. https://vcs.pcre.org/pcre2/code/tags/pcre2-10.35/ChangeLog?r1=1211&r2=1212 https://vcs.pcre.org/pcre2/code/tags/pcre2-10.35/src/pcre2_study.c?r1=1180&r2=1213 From Nam Nguyen (MAINTAINER), thanks!
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.13 2020/06/20 06:55:46 kn Exp $
|
|
|
|
COMMENT = perl-compatible regular expression library, version 2
|
|
|
|
DISTNAME = pcre2-10.35
|
|
|
|
SHARED_LIBS += pcre2-16 0.5 # 10.35
|
|
SHARED_LIBS += pcre2-32 0.5 # 10.35
|
|
SHARED_LIBS += pcre2-8 0.6 # 10.35
|
|
SHARED_LIBS += pcre2-posix 0.3 # 2.3
|
|
|
|
CATEGORIES = devel
|
|
|
|
MASTER_SITES = https://ftp.pcre.org/pub/pcre/ \
|
|
${MASTER_SITE_SOURCEFORGE:=pcre/} \
|
|
http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ \
|
|
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
|
|
|
|
HOMEPAGE = https://www.pcre.org/
|
|
MAINTAINER = Nam Nguyen <namn@berkeley.edu>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += bz2 c curses readline z
|
|
|
|
LIB_DEPENDS = archivers/bzip2
|
|
TEST_DEPENDS = textproc/gsed
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ARGS = --enable-pcre2-16 \
|
|
--enable-pcre2-32 \
|
|
--enable-newline-is-any \
|
|
--enable-pcre2grep-libz \
|
|
--enable-pcre2grep-libbz2 \
|
|
--enable-pcre2test-libreadline
|
|
# explicitly disable JIT that would require WXNEEDED
|
|
CONFIGURE_ARGS += --disable-jit
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
.include <bsd.port.mk>
|