diff options
author | agc <agc@pkgsrc.org> | 1999-10-28 14:45:08 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1999-10-28 14:45:08 +0000 |
commit | 5f6416f6cbc047a5fb0a60cfd80ca0b90559a862 (patch) | |
tree | 7dd6a6d35c69b3b21cf034fc4e3b79284fc4a375 /graphics/xpdf | |
parent | 0d60cd1982bbbd694239014ff841dc98e11518e2 (diff) | |
download | pkgsrc-5f6416f6cbc047a5fb0a60cfd80ca0b90559a862.tar.gz |
Don't rely on make(1) being new enough to do '%'-style substitution.
Fix post-install target so that this package works on Solaris.
Diffstat (limited to 'graphics/xpdf')
-rw-r--r-- | graphics/xpdf/Makefile.common | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/graphics/xpdf/Makefile.common b/graphics/xpdf/Makefile.common index 35c7fe5e0b6..a8654ee0ed7 100644 --- a/graphics/xpdf/Makefile.common +++ b/graphics/xpdf/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.1 1999/10/25 01:36:27 hubertf Exp $ +# $NetBSD: Makefile.common,v 1.2 1999/10/28 14:45:08 agc Exp $ # FreeBSD Id: Makefile,v 1.12 1998/03/11 03:08:12 vanilla Exp # @@ -23,11 +23,15 @@ MAN1= xpdf.1 pdftops.1 pdftotext.1 pdfinfo.1 pdftopbm.1 pdfimages.1 post-install: @cd ${WRKSRC}/doc; \ - for m in ${MAN1}; do \ - nroff -Tascii -mandoc $$m > $${m%.1}.0; \ - done; \ - ${ECHO} ${INSTALL_MAN} ${MAN1:S/.1/.0/} ${PREFIX}/man/cat1; \ - ${INSTALL_MAN} ${MAN1:S/.1/.0/} ${PREFIX}/man/cat1 + case ${OPSYS} in \ + SunOS) mancmd="gnroff -Tascii -mandoc" ;; \ + *) mancmd="nroff -Tascii -mandoc" ;; \ + esac; \ + for m in ${MAN1}; do \ + $$mancmd $$m > `${ECHO} "$$m" | ${SED} -e 's|\.1|\.0|g'`; \ + done; \ + ${ECHO} ${INSTALL_MAN} ${MAN1:S/.1/.0/} ${PREFIX}/man/cat1; \ + ${INSTALL_MAN} ${MAN1:S/.1/.0/} ${PREFIX}/man/cat1 .include "../../mk/bsd.prefs.mk" .if defined(PAPERSIZE) && ${PAPERSIZE} == "A4" |