Skip to content

Commit 6f508fd

Browse files
authored
LibVPX: New version 1.15.2 (#11596)
* LibVPX: New version 1.15.2 * LibVPX: Disable -march * LibVPX: Allow hardware-specific optimizations
1 parent 4afb2b5 commit 6f508fd

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

L/LibVPX/build_tarballs.jl

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,18 @@
33
using BinaryBuilder
44

55
name = "LibVPX"
6-
version = v"1.10.0"
6+
version = v"1.15.2"
77

88
# Collection of sources required to build LibVPX
99
sources = [
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
1514
script = raw"""
16-
cd ${WORKSPACE}/srcdir/libvpx-*/
15+
cd ${WORKSPACE}/srcdir/libvpx
1716
sed -i 's/cp -p/cp/' build/make/Makefile
1817
19-
mkdir vpx_build && cd vpx_build
2018
apk add diffutils yasm
2119
2220
if [[ "${bb_full_target}" == i686-linux-* ]]; then
@@ -38,22 +36,19 @@ elif [[ "${bb_full_target}" == i686-w64-mingw32* ]]; then
3836
elif [[ "${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
4141
elif [[ "${bb_full_target}" == *-freebsd* ]]; then
4242
export TARGET=generic-gnu
4343
fi
4444
4545
CONFIG_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)
5549
fi
5650
51+
mkdir vpx_build && cd vpx_build
5752
../configure --prefix=$prefix --target=${TARGET} \
5853
--as=yasm \
5954
--enable-postproc \
@@ -77,7 +72,7 @@ fi
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
8378
products = [
@@ -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

Comments
 (0)