#!/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 " 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