Date: Fri, 22 Sep 2000 21:34:26 +0900 From: "Akinori -Aki- MUSHA" <knu@idaemons.org> To: will@physics.purdue.edu Cc: ade@FreeBSD.ORG, asami@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: Cleaning up use of site_perl directories in Makefiles Message-ID: <86zol08v1p.wl@archon.local.idaemons.org> In-Reply-To: In your message of "Fri, 22 Sep 2000 07:03:17 -0500" <20000922070317.E3094@puck.firepipe.net> References: <20000921125700.S61840@FreeBSD.org> <20000922070317.E3094@puck.firepipe.net>
next in thread | previous in thread | raw e-mail | index | archive | help
At Fri, 22 Sep 2000 07:03:17 -0500, Will Andrews <will@physics.purdue.edu> wrote: > > On Thu, Sep 21, 2000 at 12:57:00PM -0500, Ade Lovett wrote: > > further along down the line, it may be advisable to have a bsd.perl.mk > > Having touched a large number of p5-* ports, I can safely say I know > quite a number of things that are common amongst perl ports and could be > consolidated in a bsd.perl.mk. > > > =================================================================== > > RCS file: /home/src/FreeBSD/ports/Mk/bsd.port.mk,v > > retrieving revision 1.350 > > diff -u -r1.350 bsd.port.mk > > --- bsd.port.mk 2000/09/13 07:16:49 1.350 > > +++ bsd.port.mk 2000/09/21 17:51:47 > > @@ -854,6 +854,10 @@ > > PERL_VER=${PERL_VER} \ > > PERL_ARCH=${PERL_ARCH} > > > > +PERL_BASE?= ${LOCALBASE} > > +PERL_SITE= ${PERL_BASE}/lib/perl5/site_perl/${PERL_VER} > > +PERL_SITE_ARCH= ${PERL_SITE}/${PERL_ARCH} > > + > > .if exists(/usr/bin/perl5) && ${OSVERSION} >= 300000 > > # 3.0-current after perl5 import > > .if !exists(/usr/bin/perl${PERL_VERSION}) && defined(USE_PERL5) > > This is fine for the interim. FWIW, bsd.ruby.mk was designed to be compatible with PERL_* variables and cleanly extended. I think the following variables defined in bsd.ruby.mk could be applied to Perl. # Directories RUBY_LIBDIR?= ${LOCALBASE}/lib/ruby/${RUBY_VER} RUBY_ARCHLIBDIR?= ${RUBY_LIBDIR}/${RUBY_ARCH} RUBY_SITELIBDIR?= ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER} RUBY_SITEARCHLIBDIR?= ${RUBY_SITELIBDIR}/${RUBY_ARCH} RUBY_DOCDIR?= ${LOCALBASE}/share/doc/${RUBY_NAME} RUBY_EXAMPLESDIR?= ${LOCALBASE}/share/examples/${RUBY_NAME} So, what about these? PERL_NAME?= perl5 PERL_LIBDIR?= /usr/libdata/perl/${PERL_VER} PERL_ARCHLIBDIR?= ${PERL_LIBDIR}/${PERL_ARCH} PERL_SITELIBDIR?= ${LOCALBASE}/lib/${PERL_NAME}/site_perl/${PERL_VER} PERL_SITEARCHLIBDIR?= ${PERL_SITELIBDIR}/${PERL_ARCH} PERL_MANDIR?= ${LOCALBASE}/lib/${PERL_NAME}/${PERL_VER}/man Probably those PERL_* part should move to bsd.perl.mk. -- / /__ __ / ) ) ) ) / Akinori -Aki- MUSHA aka / (_ / ( (__( @ idaemons.org / FreeBSD.org "We're only at home when we're on the run, on the wing, on the fly" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86zol08v1p.wl>