summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2012-02-03 07:04:54 +0000
committersbd <sbd@pkgsrc.org>2012-02-03 07:04:54 +0000
commitc7c4c4bfd7fbfd7cdc8b5418b25e10b4c231a978 (patch)
tree49cf5b6d3cd22be9e2bc5e1d421d712a15c94636 /games
parentc2db9a5bd824d2e7f7957285bf40f8b7915d29f5 (diff)
downloadpkgsrc-c7c4c4bfd7fbfd7cdc8b5418b25e10b4c231a978.tar.gz
On Linux fix the Guidebook formating by using 'nroff -Tascii' and not using
col as it removes the escape the the ansi color sequences.
Diffstat (limited to 'games')
-rw-r--r--games/nethack-lib/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/games/nethack-lib/Makefile b/games/nethack-lib/Makefile
index 622aeb27c88..9e464215d65 100644
--- a/games/nethack-lib/Makefile
+++ b/games/nethack-lib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2011/06/01 11:20:29 wiz Exp $
+# $NetBSD: Makefile,v 1.28 2012/02/03 07:04:54 sbd Exp $
#
.include "../../games/nethack-lib/Makefile.common"
@@ -14,6 +14,16 @@ BUILD_TARGET= datastuff
INSTALL_TARGET= manpages install-dat
INSTALLATION_DIRS= ${PKGMANDIR}/man6
+# Using 'nroff -Tascii' works better with groff and we don't want to use col
+# on linux as it removes the escape the the ansi color sequences.
+.if ${OPSYS} == "Linux"
+SUBST_CLASSES+= nroff
+SUBST_STAGE.nroff= pre-configure
+SUBST_MESSAGE.nroff= Fixing Guidebook format command.
+SUBST_FILES.nroff= sys/unix/Makefile.doc
+SUBST_SED.nroff= -e '/^GUIDECMD/s,nroff .*$$,nroff -Tascii,'
+.endif
+
# Special handling for the scorefiles: we do not want to delete
# them between package installations and deinstallations.
#