2013-10-15 04:47:25 -07:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
if is_mac; then
|
|
|
|
|
2013-10-21 01:19:12 -07:00
|
|
|
keep_alive
|
|
|
|
|
2013-10-15 04:47:25 -07:00
|
|
|
# Get SFML 2.1
|
|
|
|
if [ ! -d /Library/Frameworks/SFML.framework ]; then
|
2013-10-18 04:03:28 -07:00
|
|
|
echo_g "==> Installing SFML 2.1"
|
2013-10-15 04:47:25 -07:00
|
|
|
|
|
|
|
mkdir ~/.temp-sfml
|
|
|
|
cd ~/.temp-sfml
|
2013-10-20 15:51:25 -07:00
|
|
|
|
|
|
|
SFML="SFML-2.1-osx-gcc-universal.tar.gz"
|
|
|
|
|
|
|
|
# wget http://www.sfml-dev.org/download/sfml/2.1/SFML-2.1-osx-clang-universal.tar.gz
|
|
|
|
wget http://www.sfml-dev.org/download/sfml/2.1/$SFML
|
|
|
|
tar -xvf $SFML
|
|
|
|
cd $SFML
|
2013-10-15 04:47:25 -07:00
|
|
|
sudo ./install.sh
|
|
|
|
rm -rf ~/.temp-sfml
|
|
|
|
|
2013-10-21 01:19:12 -07:00
|
|
|
sudo pip install git+git://github.com/Sonkun/python-sfml.git@v1.3
|
2013-10-15 04:47:25 -07:00
|
|
|
else
|
2013-10-18 04:03:28 -07:00
|
|
|
echo_r "==> SFML 2.1 already installed"
|
2013-10-15 04:47:25 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
elif is_deb; then
|
|
|
|
|
2013-10-18 04:03:28 -07:00
|
|
|
echo_r "==> SFML install script for linux is incomplete!"
|
2013-10-15 04:47:25 -07:00
|
|
|
|
|
|
|
fi
|