PREFIX "cleverness"

Oliver Eikemeier eikemeier at
Thu Sep 2 08:59:26 PDT 2004

Mike Patterson wrote:

> I use quotation marks because I'm not certain what I intend to do is
> clever, really, but it would make my life a lot easier.
> I'm trying to make ports install themselves to something like
> PREFIX/portname/, so that libtool15's binary would be
> PREFIX/libtool15/bin and its man pages would be PREFIX/libtool15/man,
> etc.

make PREFIX='/usr/local/${PORTNAME}' install

... although it seems to be smarter to use LATEST_LINK instead of the 
ports name.

> A quick read through the handbook and imply that there's no
> current way to do it, but perhaps I missed something.  I'd be willing to
> try hacking up Mk bits (either for committing or just for myself).

You need to build a link farm from LOCALBASE to the files installed by 
your port, since other ports expect them to be there.  Another 
consequence is that new CONFLICTS checking routines are required.

> Or am I insane for wanting to force ports infrastructure to conform to
> this sort of localism?

Your degree of insanity depends on just what you are trying to 
accomplish. If you want to do this `just because it can be done' -  yes. 
If you believe it will better separate the packing lists of ports - 
maybe. If you attempt to pkgsrcify the FreeBSD ports collection - who 

More information about the freebsd-ports mailing list