DESTDIR not supported
Ryan Schmidt
ryandesign at macports.org
Fri Mar 30 15:54:37 PDT 2012
On Mar 30, 2012, at 15:45, Craig Treleaven wrote:
> Well, it's been an interesting exercise getting this far and now I find out that MythTV doesn't support DESTDIR. Is there a standard approach to handling this problem? (Myth's configure is >5,000 lines; I'm concerned about trying to path it.)
The MacPorts defailt is:
destroot.destdir DESTDIR=${destroot}
The standard is for build systems to support DESTDIR; if it doesn't, all bets are off.
Most build systems still support a way to specify where to install things, for example using a PREFIX or prefix variable. If so, you can tell MacPorts something like:
destroot.destdir PREFIX=${destroot}${prefix}
If the build system's install target is too confused to do even that properly, then you can throw it away and write your own destroot block and do everything yourself, as Jeremy said. But I would consider that a last resort.
More information about the macports-dev
mailing list