Skip to content

Commit

Permalink
Merge pull request #151 from haberdashPI/libass
Browse files Browse the repository at this point in the history
Added builder for libass
  • Loading branch information
staticfloat authored Oct 22, 2019
2 parents b02d7a5 + 21b8c9e commit 6a44c41
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions L/libass/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 6a44c41

Please sign in to comment.