Single directory distro

Is there a way to install freepbx ALL in a single directory?
The idea is to setup a distro where everything resides on a directory like "fpbx"
so one can have a pre-installed setup easy to deploy by either mounting a disk with it all, then run a script to create links to whatever is needed in the main OS file space.

This also would help with porting to different OSs that keep things in different places. ie: Centos, openwrt, ddwrt, ubuntu etc…

The install_amp does a great job but almost impossible to work with since almost everything path wise is hardcoded in.