-
Notifications
You must be signed in to change notification settings - Fork 3
/
build-libvpx
executable file
·48 lines (39 loc) · 906 Bytes
/
build-libvpx
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
#!/usr/bin/env bash -e
#
# libvpx
# https://chromium.googlesource.com/webm/libvpx
#
cd "$(dirname "$0")"
set -a; source build.env; set +a
pkgname="libvpx"
pkgdir="${STOWDIR}/${pkgname}"
srcdir="src/libvpx"
cd "${srcdir}"
./configure \
--prefix="${pkgdir}" \
--enable-shared \
--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}"
# vi:set ts=2 sw=2 et: