|
root / base / pcre2
pcre2 Plain Text 57 lines 1.8 KB
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh
# Build script for pcre2 (autotools, Template A). No deps (zlib/bz2 not
# needed - pcre2grep's compressed-file support is optional and skipped).
set -e
cd "$SRCDIR"

# Mandatory libtool hammerhead* dynamic-linker fix (see libXrender/Task 4a
# gotcha): unmatched host_os falls through to "dynamic_linker=no", forcing
# static-only output without this.
if [ -f configure ]; then
    sed -i -E 's/(kopensolaris\*-gnu)([^)]*\))/\1 | hammerhead*\2/' configure
fi

export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:/usr/lib/pkgconfig:$PKG_CONFIG_PATH"
export CFLAGS="${CFLAGS} -I$PREFIX/include -D__EXTENSIONS__"
export LDFLAGS="${LDFLAGS} -L$PREFIX/lib -R$PREFIX/lib"

./configure \
    --prefix="$PREFIX" \
    --build="$BUILD_TRIPLE" \
    --host="$BUILD_TRIPLE" \
    --sysconfdir="$SYSCONFDIR" \
    --disable-static \
    --enable-pcre2-16 \
    --enable-pcre2-32

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# pcre2 - Perl Compatible Regular Expressions (glib2 dependency)
# https://github.com/PCRE2Project/pcre2
#
# glib requires libpcre2-8 >= 10.32 and probes for the 16/32-bit-code
# variants too (pcre2-16, pcre2-32) even though it only links libpcre2-8 -
# build all three widths so no glib feature silently degrades.

[package]
name = "pcre2"
version = "10.47"
release = 1
description = "Perl Compatible Regular Expressions library, version 2"
url = "https://github.com/PCRE2Project/pcre2"
license = "BSD-3-Clause"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = []
build = []

[[source]]
file = "pcre2-10.47.tar.gz"
urls = ["https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.47/pcre2-10.47.tar.gz"]
checksum = "c08ae2388ef333e8403e670ad70c0a11f1eed021fd88308d7e02f596fcd9dc16"

[build]
parallel = true