I like the way e.g. ArchLinux'
yaourt (or if you're not that lazy,
makepkg; and from what I read so far, Gentoo's
ebuild as well) automatically take care of obtaining, compiling and installing dependencies (and their dependencies etc.) before compiling a desired package. Currently I'm working with a system that does not natively provide such a mechanism (a Buffalo LinkStation Pro Duo with root access via ssh) and need to compile some programs with horribly complex dependency chains, crawling through which manually is really tedious, so I'm wondering if there either is
- a tool similar to the aforementioned ones, which basically takes a sourcecode directory (or
.tar.gzor git-repo or ...) and before compiling checks for missing dependencies, more or less automatically obtains their sourecode (recursing until all dependencies are resolved)
- a way to configure one of these tools such that they respect deviations from their own distribution, e.g. installing everything under
/optand not attempting to upgrade the (firmware-specific) kernel?
Sure enough there are many peculiarities in the general case, but for the sake of it assume 90% of all dependencies merely require a
./configure --prefix=/opt && make && make install run.