summaryrefslogtreecommitdiff
path: root/textproc/groff/Makefile
diff options
context:
space:
mode:
authorreed <reed>2004-04-30 15:11:28 +0000
committerreed <reed>2004-04-30 15:11:28 +0000
commit9e2ad495ce7e4c69ce67d987a85c530f181ad699 (patch)
treecf9840ca71932c468791272f4fb8df24dfde17ff /textproc/groff/Makefile
parentcc22deb664bbd4ebde6bee84f5a40c7b6b4ffe5e (diff)
downloadpkgsrc-9e2ad495ce7e4c69ce67d987a85c530f181ad699.tar.gz
This configures the to-be-installed mdoc.local file so the
"volume-operating-system" macro is ${OPSYS}. And sets the default .Os value to "pkgsrc" as suggested by wiz@. (It was hard-coded "NetBSD\~1.6".) Usually the mdoc.local "volume-operating-system" definition is for the operating system name often displayed on top of man pages. And "operating-system" is for the default .Os value (operating system and version/release) and is usually displayed at bottom of man page. Bump PKGREVISION. This closes my PR #23100.
Diffstat (limited to 'textproc/groff/Makefile')
-rw-r--r--textproc/groff/Makefile22
1 files changed, 16 insertions, 6 deletions
diff --git a/textproc/groff/Makefile b/textproc/groff/Makefile
index 25c25277b6e..9f8eb47c977 100644
--- a/textproc/groff/Makefile
+++ b/textproc/groff/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.16 2004/04/18 19:45:11 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2004/04/30 15:11:28 reed Exp $
#
DISTNAME= groff-1.19
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GNU:=groff/}
@@ -20,15 +20,25 @@ USE_BUILDLINK3= YES
INFO_FILES= groff
-post-install:
- ${INSTALL_DATA} ${FILESDIR}/mdoc.local \
- ${PREFIX}/share/groff/site-tmac
-
.include "../../mk/bsd.prefs.mk"
.ifdef PAPERSIZE
CONFIGURE_ENV+= PAGE=${PAPERSIZE}
.endif
+# Usually the mdoc.local "volume-operating-system" definition is for
+# the operating system name often displayed on top of man pages. And
+# "operating-system" is for the default .Os value (operating system
+# and version/release) and is usually displayed at bottom of man page.
+# XXX Use "pkgsrc" as default .Os value.
+post-patch:
+ ${SED} -e "s,@@VOLUME_OPERATING_SYSTEM@@,${OPSYS},g" \
+ -e "s,@@OPERATING_SYSTEM@@,pkgsrc,g" \
+ ${FILESDIR}/mdoc.local > ${WRKDIR}/mdoc.local
+
+post-install:
+ ${INSTALL_DATA} ${WRKDIR}/mdoc.local \
+ ${PREFIX}/share/groff/site-tmac
+
.include "../../mk/ghostscript.mk"
.include "../../mk/bsd.pkg.mk"