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

2014-12-11 Thread René J . V . Bertin
On Thursday December 11 2014 15:32:03 Lawrence Velázquez wrote: > Using DESTDIR is a pretty common convention for Unix-y build systems. Is > INSTALL_ROOT the convention somewhere else? I think it's what qmake produces, so it would be a Qt convention - which would be pretty appropriate. > de

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

2014-12-11 Thread Lawrence Velázquez
On Dec 11, 2014, at 3:14 PM, René J.V. Bertin wrote: >> question does not do so, consider fixing the Makefile to do so, then >> providing a patch to the developers so that they can include it in the next >> version > > The Makefiles in question already contained INSTALL_ROOT. I doubt that th

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

2014-12-11 Thread Daniel J. Luke
> On Dec 11, 2014, at 3:14 PM, René J.V. Bertin wrote: > The Makefiles in question already contained INSTALL_ROOT. I doubt that the > developer would be interested in replacing that with DESTDIR... so you just need to set destroot.destdir INSTALL_ROOT=${destroot} -- Daniel J. Luke

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

2014-12-11 Thread René J . V . Bertin
On Thursday December 11 2014 13:56:52 Ryan Schmidt wrote: > On Dec 11, 2014, at 10:53 AM, Michael Dickens wrote: > > > 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 > > That

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

2014-12-11 Thread Ryan Schmidt
On Dec 11, 2014, at 10:53 AM, Michael Dickens wrote: > 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 That's not necessarily so. Humans are certainly capable of writing Makefiles

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

2014-12-11 Thread Brandon Allbery
On Thu, Dec 11, 2014 at 1:42 PM, René J.V. wrote: > > We already pass DESTDIR=$destroot to the make invocation. Make can't > force a makefile to use it. > > > > See, that's the bit I was missing :) > > It's only the same thing RPM has conditioned Linux devs into doing for years now -- brand

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

2014-12-11 Thread René J . V . Bertin
On Thursday December 11 2014 12:52:55 Lawrence Velázquez wrote: > We already pass DESTDIR=$destroot to the make invocation. Make can't force a > makefile to use it. See, that's the bit I was missing :) > cd qtchooser* > git init > git add .[a-zA-Z0-9]* * > git commit -a -m "init" > }}} > Then,

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

2014-12-11 Thread Michael Dickens
On Thu, Dec 11, 2014, at 12:38 PM, René J.V. Bertin 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 PREF

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

2014-12-11 Thread Lawrence Velázquez
On Dec 11, 2014, at 12:38 PM, René J.V. Bertin 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

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

2014-12-11 Thread Brandon Allbery
On Thu, Dec 11, 2014 at 12:38 PM, René J.V. wrote: > No, it doesn't. I figured I had to edit it, but how? > > Alternatively, couldn't I change the destroot command so that it executes > make with an appropriate set of options? > > You would still have to at least inspect the Makefile to find out

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

2014-12-11 Thread René J . V . Bertin
On Thursday December 11 2014 11:53:00 Michael Dickens wrote: Hi > > 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 d

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

2014-12-11 Thread Michael Dickens
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 verify, generally in the "install:" section. If this is this case, you have to add

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

2014-12-11 Thread René J . V . Bertin
Hi, Taking a break from qt4-mac "next generation" I'm giving some love to my port for qtchooser. Problem: whatever magic ensures that things get installed into ${destroot} first doesn't work with this project and its hand-written Makefile. As a result, `port destroot qtchooser` installs things