forked from AlanValdevenito/Worms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
89 lines (70 loc) · 2.06 KB
/
install.sh
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
#!/usr/bash
green=`tput setaf 2`
echo "Instalando dependencias\n"
sudo apt-get install clang -y
sudo apt-get install make -y
sudo apt-get -y install cmake -y
sudo apt-get install build-essential -y
sudo apt install -y qtcreator qtbase5-dev qt5-qmake cmake
sudo apt-get install libqt5multimedia5-plugins -y
sudo apt-get install qtmultimedia5-dev -y
sudo apt-get install libyaml-cpp-dev -y
sudo apt-get install libbox2d-dev -y
SDL_IMAGE_URL="https://github.com/libsdl-org/SDL_image/releases/download/release-2.6.3/SDL2_image-2.6.3.zip"
SDL_MIXER_URL="https://github.com/libsdl-org/SDL_mixer/releases/download/release-2.6.3/SDL2_mixer-2.6.3.zip"
SDL_TTF_URL="https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.2/SDL2_ttf-2.20.2.zip"
SDL2PP_URL="https://github.com/libSDL2pp/libSDL2pp/archive/refs/tags/0.18.1.zip"
SDL_DIR="sdl"
sudo apt-get install libjpeg-dev \
libpng-dev \
libfreetype-dev \
libopusfile-dev \
libflac-dev \
libxmp-dev \
libfluidsynth-dev \
libwavpack-dev \
libmodplug-dev \
libsdl2-dev -y
mkdir -p "$SDL_DIR"
echo "Descargando SDL image\n"
wget "$SDL_IMAGE_URL" -P "$SDL_DIR"
wget "$SDL_MIXER_URL" -P "$SDL_DIR"
wget "$SDL_TTF_URL" -P "$SDL_DIR"
wget "$SDL2PP_URL" -P "$SDL_DIR"
unzip "$SDL_DIR/SDL2_image-2.6.3.zip" -d "$SDL_DIR"
unzip "$SDL_DIR/SDL2_mixer-2.6.3.zip" -d "$SDL_DIR"
unzip "$SDL_DIR/SDL2_ttf-2.20.2.zip" -d "$SDL_DIR"
unzip "$SDL_DIR/0.18.1.zip" -d "$SDL_DIR"
cd "$SDL_DIR/SDL2_image-2.6.3"
mkdir build
cd build
cmake ..
make -j4
sudo make install
cd ../..
cd "SDL2_mixer-2.6.3"
mkdir build
cd build
cmake ..
make -j4
sudo make install
cd ../..
cd "SDL2_ttf-2.20.2"
mkdir build
cd build
cmake ..
make -j4
sudo make install
cd ../..
cd "libSDL2pp-0.18.1"
mkdir build
cd build
cmake ..
make -j4
sudo make install
cd ../../..
echo ${green}"Instalando worms\n"
mkdir build
cd build
sudo cmake ..
sudo make