forked from zimbatm/ffmpeg-static
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-ubuntu.sh
More file actions
executable file
·45 lines (41 loc) · 882 Bytes
/
build-ubuntu.sh
File metadata and controls
executable file
·45 lines (41 loc) · 882 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
#!/bin/bash
sudo apt-get install build-essential curl tar pkg-config
sudo apt-get -y --force-yes install \
autoconf \
automake \
build-essential \
cmake \
frei0r-plugins-dev \
gawk \
libass-dev \
libfreetype6-dev \
libopencore-amrnb-dev \
libopencore-amrwb-dev \
libsdl1.2-dev \
libspeex-dev \
libssl-dev \
libtheora-dev \
libtool \
libva-dev \
libvdpau-dev \
libvo-amrwbenc-dev \
libvorbis-dev \
libwebp-dev \
libxcb1-dev \
libxcb-shm0-dev \
libxcb-xfixes0-dev \
libxvidcore-dev \
pkg-config \
texi2html \
zlib1g-dev
# For 12.04
# libx265 requires cmake version >= 2.8.8
# 12.04 only have 2.8.7
ubuntu_version=`lsb_release -rs`
need_ppa=`echo $ubuntu_version'<=12.04' | bc -l`
if [ $need_ppa -eq 1 ]; then
sudo add-apt-repository ppa:roblib/ppa
sudo apt-get update
sudo apt-get install cmake
fi
./build.sh "$@"