forked from stefanhendriks/Dune-II---The-Maker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_dependencies_osx.sh
executable file
·83 lines (70 loc) · 1.67 KB
/
install_dependencies_osx.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
#!/bin/sh
echo Make sure you have install clang version 4.2 or higher!
echo
echo This script attempts to install all dependencies of Dune II - The Maker for OS X.
echo If you wish to abort, press CTRL-C
read -n 1 -s
PROJECT_DIR=`pwd`
echo Project dir is $PROJECT_DIR
cd /tmp
if [ -d "d2tm" ]; then
echo D2TM DIR ALREADY EXISTS - REMOVING
rm -rf d2tm
fi
mkdir d2tm
cd d2tm
echo
echo
echo ================================================================
echo Installing SFML
echo ================================================================
echo
echo
# install SFML
git clone [email protected]:LaurentGomila/SFML.git SFML
cd SFML
cmake .
make install
cd ..
echo
echo
echo ================================================================
echo Installing SFGUI
echo ================================================================
echo
echo
# install SFGUI
git clone https://github.com/TankOs/SFGUI SFGUI
cd SFGUI
git checkout osx
git submodule init
git submodule update
cmake .
make install
cd ..
echo
echo
echo ================================================================
echo Installing Thor
echo ================================================================
echo
echo
# install thor
git clone [email protected]:Bromeon/Thor.git Thor
cd Thor
cmake .
make install
cd ..
echo
echo
echo ================================================================
echo Installing Boost with homebrew
echo ================================================================
echo
echo
# install boost with brew
brew install boost
cd $PROJECT_DIR
echo All dependencies installed.
echo All dependencies where checked out in /tmp/d2tm, and is still available. You can safely remove this if you desire to.
echo