From 69531c387bc774a7d48cb7f2699d8bbb8366b017 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 15 Oct 2013 07:47:25 -0400 Subject: [PATCH] Add mac script for installing SFML 2.1 --- install/sfml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 install/sfml diff --git a/install/sfml b/install/sfml new file mode 100644 index 00000000..7db6ebe5 --- /dev/null +++ b/install/sfml @@ -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