Just wanted to report that I've successfully built Box2D on FreeBSD.
I needed it to compile "The butterfly effect" game (http://sourceforge.net/projects/tbe/ which by the way you may want to add to http://www.box2d.org/links.html), and however the game bundles Box2D with it's own source, I thought it'd be better to create a separate port, as it will make life of other people who may need it easier.
It builds and works fine (including testbed), however I had to hack a few things. First, Box2D doesn't seem to support systemwide installation out of box, so I had to patch include paths in Box2D.h from <../../Source/*> to <Box2D/*>. Also, I had to patch Makefiles to
- support systemwide $(CXX) setting instead of hardcoded g++ and c++
- same for $(MAKE) instead of hardcoded `make' (as actual BSD make and gmake may be used).
- not redefine systemwide CXXFLAGS
- finally, not use bundled freeglut and glui
Also there's bunch of patches to make it compilable with gcc 4.4 (patch*.cpp from http://hg.amdmi3.ru/ports/devel/box2d/files/)
I've seen that CMake support was added in SVN head - that's really great and makes most hacks unneeded, however adding an option to not use bunded libs and integrating gcc 4.4 patches would be nice.
I needed it to compile "The butterfly effect" game (http://sourceforge.net/projects/tbe/ which by the way you may want to add to http://www.box2d.org/links.html), and however the game bundles Box2D with it's own source, I thought it'd be better to create a separate port, as it will make life of other people who may need it easier.
It builds and works fine (including testbed), however I had to hack a few things. First, Box2D doesn't seem to support systemwide installation out of box, so I had to patch include paths in Box2D.h from <../../Source/*> to <Box2D/*>. Also, I had to patch Makefiles to
- support systemwide $(CXX) setting instead of hardcoded g++ and c++
- same for $(MAKE) instead of hardcoded `make' (as actual BSD make and gmake may be used).
- not redefine systemwide CXXFLAGS
- finally, not use bundled freeglut and glui
Also there's bunch of patches to make it compilable with gcc 4.4 (patch*.cpp from http://hg.amdmi3.ru/ports/devel/box2d/files/)
I've seen that CMake support was added in SVN head - that's really great and makes most hacks unneeded, however adding an option to not use bunded libs and integrating gcc 4.4 patches would be nice.