Distributing a SDL Mac app

So, I’ve got a game that I ported to the mac using SDL. I’m new to macs so
I’m not sure what the best way to package the game for download is. So,
here’s how I set it up. Could someone tell me if this is a good way or if
there’s something better?

I used the package utility to make a .pkg file from my game files. I then
made a .mpkg file of my game.pkg and all the SDL frameworks I used (SDL,
SDL_ttf, SDL_mixer). I then tar’d and gzipped that to a single file. I had
a friend test it out and it installed and ran fine on his mac so I’m
reasonably sure this method works. But, is this the best/appropriate way
to do it?

It’s definitely appropriate, as dynamic linking to SDL is generally
preferred. The most popular distribution method seems to be including
the frameworks in the .app/Contents/Frameworks/ directory so that users
just copy the .app bundle to install it (which also makes removal
easier). Basically this means users get into the game more quickly,
which is important (some users might not run the game at all if it
requires a lengthy installation - commercial games get away with this,
but gamers expect - and appreciate - free stuff to be ready-to-run).
This also means you’ll get less email from people who had trouble
installing the program.

However, you may still want to use .mpkg for an easier upgrade path
when a new version of the frameworks are released or bugs get fixed.
This isn’t such a big deal nowadays that most of the kinks in the OS X
port have been worked out (it’s had almost 2 years to mature now).

Cheers,
DarrellOn Saturday, May 3, 2003, at 03:02 PM, Bolton at bluedojo.com wrote:

So, I've got a game that I ported to the mac using SDL.  I'm new to macs so I'm not sure what the best way to package the game for download is.  So, here's how I set it up.  Could someone tell me if this is a good way or if there's something better?

I used the package utility to make a .pkg file from my game files.  I then made a .mpkg file of my game.pkg and all the SDL frameworks I used (SDL, SDL_ttf, SDL_mixer).  I then tar'd and gzipped that to a single file.  I had a friend test it out and it installed and ran fine on his mac so I'm reasonably sure this method works.  But, is this the best/appropriate way to do it?

Hi all,

Just a quick question,…
Are mutex locks resolved in calling order ?

Scenario:

A thread has locked our mutex and is doing it’s thing. ( let’s call this thread 1 )
2 other threads ( let’s call this 2 and 3 in calling order ) also call the lock mutex for this task and thus have to wait untill our first thread is finished.
now… once’s thread 1 is finished is there a mechanism that makes sure thread 2 will be next or could it be either 2 or 3 dependant on polling or whatever.

GreeTz--------------------------------
| Dinand Vanvelzen, |
| Programmer, |

Software Engineering student