Skip to content

Commit

Permalink
[SDL2_ttf] Require Julia v1.6 and build for experimental platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Jul 22, 2021
1 parent 21113ff commit a928673
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions S/SDL2_ttf/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ sources = [
DirectorySource("./bundled"),
]

version = v"2.0.16" # <-- this version number is a lie to build for Julia v1.6

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/SDL2_ttf-*/
Expand Down Expand Up @@ -42,7 +44,7 @@ fi

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = supported_platforms()
platforms = supported_platforms(; experimental=true)

# The products that we will ensure are always built
products = [
Expand All @@ -51,19 +53,19 @@ products = [

# Dependencies that must be installed before this package can be built
dependencies = [
Dependency("Bzip2_jll"; compat="1.0.7"),
Dependency("SDL2_jll"),
Dependency("Bzip2_jll"; compat="1.0.8"),
Dependency("FreeType2_jll"),
Dependency("Glib_jll"; compat="2.68.1"),
Dependency("Graphite2_jll"),
# # TODO: Next time you build a new version of this package, make sure
# # HarfBuzz is actually needed, it doesn't look like it's the case.
# Dependency("HarfBuzz_jll"; compat="2.8.1"),
# The following libraries aren't needed for the build, but libSDL2_ttf is
# dynamically linked to them regardless.
Dependency("libpng_jll"),
# TODO: Next time you build a new version of this package, make sure
# HarfBuzz is actually needed, it doesn't look like it's the case.
Dependency("HarfBuzz_jll"),
Dependency("Graphite2_jll"),
Dependency("Glib_jll", v"2.59.0"; compat="2.59.0"),
Dependency("PCRE_jll"),
Dependency("SDL2_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 a928673

Please sign in to comment.