[JavaScriptCore] Fix FTL on platform EFL.
[WebKit-https.git] / Tools / efl / install-dependencies
1 #!/bin/bash
2
3 # This script needs to be run with root rights.
4 if [ $UID -ne 0 ]; then
5     sudo $0
6     exit 0
7 fi
8
9 function printNotSupportedMessageAndExit() {
10     echo
11     echo "Currently this script only works for distributions supporting apt-get."
12     echo "Please add support for your distribution."
13     echo
14     exit 1
15 }
16
17 function checkInstaller {
18     # apt-get - Debian based distributions
19     apt-get --version &> /dev/null
20     if [ $? -eq 0 ]; then
21         installDependenciesWithApt
22         exit 0
23     fi
24
25     printNotSupportedMessageAndExit
26 }
27
28 function installDependenciesWithApt {
29     # These are dependencies necessary for building WebKitEFL.
30     apt-get install \
31         bison \
32         cmake \
33         doxygen \
34         flex \
35         g++ \
36         gperf \
37         gtk-doc-tools \
38         libatk1.0-dev \
39         libdbus-1-dev \
40         libenchant-dev \
41         libespeak-dev \
42         libfaad-dev \
43         libffi-dev \
44         libfreetype6-dev \
45         libgcrypt11-dev \
46         libgeoclue-dev \
47         libgif-dev \
48         libgl1-mesa-dev \
49         libgnutls-dev \
50         libgpg-error-dev \
51         libicu-dev \
52         libjpeg-dev \
53         liblua5.1-0-dev \
54         libmpg123-dev \
55         libp11-kit-dev \
56         libpng-dev \
57         libpulse-dev \
58         libsqlite3-dev \
59         libssl-dev \
60         libtheora-dev \
61         libtiff4-dev \
62         libudev-dev \
63         libvorbis-dev \
64         libxcomposite-dev \
65         libxcursor-dev \
66         libxinerama-dev \
67         libxp-dev \
68         libxrandr-dev \
69         libxrender-dev \
70         libxslt1-dev \
71         libxss-dev \
72         libxt-dev \
73         libxtst-dev \
74         luajit \
75         ragel \
76         ruby \
77         subversion \
78         x11proto-print-dev
79
80     # These are dependencies necessary for running tests.
81     apt-get install \
82         apache2 \
83         libapache2-mod-php5 \
84         libruby \
85         xvfb
86 }
87
88 checkInstaller
89