diff options
author | asami <asami@FreeBSD.org> | 1996-12-11 18:17:44 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1996-12-11 18:17:44 +0800 |
commit | 0365f888c5c34b2ab8b957183ce91688a25f0d0e (patch) | |
tree | 7583e3716f6986451cc491050a19320d633976b0 | |
parent | ed12298d5075a3d6c482f4ee6a26927c31fddb19 (diff) | |
download | freebsd-ports-gnome-0365f888c5c34b2ab8b957183ce91688a25f0d0e.tar.gz freebsd-ports-gnome-0365f888c5c34b2ab8b957183ce91688a25f0d0e.tar.zst freebsd-ports-gnome-0365f888c5c34b2ab8b957183ce91688a25f0d0e.zip |
Extend the manpage compression handling a bit.
(1) MANLANG is now a list (defaulting to ""), so if you have English
and Japanese-EUC versions of the manpages, you can say something
like `MANLANG= "" ja_JP.EUC' and manpage compression will DTRT.
(2) Add new variables MAN%cPREFIX (where %c=[1-9LN]) which default to
MANPREFIX (which defaults to PREFIX), to specify per-section
prefixes. In particular, this handles the cases in many perl
ports, which install man1pages into man/man1 and man3pages into
lib/perl5/man/man3.
Note these modifications won't change the behavior of existing
variables used in previously-approved ways, so any Makefile that
worked before will still continue to work.
-rw-r--r-- | Mk/bsd.port.mk | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index dbb98212e709..e7e552333276 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -6,7 +6,7 @@ # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. # -# $Id: bsd.port.mk,v 1.235 1996/12/09 07:08:16 asami Exp $ +# $Id: bsd.port.mk,v 1.236 1996/12/11 04:51:31 asami Exp $ # # Please view me with 4 column tabs! @@ -542,19 +542,31 @@ HAS_CONFIGURE= yes MANPREFIX?= ${PREFIX} .for sect in 1 2 3 4 5 6 7 8 9 +MAN${sect}PREFIX?= ${MANPREFIX} +.endfor +MANLPREFIX?= ${MANPREFIX} +MANNPREFIX?= ${MANPREFIX} + +MANLANG?= "" # english only by default + +.for lang in ${MANLANG} + +.for sect in 1 2 3 4 5 6 7 8 9 .if defined(MAN${sect}) -_MANPAGES+= ${MAN${sect}:S.^.man/${MANLANG}/man${sect}/.} +_MANPAGES+= ${MAN${sect}:S.^.${MAN${sect}PREFIX}/man/${lang}/man${sect}/.} .endif .endfor .if defined(MANL) -_MANPAGES+= ${MANL:S.^.man/${MANLANG}/manl/.} +_MANPAGES+= ${MANL:S.^.${MANLPREFIX}/man/${lang}/manl/.} .endif .if defined(MANN) -_MANPAGES+= ${MANN:S.^.man/${MANLANG}/mann/.} +_MANPAGES+= ${MANN:S.^.${MANNPREFIX}/man/${lang}/mann/.} .endif +.endfor + .if defined(_MANPAGES) && defined(MANCOMPRESSED) _MANPAGES:= ${_MANPAGES:S/$/.gz/} .endif @@ -981,12 +993,12 @@ _PORT_USE: .USE .if defined(MANCOMPRESSED) && defined(NOMANCOMPRESS) @${ECHO_MSG} "===> Uncompressing manual pages for ${PKGNAME}" .for manpage in ${_MANPAGES} - @${GUNZIP_CMD} ${MANPREFIX}/${manpage} + @${GUNZIP_CMD} ${manpage} .endfor .elif !defined(MANCOMPRESSED) && !defined(NOMANCOMPRESS) @${ECHO_MSG} "===> Compressing manual pages for ${PKGNAME}" .for manpage in ${_MANPAGES} - @${GZIP_CMD} ${MANPREFIX}/${manpage} + @${GZIP_CMD} ${manpage} .endfor .endif .endif |