forked from pyke369/sffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathubuntu-prereq
executable file
·55 lines (55 loc) · 1.54 KB
/
ubuntu-prereq
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
55
#!/bin/bash
HD=`cd "${0%/*}" 2> /dev/null; echo $PWD`
#
arch1() {
case `uname -m` in
i386 | i486 | i586 | i686 )
echo i386
;;
x86_64 | x64 )
echo amd64
;;
* )
uname -m
;;
esac
return 0
}
#
[ -f .prereq_done ] && exit 0
apt-get update
[ $? -ne 0 ] && exit 1
apt-get -y install gcc make build-essential
[ $? -ne 0 ] && exit 1
apt-get -y install cmake git mercurial subversion
[ $? -ne 0 ] && exit 1
# If official cmake is too old, compile from sources!
# (see cmake/buil_cmake)
apt-get -y install autoconf libtool autoconf-archive pkg-config
[ $? -ne 0 ] && exit 1
apt-get -y install devscripts debhelper curl
[ $? -ne 0 ] && exit 1
apt-get -y install doxygen asciidoc xmlto gtk-doc-tools graphviz
[ $? -ne 0 ] && exit 1
apt-get -y install libssl-dev libxml2-dev libfreetype6-dev
[ $? -ne 0 ] && exit 1
apt-get -y install libpixman-1-dev libxext-dev
[ $? -ne 0 ] && exit 1
apt-get -y install libsdl1.2-dev libsdl2-dev libsdl2-image-dev
[ $? -ne 0 ] && exit 1
apt-get -y install libjpeg-dev libpng-dev libtiff-dev libgif-dev libimlib2-dev
[ $? -ne 0 ] && exit 1
apt-get -y install libusb-1.0-0-dev libncurses5-dev libgpm-dev
[ $? -ne 0 ] && exit 1
apt-get -y install qt4-dev-tools libgtk2.0-dev libsqlite3-dev
[ $? -ne 0 ] && exit 1
apt-get -y install openjdk-8-jdk ant ruby-dev
[ $? -ne 0 ] && exit 1
update-alternatives --set java /usr/lib/jvm/java-8-openjdk-`arch1`/jre/bin/java
[ $? -ne 0 ] && exit 1
if [ ! -s /usr/include/linux/media.h ]; then
cp "$HD/media.h" /usr/include/linux
[ $? -ne 0 ] && exit 1
fi
#
exit 0