how do ports install into ${destroot} instead of into ${prefix} directly?

Lawrence Velázquez larryv at macports.org
Thu Dec 11 09:52:55 PST 2014


On Dec 11, 2014, at 12:38 PM, René J.V. Bertin <rjvbertin at gmail.com> wrote:

> On Thursday December 11 2014 11:53:00 Michael Dickens wrote:
> 
>> Hi René - If the Makefile is hand-written, it probably does not contain
>> a way to set DESTROOT or some other variable to direct where to install
>> stuff outside of PREFIX -- you'll need to read through the Makefile to
>  
> No, it doesn't. I figured I had to edit it, but how?

Assuming the makefile uses "prefix" properly, its install target needs to install to $(DESTDIR)$(prefix) instead of just $(prefix).

> Alternatively, couldn't I change the destroot command so that it executes make with an appropriate set of options?

We already pass DESTDIR=$destroot to the make invocation. Make can't force a makefile to use it.

vq


More information about the macports-users mailing list