namn 2a2cd75761 update pcre2 to 10.36
changelog:
https://vcs.pcre.org/pcre2/code/trunk/ChangeLog?revision=1287&view=markup

- uses tr instead of gsed in RunGrepTest (from jca@)
- drops TEST_DEPENDS on textproc/gsed
- changes expected test output in testdata/grepoutputN with a sed line
  instead of a patch due to CR bytes

ok jca@
2021-01-20 01:04:22 +00:00

47 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2021/01/20 01:04:22 namn Exp $
COMMENT = perl-compatible regular expression library, version 2
DISTNAME = pcre2-10.36
SHARED_LIBS += pcre2-16 0.5 # 10.36
SHARED_LIBS += pcre2-32 0.5 # 10.36
SHARED_LIBS += pcre2-8 0.6 # 10.36
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
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"
# change expected test output to support RunGrepTest patch
post-extract:
sed -i 's/1:abcZERO2:defZERO/1:abc@2:def@/' \
${WRKSRC}/testdata/grepoutputN
.include <bsd.port.mk>