DESTDIR not supported

Craig Treleaven ctreleaven at cogeco.ca
Sat Mar 31 06:40:06 PDT 2012


At 4:09 PM +1100 3/31/12, Joshua Root wrote:
>On 2012-3-31 09:54 , Ryan Schmidt wrote:
>>
>>  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.
>
>You might also look at other distros that package MythTV; maybe one of
>them fixed this.

It seems that INSTALL_ROOT= works but that's a good point.  Do you 
know of another port system that use destroot or similar?  I just 
looked and it seems FreeBSD does not.

Craig


More information about the macports-dev mailing list