Skip to content

Commit fa3a73f

Browse files
committed
[asio] New package
1 parent c0f4746 commit fa3a73f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

A/asio/build_tarballs.jl

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Note that this script can accept some limited command-line arguments, run
2+
# `julia build_tarballs.jl --help` to see a usage message.
3+
using BinaryBuilder, Pkg
4+
5+
name = "asio"
6+
version = v"1.36.0"
7+
8+
# Collection of sources required to complete build
9+
sources = [
10+
GitSource("https://github.com/chriskohlhoff/asio.git", "231cb29bab30f82712fcd54faaea42424cc6e710"),
11+
]
12+
13+
# Bash recipe for building across all platforms
14+
script = raw"""
15+
cd $WORKSPACE/srcdir
16+
cd asio/asio
17+
./autogen.sh
18+
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target}
19+
make -j${nproc}
20+
make install
21+
"""
22+
23+
# These are the platforms we will build for by default, unless further
24+
# platforms are passed in on the command line
25+
all_platforms = supported_platforms()
26+
27+
# The products that we will ensure are always built
28+
products = Product[
29+
LibraryProduct("libasio", :libasio),
30+
]
31+
32+
# Dependencies that must be installed before this package can be built
33+
dependencies = []
34+
35+
# Build the tarballs, and possibly a `build.jl` as well.
36+
build_tarballs(
37+
ARGS, name, version, sources, script, all_platforms, products, dependencies;
38+
julia_compat="1.6",
39+
)

0 commit comments

Comments
 (0)