blob: 6270b851f96b350a309634bb0522a378ac586639 (
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
|
#!/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 WebKitEFL.
apt-get install \
bison \
cmake \
flex \
g++ \
gperf \
gtk-doc-tools \
subversion \
ruby \
libicu-dev \
libxslt1-dev \
libsqlite3-dev \
libjpeg-dev \
libpng-dev \
libxt-dev \
libgl1-mesa-dev \
libgnutls-dev \
libdbus-1-dev \
libudev-dev \
liblua5.1-0-dev \
ragel \
libfreetype6-dev \
libffi-dev \
libtiff4-dev \
libenchant-dev \
libxcomposite-dev \
libatk1.0-dev \
libtheora-dev \
libvorbis-dev \
libfaad-dev \
libpulse-dev \
libxrender-dev \
libp11-kit-dev \
libgpg-error-dev \
libgcrypt11-dev
# These are dependencies necessary for running tests.
apt-get install \
apache2 \
libapache2-mod-php5 \
libruby \
xvfb
}
checkInstaller
|