-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8215e36
commit 67ba0d8
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using BinaryBuilder | ||
|
||
name = "PCRE2" | ||
version = v"10.32" | ||
|
||
# Collection of sources required to build Pcre | ||
sources = [ | ||
"https://ftp.pcre.org/pub/pcre/pcre2-$(version.major).$(version.minor).tar.bz2" => | ||
"f29e89cc5de813f45786580101aaee3984a65818631d4ddbda7b32f699b87c2e", | ||
] | ||
|
||
# Bash recipe for building across all platforms | ||
script = raw""" | ||
cd $WORKSPACE/srcdir/pcre2-*/ | ||
# On OSX, override choice of AR | ||
if [[ ${target} == *apple-darwin* ]]; then | ||
export AR=/opt/${target}/bin/${target}-ar | ||
fi | ||
./configure --prefix=$prefix --host=$target --enable-utf8 --enable-unicode-properties --enable-jit | ||
make -j${nproc} VERBOSE=1 | ||
make install VERBOSE=1 | ||
""" | ||
|
||
# These are the platforms we will build for by default, unless further | ||
# platforms are passed in on the command line | ||
platforms = supported_platforms() | ||
|
||
# The products that we will ensure are always built | ||
products(prefix) = [ | ||
LibraryProduct(prefix, "libpcre", :libpcre) | ||
] | ||
|
||
# Dependencies that must be installed before this package can be built | ||
dependencies = [ | ||
] | ||
|
||
# Build the tarballs, and possibly a `build.jl` as well. | ||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies) | ||
|