-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild-libvpx
More file actions
executable file
·54 lines (43 loc) · 1022 Bytes
/
build-libvpx
File metadata and controls
executable file
·54 lines (43 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash -e
#
# libvpx
# https://chromium.googlesource.com/webm/libvpx
#
cd "$(dirname "$0")"
set -a; . .env; set +a
pkgname="libvpx"
pkgdir="${STOWDIR}/${pkgname}"
srcdir="src/libvpx"
target="$(uname -m)-darwin$(uname -r | cut -d . -f 1)-gcc"
echo "::group::$0"
cd "${srcdir}"
./configure \
--prefix="${pkgdir}" \
--target="${target}" \
--enable-shared \
--enable-runtime-cpu-detect \
--enable-pic \
--enable-vp9 \
--enable-vp9-highbitdepth \
--enable-vp9-postproc \
--enable-vp9-temporal-denoising \
--disable-dependency-tracking \
--disable-static \
--disable-debug \
--disable-docs \
--disable-examples \
--disable-tools \
--disable-unit-tests \
--disable-vp8-encoder \
"$@"
make -j4
rm -rf "${pkgdir}"
make install
for lib in "${pkgdir}"/lib/*.dylib; do
if [[ ! -L "${lib}" ]]; then
echo "install_name: '$(otool -D "${lib}" | sed -n 2p)' --> '${lib}'"
install_name_tool -id "${lib}" "${lib}"
fi
done
stow -Rd "${STOWDIR}" "${pkgname}"
echo "::endgroup::"