I'm researching into starting a small library with the following desired requirements:

builds natively on 3 platforms: Linux, Windows, OS X has bindings for 3 dynamic languages: Python, Ruby, Lua relies on code from external projects: clutter, cairo, pango

Is there a way to create a build environment that will somehow bypass the external libraries build system?

The naive use case would be to just download the library source code, have a script inside the source code download the dependencies' source code and patch things if need be, then just build everything in one command using the native environment (XCode on OS X, Visual Studio Express on Windows and GCC on Linux).

The final library should have all the dependencies statically linked.

What are my options? How should I best approach this? Any tutorials or useful links are appreciated.

Thank you in advance! :)