Add mac script for installing SFML 2.1

This commit is contained in:
Henrik Lissner 2013-10-15 07:47:25 -04:00
parent 9e918a31f1
commit 69531c387b

26
install/sfml Normal file
View file

@ -0,0 +1,26 @@
#!/usr/bin/env zsh
if is_mac; then
# Get SFML 2.1
if [ ! -d /Library/Frameworks/SFML.framework ]; then
echo-g "==> Installing SFML 2.1"
mkdir ~/.temp-sfml
cd ~/.temp-sfml
wget http://www.sfml-dev.org/download/sfml/2.1/SFML-2.1-osx-clang-universal.tar.gz
tar -xvf SFML-2.1-osx-clang-universal.tar.gz
cd SFML-2.1-osx-clang.universal
sudo ./install.sh
rm -rf ~/.temp-sfml
pip install git+git://github.com/Sonkun/python-sfml.git
else
echo-r "==> SFML 2.1 already installed"
fi
elif is_deb; then
echo-r "==> SFML install script for linux is incomplete!"
fi