Date: Sat, 26 Aug 2006 10:12:57 +0400 From: "Andrew Pantyukhin" <infofarmer@FreeBSD.org> To: "Stanislav Sedov" <ssedov@mbsd.msk.ru> Cc: othermark <atkin901@yahoo.com>, freebsd-ports@freebsd.org Subject: Re: Question on respecting PREFIX, LOCALBASE, SITE_PERL, etc... Message-ID: <cb5206420608252312o5846eaccvd8087e561f915833@mail.gmail.com> In-Reply-To: <20060824225401.16cf1c19@localhost> References: <eckn3d$der$1@sea.gmane.org> <20060824225401.16cf1c19@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
On 8/24/06, Stanislav Sedov <ssedov@mbsd.msk.ru> wrote: > On Thu, 24 Aug 2006 10:19:40 -0700 > othermark <atkin901@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. Please, man :-) Look this up: PYTHONPREFIX_SITELIBDIR SITE_PERL_REL As for Tcl, you can install it into ${PREFIX}/{include,lib}/${PORTNAME}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb5206420608252312o5846eaccvd8087e561f915833>