-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathzzlibvpx.sh
More file actions
executable file
·33 lines (26 loc) · 806 Bytes
/
zzlibvpx.sh
File metadata and controls
executable file
·33 lines (26 loc) · 806 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
#!/bin/bash
# install libvpx
set -e
ROOTDIR=${ZZROOT:-$HOME/app}
NAME="libvpx"
TYPE=".tar.gz"
FILE="$NAME$TYPE"
DOWNLOADURL="https://chromium.googlesource.com/webm/libvpx.git/+archive/refs/heads/master.tar.gz"
echo $NAME will be installed in "$ROOTDIR"
mkdir -p "$ROOTDIR/downloads"
cd "$ROOTDIR"
if [ -f "downloads/$FILE" ]; then
echo "downloads/$FILE exist"
else
echo "$FILE does not exist, downloading from $DOWNLOADURL"
wget $DOWNLOADURL -O $FILE
mv $FILE downloads/
fi
mkdir -p src/$NAME
tar xf downloads/$FILE -C src/$NAME
cd src/$NAME
export CXXFLAGS=' -fPIC'
export CFLAGS=' -fPIC'
./configure --prefix="$ROOTDIR" --disable-examples --disable-unit-tests --enable-vp9-highbitdepth --as=yasm --enable-shared
make -j"$(nproc)" && make install
echo $NAME installed on "$ROOTDIR"