Permalink
Browse files

Imported first version of Mac pack (Intel only).

  • Loading branch information...
jacius committed Oct 28, 2009
1 parent ab29e3f commit ef425e77e025cdd587a06a5b4572541dfe66bf23
View
@@ -0,0 +1,65 @@
+
+Rubygame Intel Mac Library Pack README GO!
+
+This library pack contains all the libraries and extras you need to
+run Rubygame on an Intel Mac using the Ruby version installed by
+default with Mac OS X.
+
+These libraries are only compiled for Intel Mac. If you are using a
+PowerPC Mac, this pack won't help you at all, sorry. I hope to
+put together a Universal pack sometime in the future.
+
+For an automated install, double-click on "install.sh".
+The install script will do 5 things:
+
+ 1. Ask for your password (actually, it's the sudo command asking).
+ You must provide your password to sudo so that the script can
+ install all the files.
+
+ 2. Copy the files in the "lib/" directory to "/usr/local/lib/".
+
+ 3. Copy "bin/rsdl" to "/usr/local/bin/rsdl".
+
+ 4. Install the gem using "sudo gem install ffi-0.5.1-darwin.gem".
+
+ 5. Install Rubygame with "sudo gem install rubygame".
+
+If there were no errors, you can now run Rubygame apps, using rsdl
+instead of the normal ruby command. So, instead of this:
+
+ ruby my_game.rb
+
+Type this:
+
+ rsdl my_game.rb
+
+Remember, you *must* use rsdl to run Rubygame apps! Regular ruby will
+not work, you would only get a bunch of errors.
+
+(By the way, if you are using a Ruby version other than the default
+installed with Mac OS X, you must compile rsdl yourself. You should
+compile and install SDL 1.2.14 from the source before compiling rsdl.)
+
+The following software is included in this pack:
+
+* flac-1.2.1
+* freetype-2.3.9
+* libmikmod-3.1.11
+* libogg-1.1.3
+* libvorbis-1.1.0
+* SDL_image-1.2.8
+* SDL_mixer-1.2.9
+* SDL_ttf-2.0.9
+* SDL-1.2.14
+* smpeg-r389
+* ffi-0.5.1 (with gemspec tweaks)
+* rsdl (http://github.com/knu/rsdl)
+
+Equivalent source code is available online:
+
+ http://download.rubygame.org/files/extras/source/
+
+
+Enjoy!
+
+- John Croisant, jacius@gmail.com
View
BIN bin/rsdl
Binary file not shown.
View
Binary file not shown.
View
@@ -0,0 +1,77 @@
+#!/bin/sh
+
+bindest="/usr/local/bin/"
+libdest="/usr/local/lib/"
+
+function wait_for_user {
+ echo
+ echo "-- Press Return to close this window --"
+ read
+}
+
+trap wait_for_user EXIT
+
+echo '======================================================================'
+echo '|| Rubygame Intel Mac Library Pack Install Time GO! ||'
+echo '======================================================================'
+echo
+
+# Check processor architecture.
+case `uname -p` in
+ i386)
+ # Good, it's the correct architecture for these libs. We can continue.
+ ;;
+ *)
+ echo "Sorry, this pack only works for Intel Macs. :("
+ exit 1
+ ;;
+esac
+
+echo "This script will help you install the files in this pack."
+echo "It will do 5 things:"
+echo
+echo " 1. Ask for your password (actually, it's the sudo command asking)."
+echo " You must provide your password to sudo so that the script can"
+echo " install all the files."
+echo
+echo " 2. Copy the files in the \"lib/\" directory to \"/usr/local/lib/\"."
+echo
+echo " 3. Copy \"bin/rsdl\" to \"/usr/local/bin/rsdl\"."
+echo
+echo " 4. Install the gem using \"sudo gem install ffi-*.gem\"."
+echo
+echo " 5. Install Rubygame with \"sudo gem install rubygame\"."
+echo
+echo "You will be asked before any files are overwritten by steps 2 or 3."
+echo "If you prefer, you can cancel this script and install the files yourself."
+echo
+echo "Enter your password to begin, or close this window to cancel."
+echo
+
+sudo -v # prompt for password
+
+# Did sudo fail?
+if [ $? != 0 ]
+then
+ echo
+ echo "You must provide your password to use this installer."
+ exit 1
+fi
+
+thisdir=`dirname $0`
+
+echo "Installing libs..."
+sudo cp -Rvi $thisdir/lib/* $libdest
+
+echo "Installing rsdl..."
+sudo cp -Rvi $thisdir/bin/* $bindest
+
+echo "Installing ffi gem..."
+sudo gem install --local $thisdir/ffi-*.gem
+
+echo "Installing rubygame..."
+sudo gem install --remote rubygame
+
+echo
+echo "That's all, folks. If there were no errors above, installation is complete\!"
+echo "Remember to run 'rsdl my_game.rb', not 'ruby my_game.rb'\!"
View
Binary file not shown.
View
Binary file not shown.
View
View
View
Binary file not shown.
View
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
View
Binary file not shown.
View
View
Binary file not shown.
View
View
View
Binary file not shown.
View
View
View
Binary file not shown.
View
View
Binary file not shown.
View
View
Binary file not shown.
View

0 comments on commit ef425e7

Please sign in to comment.