Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions L/LibVPX/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
using BinaryBuilder

name = "LibVPX"
version = v"1.10.0"
version = v"1.15.2"

# Collection of sources required to build LibVPX
sources = [
ArchiveSource("https://github.com/webmproject/libvpx/archive/v$(version).tar.gz",
"85803ccbdbdd7a3b03d930187cb055f1353596969c1f92ebec2db839fa4f834a"),
GitSource("https://github.com/webmproject/libvpx", "d168454ecd099805c675d4a98c66f4891373302a"),
]

# Bash recipe for building across all platforms
script = raw"""
cd ${WORKSPACE}/srcdir/libvpx-*/
cd ${WORKSPACE}/srcdir/libvpx
sed -i 's/cp -p/cp/' build/make/Makefile

mkdir vpx_build && cd vpx_build
Expand All @@ -38,20 +37,16 @@ elif [[ "${bb_full_target}" == i686-w64-mingw32* ]]; then
elif [[ "${bb_full_target}" == x86_64-w64-mingw32* ]]; then
export TARGET=x86_64-win64-gcc
export CFLAGS="${CFLAGS} -fno-asynchronous-unwind-tables"
elif [[ "${bb_full_target}" == *-linux* ]]; then
export TARGET=generic-gnu
elif [[ "${bb_full_target}" == *-freebsd* ]]; then
export TARGET=generic-gnu
fi

CONFIG_OPTS=()
if [[ "${target}" == aarch64-apple-* ]]; then
# This feature isn't currently available for this platforms
# check again in the future.
CONFIG_OPTS+=(--disable-runtime-cpu-detect)
else
CONFIG_OPTS+=(--enable-runtime-cpu-detect)
if [[ "${target}" == *-freebsd* ]]; then
CONFIG_OPTS+=(--disable-multithread)
fi
CONFIG_OPTS+=(--enable-runtime-cpu-detect)
if [[ "${target}" == *-freebsd* ]]; then
CONFIG_OPTS+=(--disable-multithread)
fi

../configure --prefix=$prefix --target=${TARGET} \
Expand All @@ -77,7 +72,11 @@ fi

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = filter!(p -> arch(p) != "armv6l", supported_platforms(; experimental=true))
platforms = supported_platforms()

# # armv6l and riscv64 are not supported for cross-builds
# filter!(p -> arch(p) != "armv6l", platforms)
# filter!(p -> arch(p) != "riscv64", platforms)

# The products that we will ensure are always built
products = [
Expand All @@ -91,4 +90,5 @@ dependencies = Dependency[
]

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