-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_sfml.sh
executable file
·38 lines (26 loc) · 1.01 KB
/
install_sfml.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
#!/bin/sh
mkdir ~/sfml2build
cd ~/sfml2build
wget https://github.com/SFML/SFML/archive/c43b5991afe815ef92a812d67f8af12b0143adfd.zip -O master.zip
unzip master.zip
rm master.zip
cd SFML-c43b5991afe815ef92a812d67f8af12b0143adfd
git apply /sfml.patch
cat CMakeLists.txt.rej
DEBIAN_FRONTEND=noninteractive apt-get install -y libpthread-stubs0-dev libgl1-mesa-dev libx11-dev libxrandr-dev libfreetype6-dev libglew1.5-dev libjpeg8-dev libsndfile1-dev libopenal-dev cmake g++ lcov zip
echo building make for dynamic release
cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=TRUE
make -j2
make install
#echo building make for dynamic debug
#cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=TRUE
#make
#make install
echo building make for static release
cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=FALSE
make
make install
#echo building make for static debug
#cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=FALSE
#make
#make install