From owner-freebsd-ports Fri Sep 22 5:35:46 2000 Delivered-To: freebsd-ports@freebsd.org Received: from ms.tokyo.jcom.ne.jp (ms.tokyo.jcom.ne.jp [210.234.123.18]) by hub.freebsd.org (Postfix) with ESMTP id C67ED37B423; Fri, 22 Sep 2000 05:35:41 -0700 (PDT) Received: from daemon.local.idaemons.org (203-165-77-17.sugnm1.kt.home.ne.jp [203.165.77.17]) by ms.tokyo.jcom.ne.jp (8.9.3/3.7W 04/27/00) with ESMTP id VAA28037; Fri, 22 Sep 2000 21:35:07 +0900 (JST) Received: by daemon.local.idaemons.org (8.11.0/3.7W) id e8MCYUW45566; Fri, 22 Sep 2000 21:34:31 +0900 (JST) Date: Fri, 22 Sep 2000 21:34:26 +0900 Message-ID: <86zol08v1p.wl@archon.local.idaemons.org> From: "Akinori -Aki- MUSHA" 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 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> User-Agent: Wanderlust/1.1.2 (Raspberry Beret) EMIKO/1.13.12 (Euglena sociabilis) FLIM/1.13.2 (Kasanui) APEL/10.2 MULE XEmacs/21.1 (patch 12) (Channel Islands) (i386--freebsd) Organization: Associated I. Daemons X-PGP-Public-Key: finger knu@FreeBSD.org X-PGP-Fingerprint: 081D 099C 1705 861D 4B70 B04A 920B EFC7 9FD9 E1EE X-PGP-Comment: I changed my key on 2000-08-10 MIME-Version: 1.0 (generated by EMIKO 1.13.12 - "Euglena sociabilis") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At Fri, 22 Sep 2000 07:03:17 -0500, Will Andrews 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