help with man pages

Ben Kaduk minimarmot at gmail.com
Mon Dec 19 00:30:54 UTC 2011


On Sun, Dec 18, 2011 at 6:30 PM, Christer Edwards
<christer.edwards at gmail.com> wrote:
> The port I'm working on includes about a half-dozen man pages which I
> understand I need to use MANn to install. What I guess I don't fully
> understand is how to path those files. If the files are found in the
> extracted source under source-version/doc/man/ should I use:
>
> MAN1= doc/man/manpage.1
> MAN7= doc/man/manpage.7
> ...etc...
>
> or do I need to reference ${WORKSRC}/doc/man/ ?

MANn takes the place of adding entries to the plist (allowing for the
use of MANCOMPRESSED and such).  Accordingly, the files referenced are
nominally in the installed tree, but the MANn magic knows about
MANPREFIX, so you should just use MAN1= manpage.1 with no other path
components.

>
> Do I also need to install the man pages in do-install?
>
> ${INSTALL_MAN} ${WRKSRC}/doc/man/manpage.1 ${PREFIX}/man/man1

You need to ensure that they end up in $MANPREFIX, so yes.

-Ben Kaduk


More information about the freebsd-ports mailing list