I can't remember if I asked this before, but I'm kinda stuck trying to make packages out of programs I'm compiling with LFS. For some packages it's simple enough just to do DESTDIR=/usr/pkgs/source/packge however certain packages don't use DESTDIR. I can't use --prefix= as that would break certain libraries.

I know this can be done however as it's what portage does on gentoo. Anyone know how to do this?