33using BinaryBuilder
44
55name = " LibVPX"
6- version = v " 1.10.0 "
6+ version = v " 1.15.2 "
77
88# Collection of sources required to build LibVPX
99sources = [
10- ArchiveSource (" https://github.com/webmproject/libvpx/archive/v$(version) .tar.gz" ,
11- " 85803ccbdbdd7a3b03d930187cb055f1353596969c1f92ebec2db839fa4f834a" ),
10+ GitSource (" https://github.com/webmproject/libvpx" , " d168454ecd099805c675d4a98c66f4891373302a" ),
1211]
1312
1413# Bash recipe for building across all platforms
1514script = raw """
16- cd ${WORKSPACE}/srcdir/libvpx-*/
15+ cd ${WORKSPACE}/srcdir/libvpx
1716sed -i 's/cp -p/cp/' build/make/Makefile
1817
19- mkdir vpx_build && cd vpx_build
2018apk add diffutils yasm
2119
2220if [[ "${bb_full_target}" == i686-linux-* ]]; then
@@ -38,22 +36,19 @@ elif [[ "${bb_full_target}" == i686-w64-mingw32* ]]; then
3836elif [[ "${bb_full_target}" == x86_64-w64-mingw32* ]]; then
3937 export TARGET=x86_64-win64-gcc
4038 export CFLAGS="${CFLAGS} -fno-asynchronous-unwind-tables"
39+ elif [[ "${bb_full_target}" == *-linux* ]]; then
40+ export TARGET=generic-gnu
4141elif [[ "${bb_full_target}" == *-freebsd* ]]; then
4242 export TARGET=generic-gnu
4343fi
4444
4545CONFIG_OPTS=()
46- if [[ "${target}" == aarch64-apple-* ]]; then
47- # This feature isn't currently available for this platforms
48- # check again in the future.
49- CONFIG_OPTS+=(--disable-runtime-cpu-detect)
50- else
51- CONFIG_OPTS+=(--enable-runtime-cpu-detect)
52- if [[ "${target}" == *-freebsd* ]]; then
53- CONFIG_OPTS+=(--disable-multithread)
54- fi
46+ CONFIG_OPTS+=(--enable-runtime-cpu-detect)
47+ if [[ "${target}" == *-freebsd* ]]; then
48+ CONFIG_OPTS+=(--disable-multithread)
5549fi
5650
51+ mkdir vpx_build && cd vpx_build
5752../configure --prefix=$prefix --target=${TARGET} \
5853 --as=yasm \
5954 --enable-postproc \
7772
7873# These are the platforms we will build for by default, unless further
7974# platforms are passed in on the command line
80- platforms = filter! (p -> arch (p) != " armv6l " , supported_platforms (; experimental = true ) )
75+ platforms = supported_platforms ()
8176
8277# The products that we will ensure are always built
8378products = [
@@ -91,4 +86,5 @@ dependencies = Dependency[
9186]
9287
9388# Build the tarballs, and possibly a `build.jl` as well.
94- build_tarballs (ARGS , name, version, sources, script, platforms, products, dependencies; preferred_gcc_version= v " 8" , julia_compat= " 1.6" , lock_microarchitecture= false )
89+ build_tarballs (ARGS , name, version, sources, script, platforms, products, dependencies;
90+ julia_compat= " 1.6" , lock_microarchitecture= false , preferred_gcc_version= v " 8" )
0 commit comments