Change this to whatever root you used to install the dependency libraries. In my case, I've changed it to:
Now, find the line that says:
OSX_STATIC_LIBS := `sdl-config --static-libs`
Add whatever prefix you used when you built SDL, to the sdl-config path. Like this, for example:
OSX_STATIC_LIBS := `/opt/1028libs/bin/sdl-config --static-libs`
Next, find the section that starts with:
This will ensure we link zlib in statically instead of dynamically, which avoids some obscure problems we've had on 10.2.x.
When you've done the above, it's time to run ./configure. For each library you want to include, you have to tell ScummVM where it can find it.
So, for me, that would be:
* Copy 'scummvm-static' from the PPC build directory, to a file called 'scummvm-static-ppc' in whatever build directory you chose.
* Copy 'scummvm-static' from the Intel build directory, to 'scummvm-static-x86' in the same directory.
* Run 'lipo -create scummvm-static-x86 scummvm-static-ppc -output scummvm-static'
* Run 'make osxsnap'
Tada! The resulting ScummVM-snapshot.dmg is a package of ScummVM that should work on MacOS X 10.2, 10.3, 10.4, 10.5, both Intel and PPC builds.