generated from mswieboda/game_sf_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
28 lines (22 loc) · 786 Bytes
/
run.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
#!/usr/bin/env bash
dir=`dirname "$0"`
LIB=/usr/local/lib
FRAMEWORKS=/Library/Frameworks
SFML_SYSTEM_LIB=libsfml-system.2.5.1.dylib
SFML_INCLUDE_DIR=SFML
SFML_EXTLIB=OpenAL.framework/OpenAL
# check if sfml 2.5.1 libs are installed
if ! [[ -f $LIB/$SFML_SYSTEM_LIB ]]; then
echo "$LIB/$SFML_SYSTEM_LIB does not exist."
echo "installing SFML libraries to $LIB ..."
cp $dir/sfml/lib/* $LIB
echo "installed SFML libraries to $LIB"
fi
# check if sfml ext libs are installed
if ! [[ -f $FRAMEWORKS/$SFML_EXTLIB ]]; then
echo "$FRAMEWORKS/$SFML_EXTLIB does not exist."
echo "installing SFML external dependencies to $FRAMEWORKS (requires password) ..."
sudo cp -r $dir/sfml/extlibs/* $FRAMEWORKS
echo "installed SFML external dependencies to $FRAMEWORKS"
fi
$dir/phase.o