-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·65 lines (57 loc) · 2.44 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
#!/bin/bash
echo "\033[0;33mChecking required libraries...\033[0m"
if brew ls --versions sfml > /dev/null; then
echo "\033[0;36mSFML is already installed\033[0m"
else
echo "\033[0;31mSFML is required in order to start the game. Please wait until it is installed\033[0m"
brew install sfml
echo "\033[0;32mSFML installation completed\033[0m"
fi
if brew ls --versions sdl2 > /dev/null; then
echo "\033[0;36mSDL2 is already installed\033[0m"
else
echo "\033[0;31mSDL2 is required in order to start the game. Please wait until it is installed\033[0m"
brew install sdl2
echo "\033[0;32mSDL2 installation completed\033[0m"
fi
if brew ls --versions sdl2_image > /dev/null; then
echo "\033[0;36mSDL2_Image is already installed\033[0m"
else
echo "\033[0;31mSDL2_Image is required in order to start the game. Please wait until it is installed\033[0m"
brew install sdl2_image
echo "\033[0;32mSDL2_Image installation completed\033[0m"
fi
if brew ls --versions sdl2_ttf > /dev/null; then
echo "\033[0;36mSDL2_TTF is already installed\033[0m"
else
echo "\033[0;31mSDL2_TTF is required in order to start the game. Please wait until it is installed\033[0m"
brew install sdl2_ttf
echo "\033[0;32mSDL2_TTF installation completed\033[0m"
fi
if brew ls --versions glfw > /dev/null; then
echo "\033[0;36mGLFW is already installed\033[0m"
else
echo "\033[0;31mGLFW is required in order to start the game. Please wait until it is installed\033[0m"
brew install glfw
echo "\033[0;32mGLFW installation completed\033[0m"
fi
if brew ls --versions freetype > /dev/null; then
echo "\033[0;36mFreeType is already installed\033[0m"
else
echo "\033[0;31mFreeType is required in order to start the game. Please wait until it is installed\033[0m"
brew install freetype
echo "\033[0;32mFreeType installation completed\033[0m"
fi
if brew ls --versions ftgl > /dev/null; then
echo "\033[0;36mFTGL is already installed\033[0m"
else
echo "\033[0;31mFTGL is required in order to start the game. Please wait until it is installed\033[0m"
brew install ftgl
echo "\033[0;32mFTGL installation completed\033[0m"
fi
echo "\033[0;33mDownloading and installing a SOIL library (macos compatible)...\033[0m"
git clone https://github.com/itiievskyi/SOIL-recompiled.git ./temp-soil 2> /dev/null
mv ./temp-soil/SOIL.h ~/.brew/include/ 2> /dev/null
mv ./temp-soil/libSOIL.a ~/.brew/lib/ 2> /dev/null
rm -rf ./temp-soil/ 2> /dev/null
echo "\033[0;32mSOIL installation completed\033[0m"