Skip to content

Commit

Permalink
[Libevent] Update to 2.1.12, support AArch64 Darwin and Windows, add …
Browse files Browse the repository at this point in the history
…OpenSSL dependency (JuliaPackaging#3965)
  • Loading branch information
vchuravy authored Nov 29, 2021
1 parent 1f70df0 commit 9380612
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions L/libevent/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using BinaryBuilder, Pkg

name = "libevent"
version = v"2.1.11"
version = v"2.1.12"

# Collection of sources required to complete build
sources = [
"https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz" =>
"a65bac6202ea8c5609fd5c7e480e6d25de467ea1917c08290c521752f147283d",
ArchiveSource("https://github.com/libevent/libevent/releases/download/release-$(version)-stable/libevent-$(version)-stable.tar.gz",
"92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb"),
]

# Bash recipe for building across all platforms
Expand All @@ -21,29 +21,18 @@ make install

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = [
Platform("i686", "linux"; libc="glibc"),
Platform("x86_64", "linux"; libc="glibc"),
Platform("aarch64", "linux"; libc="glibc"),
Platform("armv7l", "linux"; libc="glibc"),
Platform("powerpc64le", "linux"; libc="glibc"),
Platform("i686", "linux"; libc="musl"),
Platform("x86_64", "linux"; libc="musl"),
Platform("aarch64", "linux"; libc="musl"),
Platform("armv7l", "linux"; libc="musl"),
Platform("x86_64", "macos"),
Platform("x86_64", "freebsd")
]
platforms = supported_platforms(; experimental=true)

# The products that we will ensure are always built
# FIXME: Name is `libevent-2-1-7.dll` but `parse_dl_name_version` strips the trailing `-7`
products = [
LibraryProduct("libevent", :libevent)
LibraryProduct(["libevent", "libevent-2-1"], :libevent)
]

# Dependencies that must be installed before this package can be built
dependencies = [

Dependency("OpenSSL_jll"),
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies, julia_compat="1.6")

0 comments on commit 9380612

Please sign in to comment.