Question on respecting PREFIX, LOCALBASE, SITE_PERL, etc...

Stanislav Sedov ssedov at mbsd.msk.ru
Thu Aug 24 18:54:31 UTC 2006


On Thu, 24 Aug 2006 10:19:40 -0700
othermark <atkin901 at yahoo.com> mentioned:

> I have a port that I'm working on that, in addition to the binaries it
> generates, it generates the following:
> 
> - C api, includes, libraries
> - perl api
> - tcl api
> - python api
> 
> it also has java and rexx extensions, but I'm not going to add those until 
> later.
> 
> My question revolves around respecting both PREFIX and stuff like TCL_LIBDIR
> and SITE_PERL.   I want the port to be heir(7) compliant, but I'm also
> patching the install to put perl, tcl, and python modules in the
> TCL/PERL/PYTHON respective site library repositories.  
> 
> So when the operator uses make PREFIX=/somedir do I rigorously plop
> everthing under PREFIX and patch the TCL/PERL/PYTHON destinations to match,
> or do I go ahead and plop those in the SITE_PERL, PYTHON_SITELIBDIR, etc
> actual locations on the box?
> 
> Doing everything under PREFIX makes it easier to properly form the pkg-list,
> but that can be coded around to.
> 

You certainly should respect PREFIX, but now PERL/ruby/tcl etc
frameworks don't do this well. So don't think about this now and
install everything under SITE_PERL etc. Somebody should take a
look on these frameworks and fix them, then your port will be
PREFIX clean without your interaction. It's a framework problem,
not your port's. AFAIK, only ocaml framework handles it properly now.

-- 
Stanislav Sedov         MBSD labs, Inc.         <ssedov at mbsd.msk.ru>
Россия, Москва         http://mbsd.msk.ru

--------------------------------------------------------------------
If the facts don't fit the theory, change the facts.  -- A. Einstein
--------------------------------------------------------------------
PGP fingerprint:  F21E D6CC 5626 9609 6CE2  A385 2BF5 5993 EB26 9581
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060824/f5978828/signature.pgp


More information about the freebsd-ports mailing list