A good way to do that with anything, I found, is a Makefile which downloads and compiles the few things it needs :D