Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Aug 2000 01:41:52 -0400
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        "Mike Meyer" <mwm@mired.org>, <freebsd-ports@FreeBSD.ORG>
Subject:   Re: ports/19458: Both /usr/ports/math/PDL and /usr/ports/pilot/coldsync have /usr/local dependencies.
Message-ID:  <003b01c00cc4$d7738790$1200a8c0@matt>
References:  <200008221302.GAA24581@freefall.freebsd.org> <14755.24530.848488.607626@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message -----
From: "Mike Meyer" <mwm@mired.org>
To: <sobomax@FreeBSD.ORG>
Cc: <mwm@mired.org>; <freebsd-ports@FreeBSD.ORG>
Sent: Wednesday, August 23, 2000 1:23 AM
Subject: Re: ports/19458: Both /usr/ports/math/PDL and
/usr/ports/pilot/coldsync have /usr/local dependencies.


> sobomax@FreeBSD.org writes:
> > Synopsis: Both /usr/ports/math/PDL and /usr/ports/pilot/coldsync have
/usr/local dependencies.
> >
> > State-Changed-From-To: open->closed
> > State-Changed-By: sobomax
> > State-Changed-When: Tue Aug 22 06:01:24 PDT 2000
> > State-Changed-Why:
> > You did it wrong. LOCALBASE *doesn't* control port's destination prefix,
PREFIX
> > variable should be used for this purpose instead. Please read Handbook
for
> > details.
>
> What do you mean by "it"? If you mean "setting the port's destination
> prefix", that I did right. PREFIX is set to LOCALBASE (see the
> Porter's Handbook, Section 15.12). If you mean something else, could
> you please provide details.

What Section 15.12 means is that you should use ${PREFIX} throughout your
Makefiles.  If, during a make, a value for ${PREFIX} isn't given on the
command line (such as make PREFIX=/var/tmp/<portname>, as in the example in
Section 17), then the ports subsystem will automatically substitute
${LOCALBASE} for ${PREFIX}.  ${LOCALBASE} is set by the ports subsystem
based on various parameters (such as USE_X_PREFIX), and can't be overridden
by the user.  ${PREFIX} can.  Hence, your makefiles should use ${PREFIX}.

--
Matthew Emmerton
GSI Computer Services
+1 (800) 217-5409 (Canada)



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?003b01c00cc4$d7738790$1200a8c0>