Jump to navigation Jump to search
no edit summary
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.
At this point, we also need to make sure that the configure script finds the correct version of sdl-config (In other words, the one we compiled ourselves and put, for example, in /opt/1028libs.
We do this thusly:
export PATH="/opt/1028libs/bin:$PATH"
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 'strip' on both of the above files to remove debugging info (otherwise the files will be tens of megabytes large).
* 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.


Navigation menu