cvs commit: ports/graphics/lcms2 Makefile

Stanislav Sedov stas at FreeBSD.org
Fri Nov 4 07:44:32 UTC 2011


On Fri, 4 Nov 2011 07:35:01 +0000
Alexey Dokuchaev <danfe at FreeBSD.org> mentioned:

> On Fri, Nov 04, 2011 at 12:20:27AM -0700, Stanislav Sedov wrote:
> > On Fri, 4 Nov 2011 03:41:21 +0000 (UTC)
> > Alexey Dokuchaev <danfe at FreeBSD.org> mentioned:
> > > - Use more standard MANPREFIX instead of MAN1PREFIX which also does not
> > >   seem to be documented anywhere
> > 
> > It is actually documented in bsd.port.mk, and I don't see a reason to
> 
> Hmm, you're right, it is mentioned in bpm, but I find it a bit hard to
> understand:
> 
> # MANPREFIX     - The directory prefix for ${MAN<sect>} and ${MLINKS}.
> #                 Default: ${PREFIX}
> # MAN<sect>PREFIX
> #               - If manual pages of some sections install in different
> #                 locations than others, use these.
> #                 Default: ${MANPREFIX}
> 
> In particular, I don't quite get this "some sections install in different
> locations than others" part.  Why so complicated?  What exactly does it
> suppose to mean?

I have no idea, ask portmgr at .

> 
> > change it to MANPREFIX, as MAN1PREFIX has more semantical information
> > in it and correct here, since the manpages installed are meant for the
> > section 1 of the manual.
> 
> So how come if it is correct for section N of the manual to use MAN<N>PREFIX
> is it only used in bsd.perl.mk?  Frankly speaking I've never seen this
> variable until today, which means vast majority of ports do not use it...

It doesn't make something correct if everybody uses it.  I'm not even saing
that using MANPREFIX is wrong.  It just seems to me that I don't think
killing off the correct semantical information from the Makefile is the right
thing to do.  If hypotetically in the future the FreeBSD project decides
to use a different prefix for MAN1 this port will work automatically.

OTOH I don't really care -- I don't use ports personally anymore.  It was
just a suggestion, as I think that MAN1PREFIX is there for a reason.

-- 
Stanislav Sedov
ST4096-RIPE

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments


More information about the cvs-all mailing list