blob: a9cfffd8a529e65e3a13a63f2ba793f17b3a87f1 (
plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
#!/bin/bash
# This script needs to be run with root rights.
if [ $UID -ne 0 ]; then
sudo $0
exit 0
fi
function printNotSupportedMessageAndExit() {
echo
echo "Currently this script only works for distributions supporting apt-get."
echo "Please add support for your distribution."
echo
exit 1
}
function checkInstaller {
# apt-get - Debian based distributions
apt-get --version &> /dev/null
if [ $? -eq 0 ]; then
installDependenciesWithApt
exit 0
fi
printNotSupportedMessageAndExit
}
function installDependenciesWithApt {
# These are dependencies necessary for building Qt and QtWebKit.
packages=" \
g++ \
binutils \
libc6-dev \
make \
cmake \
ninja-build \
bison \
flex \
gawk \
gperf \
perl \
python \
ruby \
libdbus-1-dev \
libenchant-dev \
libgl1-mesa-dev \
libglu1-mesa-dev \
libhyphen-dev \
libjpeg-dev \
libpng12-dev \
libsqlite3-dev \
libssl-dev \
libwebp-dev \
libx11-dev \
libx11-xcb-dev
libxcb-glx0-dev
libxcb1-dev \
libxcb-keysyms1-dev \
libxcb-image0-dev \
libxcb-shm0-dev \
libxcb-icccm4-dev \
libxcb-sync0-dev \
libxcb-xfixes0-dev \
libxcb-xinerama0-dev \
libxcb-shape0-dev \
libxcb-randr0-dev \
libxcb-render-util0-dev \
libxext-dev \
libxfixes-dev \
libxrender-dev \
zlib1g-dev
"
# These are dependencies necessary for running tests.
packages="$packages \
apache2 \
curl \
libapache2-mod-php5 \
xvfb"
# These are dependencies necessary for building GLib and GStreamer.
packages="$packages \
git-core \
gettext \
libtool-bin \
automake \
libfaad-dev \
libmpg123-dev \
libopus-dev \
libtheora-dev \
libvorbis-dev \
"
# These are dependencies necessary for building GLib and GStreamer.
packages="$packages \
libjson-glib-dev \
libpulse-dev \
"
apt-get install $packages
}
checkInstaller
|