Skip to content

Instantly share code, notes, and snippets.

@dysinger
Created October 24, 2009 20:58
Show Gist options
  • Save dysinger/217735 to your computer and use it in GitHub Desktop.
Save dysinger/217735 to your computer and use it in GitHub Desktop.
#!/bin/sh
cd /tmp
curl http://www.iro.umontreal.ca/~gambit/download/gambit/v4.5/source/gambc-v4_5_2.tgz | tar xz
cd gambc-v4_5_2
export CC='/usr/bin/gcc-4.0'
./configure --prefix=$HOME/Homebrew/Cellar/gambit/4.5.2
make && make install
cd ..
rm -rf gambc-v4_5_2
curl http://www.iro.umontreal.ca/~gambit/download/gambit/v4.5/source/gambc-v4_5_2.tgz | tar xz
cd gambc-v4_5_2
export CC='/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.2.sdk'
./configure --prefix=$HOME/Homebrew/Cellar/gambit/iphone-sim
make && make install
cd ..
rm -rf gambc-v4_5_2
curl http://www.iro.umontreal.ca/~gambit/download/gambit/v4.5/source/gambc-v4_5_2.tgz | tar xz
cd gambc-v4_5_2
export CC='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk'
./configure --host=arm --prefix=$HOME/Homebrew/Cellar/gambit/iphone-os
make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment