BSD Ports

devel/pcre2 10.48 MidnightBSD

Perl Compatible Regular Expressions library, version 2

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
ad68bfb53c
License
bsd3
Categories
devel

Description

PCRE2 is the name used for a revised API for the PCRE library, which is a set of functions, written in C, that implement regular expression pattern matching using the same syntax and semantics as Perl, with just a few differences. Some features that appeared in Python and the original PCRE before they appeared in Perl are also available using the Python syntax. There is also some support for one or two .NET and Oniguruma syntax items, and there are options for requesting some minor changes that give better ECMAScript (aka JavaScript) compatibility.

In the other systems

The newest version among them is 10.49, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/pcre210.48 behind since 2026-09-29no data-[email protected]2026-09-05
FreeBSDdevel/pcre210.49 newestnone known-[email protected]2026-09-29
OpenBSDdevel/pcre210.48 behind since 2026-09-29no data-Nam Nguyen <[email protected]>2026-09-11
NetBSDdevel/pcre210.49 newestnone known-[email protected]2026-09-29
DragonFlydevel/pcre210.45 behind since 2026-09-011 known-[email protected]-
HardenedBSDdevel/pcre210.49 newestno data-[email protected]-
GhostBSDdevel/pcre210.48 behind since 2026-09-29no data-[email protected]-
OPNsensedevel/pcre210.47_1 behind since 2026-09-01no data-[email protected]-

Compare across BSDs

Version history 1

  1. 10.48 ad68bfb53c

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

mport install pcre2

From mports:

cd /usr/mports/devel/pcre2 && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	pcre2>0:devel/pcre2
LIB_DEPENDS=	libpcre2-16.so:devel/pcre2

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Configuration

Options name: devel_pcre2

OptionDefaultDescription
DOCSoff
LIBBZ2offUsing pcre2grep with .bz2 files
LIBEDIToff
LIBZoffUsing pcre2grep with .gz files
READLINEoff
USES
autoreconf cpe libtool pkgconfig tar:bz2
Service scripts
none

Files

Manual pages 96
  • pcre2(3)
  • pcre2-config(1)
  • pcre2_callout_enumerate(3)
  • pcre2_code_copy(3)
  • pcre2_code_copy_with_tables(3)
  • pcre2_code_free(3)
  • pcre2_compile(3)
  • pcre2_compile_context_copy(3)
  • pcre2_compile_context_create(3)
  • pcre2_compile_context_free(3)
  • pcre2_config(3)
  • pcre2_convert_context_copy(3)
  • pcre2_convert_context_create(3)
  • pcre2_convert_context_free(3)
  • pcre2_converted_pattern_free(3)
  • pcre2_dfa_match(3)
  • pcre2_general_context_copy(3)
  • pcre2_general_context_create(3)
  • pcre2_general_context_free(3)
  • pcre2_get_error_message(3)
  • pcre2_get_mark(3)
  • pcre2_get_match_data_heapframes_size(3)
  • pcre2_get_match_data_size(3)
  • pcre2_get_ovector_count(3)
  • pcre2_get_ovector_pointer(3)
  • pcre2_get_startchar(3)
  • pcre2_jit_compile(3)
  • pcre2_jit_free_unused_memory(3)
  • pcre2_jit_match(3)
  • pcre2_jit_stack_assign(3)
  • pcre2_jit_stack_create(3)
  • pcre2_jit_stack_free(3)
  • pcre2_maketables(3)
  • pcre2_maketables_free(3)
  • pcre2_match(3)
  • pcre2_match_context_copy(3)
  • pcre2_match_context_create(3)
  • pcre2_match_context_free(3)
  • pcre2_match_data_create(3)
  • pcre2_match_data_create_from_pattern(3)
  • pcre2_match_data_free(3)
  • pcre2_pattern_convert(3)
  • pcre2_pattern_info(3)
  • pcre2_serialize_decode(3)
  • pcre2_serialize_encode(3)
  • pcre2_serialize_free(3)
  • pcre2_serialize_get_number_of_codes(3)
  • pcre2_set_bsr(3)
  • pcre2_set_callout(3)
  • pcre2_set_character_tables(3)
  • pcre2_set_compile_extra_options(3)
  • pcre2_set_compile_recursion_guard(3)
  • pcre2_set_depth_limit(3)
  • pcre2_set_glob_escape(3)
  • pcre2_set_glob_separator(3)
  • pcre2_set_heap_limit(3)
  • pcre2_set_match_limit(3)
  • pcre2_set_max_pattern_length(3)
  • pcre2_set_max_varlookbehind(3)
  • pcre2_set_newline(3)
  • pcre2_set_offset_limit(3)
  • pcre2_set_parens_nest_limit(3)
  • pcre2_set_recursion_limit(3)
  • pcre2_set_recursion_memory_management(3)
  • pcre2_set_substitute_callout(3)
  • pcre2_substitute(3)
  • pcre2_substring_copy_byname(3)
  • pcre2_substring_copy_bynumber(3)
  • pcre2_substring_free(3)
  • pcre2_substring_get_byname(3)
  • pcre2_substring_get_bynumber(3)
  • pcre2_substring_length_byname(3)
  • pcre2_substring_length_bynumber(3)
  • pcre2_substring_list_free(3)
  • pcre2_substring_list_get(3)
  • pcre2_substring_nametable_scan(3)
  • pcre2_substring_number_from_name(3)
  • pcre2api(3)
  • pcre2build(3)
  • pcre2callout(3)
  • pcre2compat(3)
  • pcre2convert(3)
  • pcre2demo(3)
  • pcre2grep(1)
  • pcre2jit(3)
  • pcre2limits(3)
  • pcre2matching(3)
  • pcre2partial(3)
  • pcre2pattern(3)
  • pcre2perform(3)
  • pcre2posix(3)
  • pcre2sample(3)
  • pcre2serialize(3)
  • pcre2syntax(3)
  • pcre2test(1)
  • pcre2unicode(3)
pkg-plist 121
  • bin/pcre2-config
  • bin/pcre2grep
  • bin/pcre2test
  • include/pcre2.h
  • include/pcre2posix.h
  • lib/libpcre2-16.a
  • lib/libpcre2-16.so
  • lib/libpcre2-16.so.0
  • lib/libpcre2-16.so.0.16.0
  • lib/libpcre2-32.a
  • lib/libpcre2-32.so
  • lib/libpcre2-32.so.0
  • lib/libpcre2-32.so.0.16.0
  • lib/libpcre2-8.a
  • lib/libpcre2-8.so
  • lib/libpcre2-8.so.0
  • lib/libpcre2-8.so.0.16.0
  • lib/libpcre2-posix.a
  • lib/libpcre2-posix.so
  • lib/libpcre2-posix.so.3
  • lib/libpcre2-posix.so.3.0.8
  • libdata/pkgconfig/libpcre2-16.pc
  • libdata/pkgconfig/libpcre2-32.pc
  • libdata/pkgconfig/libpcre2-8.pc
  • libdata/pkgconfig/libpcre2-posix.pc
  • share/man/man1/pcre2-config.1.gz
  • share/man/man1/pcre2grep.1.gz
  • share/man/man1/pcre2test.1.gz
  • share/man/man3/pcre2.3.gz
  • share/man/man3/pcre2_callout_enumerate.3.gz
  • share/man/man3/pcre2_code_copy.3.gz
  • share/man/man3/pcre2_code_copy_with_tables.3.gz
  • share/man/man3/pcre2_code_free.3.gz
  • share/man/man3/pcre2_compile.3.gz
  • share/man/man3/pcre2_compile_context_copy.3.gz
  • share/man/man3/pcre2_compile_context_create.3.gz
  • share/man/man3/pcre2_compile_context_free.3.gz
  • share/man/man3/pcre2_config.3.gz
  • share/man/man3/pcre2_convert_context_copy.3.gz
  • share/man/man3/pcre2_convert_context_create.3.gz
  • share/man/man3/pcre2_convert_context_free.3.gz
  • share/man/man3/pcre2_converted_pattern_free.3.gz
  • share/man/man3/pcre2_dfa_match.3.gz
  • share/man/man3/pcre2_general_context_copy.3.gz
  • share/man/man3/pcre2_general_context_create.3.gz
  • share/man/man3/pcre2_general_context_free.3.gz
  • share/man/man3/pcre2_get_error_message.3.gz
  • share/man/man3/pcre2_get_mark.3.gz
  • share/man/man3/pcre2_get_match_data_size.3.gz
  • share/man/man3/pcre2_get_ovector_count.3.gz
  • share/man/man3/pcre2_get_ovector_pointer.3.gz
  • share/man/man3/pcre2_get_startchar.3.gz
  • share/man/man3/pcre2_jit_compile.3.gz
  • share/man/man3/pcre2_jit_free_unused_memory.3.gz
  • share/man/man3/pcre2_jit_match.3.gz
  • share/man/man3/pcre2_jit_stack_assign.3.gz
  • share/man/man3/pcre2_jit_stack_create.3.gz
  • share/man/man3/pcre2_jit_stack_free.3.gz
  • share/man/man3/pcre2_maketables.3.gz
  • share/man/man3/pcre2_maketables_free.3.gz
  • share/man/man3/pcre2_match.3.gz
  • share/man/man3/pcre2_match_context_copy.3.gz
  • share/man/man3/pcre2_match_context_create.3.gz
  • share/man/man3/pcre2_match_context_free.3.gz
  • share/man/man3/pcre2_match_data_create.3.gz
  • share/man/man3/pcre2_match_data_create_from_pattern.3.gz
  • share/man/man3/pcre2_match_data_free.3.gz
  • share/man/man3/pcre2_get_match_data_heapframes_size.3.gz
  • share/man/man3/pcre2_pattern_convert.3.gz
  • share/man/man3/pcre2_pattern_info.3.gz
  • share/man/man3/pcre2_serialize_decode.3.gz
  • share/man/man3/pcre2_serialize_encode.3.gz
  • share/man/man3/pcre2_serialize_free.3.gz
  • share/man/man3/pcre2_serialize_get_number_of_codes.3.gz
  • share/man/man3/pcre2_set_bsr.3.gz
  • share/man/man3/pcre2_set_callout.3.gz
  • share/man/man3/pcre2_set_character_tables.3.gz
  • share/man/man3/pcre2_set_compile_extra_options.3.gz
  • share/man/man3/pcre2_set_compile_recursion_guard.3.gz
  • share/man/man3/pcre2_set_depth_limit.3.gz
  • share/man/man3/pcre2_set_glob_escape.3.gz
  • share/man/man3/pcre2_set_glob_separator.3.gz
  • share/man/man3/pcre2_set_heap_limit.3.gz
  • share/man/man3/pcre2_set_match_limit.3.gz
  • share/man/man3/pcre2_set_max_pattern_length.3.gz
  • share/man/man3/pcre2_set_max_varlookbehind.3.gz
  • share/man/man3/pcre2_set_newline.3.gz
  • share/man/man3/pcre2_set_offset_limit.3.gz
  • share/man/man3/pcre2_set_parens_nest_limit.3.gz
  • share/man/man3/pcre2_set_recursion_limit.3.gz
  • share/man/man3/pcre2_set_recursion_memory_management.3.gz
  • share/man/man3/pcre2_set_substitute_callout.3.gz
  • share/man/man3/pcre2_substitute.3.gz
  • share/man/man3/pcre2_substring_copy_byname.3.gz
  • share/man/man3/pcre2_substring_copy_bynumber.3.gz
  • share/man/man3/pcre2_substring_free.3.gz
  • share/man/man3/pcre2_substring_get_byname.3.gz
  • share/man/man3/pcre2_substring_get_bynumber.3.gz
  • share/man/man3/pcre2_substring_length_byname.3.gz
  • share/man/man3/pcre2_substring_length_bynumber.3.gz

The first 100 are listed.

distinfo 1
FileSizeSHA256
pcre2-10.48.tar.bz22.213024e+06b6c68fdf6f3ac31388b50aa89ff0fc49c00c987c16e7b5146491d12003f2c8ed
Master sites 1
  • https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.48/

Commit history 1

DateCommitCreditsLog message
ad68bfb53c Lucas Holt devel/pcre2: update to 10.48 (#840)