summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorsbd <sbd>2012-02-03 07:04:54 +0000
committersbd <sbd>2012-02-03 07:04:54 +0000
commit56e4611b61add519523af20a5e1cfe24a7a042f3 (patch)
tree49cf5b6d3cd22be9e2bc5e1d421d712a15c94636 /games
parent708bc341b7a9dc42d32333a389a27cf976b938c7 (diff)
downloadpkgsrc-56e4611b61add519523af20a5e1cfe24a7a042f3.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.
#