If you are going to build chipmunk from the svn, once you have the files, navigate to the folder using the terminal and do this:
# cmake -D BUILD_DEMOS=OFF -D BUILD_SHARED=OFF .

This will not build the demos (if you want, you can change that: -D BUILD_DEMOS=ON)
This will also not build the shared (dynamic) libraries.  The reason for this is because I have noticed some issues compiling programs against the shared library, and also (linux's) ld program will automatically prefer linking to the shared library rather than the static library.  I don't know if this is just an issue in FreeBASIC, or the shared libraries in linux for chipmunk.
Once you've done that step, do the normal
# make; sudo make install

Voila.  Now copy libchipmunk.a to FreeBASIC's lib/your_OS/ directory so it's easy for the compiler to find.

Have fun making simulations!
-Oz
