a $PREFIX question...

Chris H chris# at 1command.com
Sat Sep 13 04:44:08 UTC 2008


Hello Dmitry, and thank you for your response.

Quoting Dmitry Marakasov <amdmi3 at amdmi3.ru>:

> * chris#/@\1command.com (chris#/@\1command.com) wrote:
>
> You should just refedine PREFIX to, say, /usr/local/php5, and everything
> will be installed there:
>
> /usr/local/php5/bin
> /usr/local/php5/etc
> /usr/local/php5/include
> /usr/local/php5/lib
> ...

Yes. I tried that already. But didn't have the effect I was striving
for - duplicate the /current/ PHP install, but changing php/ to php5/
and simply adding php5/ to the bin path (bin/php5). Although your
first suggestion might be ideal for a jail.

>
> If you specifically want bin/php5, etc/php5 etc. you'll have to
> hack much more stuff. At least, you'll need to add
> --bindir=${PREFIX}/bin/php5 --libdir=${PREFIX}/lib/php5 (etc. for other
> dirs, see php's `configure --help`) to CONFIGURE_ARGS to make php5
> actually install file into those locations, and most likely other hacks
> will be needed.

OK. That's the layout I had hoped to achieve. So looks like I'll be
cobbling up some (e)grep(1) | find(1) | sed(1) scripts to best accomplish
this. I was hoping a simple tweak in the portinstall/*.bsd.mk might be
available. Oh well, I'd have needed to add some patches to create a port
anyway. So now that know that there's no kludge, I'll just have at it.

Thank you for your informative answer Dmitry.
That was exactly what I needed. :)

Best wishes.

--Chris

>
> --
> Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
> amdmi3 at amdmi3.ru  ..:  jabber: amdmi3 at jabber.ru    http://www.amdmi3.ru
>





More information about the freebsd-ports mailing list