-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsfml-setup.sh
executable file
·35 lines (29 loc) · 1.04 KB
/
sfml-setup.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
#!/bin/sh
echo "This script will set up SFML on your system."
echo "Which distribution are you running?"
echo " [0] Fedora (or CentOS, RedHat, etc.)"
echo " [1] Debian (or Ubuntu, Mint, etc.)"
read -p "Choice [0,1]: " distro
case $distro in
0) yum install -y wget git cmake mesa-libGL-devel libXrandr-devel freetype-devel glew-devel libjpeg-devel openal-soft-devel libsndfile-devel fontconfig-devel gcc-c++
;;
1) apt-get install -y cmake libpthread-stubs0-dev libgl1-mesa-dev libx11-dev libxrandr-dev libfreetype6-dev libglew1.5-dev libjpeg8-dev libsndfile1-dev libopenal-dev libfontconfig1-dev
;;
*) echo Invalid Input;
exit 1
;;
esac
wget https://github.com/LaurentGomila/SFML/tarball/master -O sfml.tgz
tar -xvzf sfml.tgz
rm -f sfml.tgz
cd LaurentGomila-SFML-*
cmake .
make install -j 4
cd ../
mv LaurentGomila-SFML-* sfml
cp /usr/local/share/SFML/cmake/Modules/FindSFML.cmake /usr/share/cmake/Modules/
git clone git://boxbox.org/SFGUI.git
cd SFGUI
cmake .
make install -j 4
echo "Installation Complete!"