Requirements:
1) XCode 1.5 and gcc update (available at developer.apple.com)
2) Fink installed (fink.sf.net, follow all the install instructions for self update etc..)
3) of course, latest CVS of CrystalSpace, cal3d, cel, and planeshift
4) Jam. You can get it here:
http://public.perforce.com/public/jam/jam-2.5.tar Build and install it wherever you like.
5) MySQL (you can download it at
http://www.mysql.com/)
6) The following fink packages:
autoconf2.5
autogen
autogen-shlibs
autogen-dev
automake1.8
freetype2
freetype2-dev
freetype2-shlibs
libiconv
libiconv-dev
libiconv-shlibs
libjpeg-bin
libjpeg-shlibs
libjpeg-dev
libogg
libogg-shlibs
libpng3
libpng3-shlibs
libtool14
libtool14-shlibs
libvorbis0
libvorbis0-shlibs
m4
OK, you\'re ready. Make sure your fink paths are setup correctly (read the website for info on how to do that. Should do it automatically when you install fink).
Steps:
1) Build and install cal3d
you needed updated autotools in order to get cal3d\'s autogen.sh to run. You may, in addition, need to remove the section in autogen.sh relating to checking for libtool. It should be close to the top. It didn\'t seem to detect my libtoolize version correctly, but it worked.
./autogen.sh
./configure --enable-debug
make
sudo make install
2) Build CrystalSpace
Ok, first run:
export CRYSTAL=${PWD}
./configure --enable-debug --enable-new-renderer --without-python
and check to see if all the required libs are detected. Also in certain cases where it checks if a library is sufficiently recent, check if it says \"yes\". The libs you want to be concerned with are libjpeg, libpng, freetype2, cal3d, libogg, and libvorbis.
You might have a problem with freetype2, because there is an older version of freetype2 installed in /usr/X11R6 that gets detected before the fink one. I\'m sure there is a better way, but I just renamed /usr/X11R6 temporarily.
build CS like so:
jam libs; jam plugins; jam cs-config
You might also want to jam walktest and run it to see if everything is working ok.
3) Build CEL
pretty straightforward:
cd ../cel
export CEL=${PWD}
export CSCONFPATH=${PWD}
./configure --enable-debug --enable-new-renderer --without-python
jam
Should build without incident.
4) Build Planeshift
cd ../planeshift
./autogen.sh
./configure --enable-debug --enable-new-renderer
Now, open Jamconfig and look for the line that says CURL.LFLAGS. If this line has -arch i686 or whatever, take that out of the line and save Jamconfig. Then:
jam
Now, as of this writing, there are a couple of errors that you\'ll see in updater. Take a look at the files that are not compiling, go to the lines the errors are on and you should see #elif CS_PLATFORM_MACOSX, change all these to #elif defined(CS_PLATFORM_MACOSX). I submitted a patch to the list but it hasn\'t been committed yet. run jam again and you should have a working client, server, and updater.
5) Download the art files
if you managed to build the updater, you should be able to run it by typing:
./updater.app/Contents/MacOS/updater
It should run and a window will pop up. Click \"update\", or if the button isn\'t exactly visible, it\'s the second button at the bottom. This will download all the art files, etc.. It will also download over your client and updater with older versions. Once it\'s done, you\'ll need to delete the psclient.app and updater.app that it downloaded and rebuild those.
6) Run the client
Once you\'ve done that, you can run the client by typing:
./psclient.app/Contents/MacOS/psclient