From 21b8c9e85d1e8a192263464018c5c3e15de82f69 Mon Sep 17 00:00:00 2001 From: haberdashpi Date: Tue, 22 Oct 2019 12:37:32 -0400 Subject: [PATCH] Added builder for libass --- L/libass/build_tarballs.jl | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 L/libass/build_tarballs.jl diff --git a/L/libass/build_tarballs.jl b/L/libass/build_tarballs.jl new file mode 100644 index 00000000000..94a1ab3979a --- /dev/null +++ b/L/libass/build_tarballs.jl @@ -0,0 +1,40 @@ +# Note that this script can accept some limited command-line arguments, run +# `julia build_tarballs.jl --help` to see a usage message. +using BinaryBuilder +name = "libass" +version = v"0.14.0" + +# Collection of sources required to build libass +sources = [ + "https://github.com/libass/libass/releases/download/$(version)/libass-$(version).tar.xz" => + "881f2382af48aead75b7a0e02e65d88c5ebd369fe46bc77d9270a94aa8fd38a2", +] + +# Bash recipe for building across all platforms +script = raw""" +cd $WORKSPACE/srcdir/libass-* +apk add nasm +./configure --prefix=$prefix --host=$target --disable-require-system-font-provider +make -j${nproc} +make install +""" + +# 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 = [ + LibraryProduct("libass", :libass), +] + +# Dependencies that must be installed before this package can be built +dependencies = [ + "FreeType2_jll", + "FriBidi_jll", + "Bzip2_jll", + "Zlib_jll" +] + +# Build the tarballs, and possibly a `build.jl` as well. +build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)