Fri Feb 3 07:04:54 2012 UTC ()
On Linux fix the Guidebook formating by using 'nroff -Tascii' and not using
col as it removes the escape the the ansi color sequences.


(sbd)
diff -r1.27 -r1.28 pkgsrc/games/nethack-lib/Makefile

cvs diff -r1.27 -r1.28 pkgsrc/games/nethack-lib/Makefile (expand / switch to unified diff)

--- pkgsrc/games/nethack-lib/Makefile 2011/06/01 11:20:29 1.27
+++ pkgsrc/games/nethack-lib/Makefile 2012/02/03 07:04:54 1.28
@@ -1,29 +1,39 @@ @@ -1,29 +1,39 @@
1# $NetBSD: Makefile,v 1.27 2011/06/01 11:20:29 wiz Exp $ 1# $NetBSD: Makefile,v 1.28 2012/02/03 07:04:54 sbd Exp $
2# 2#
3 3
4.include "../../games/nethack-lib/Makefile.common" 4.include "../../games/nethack-lib/Makefile.common"
5 5
6PKGNAME= nethack-lib-${NETHACK_VERSION} 6PKGNAME= nethack-lib-${NETHACK_VERSION}
7PKGREVISION= 3 7PKGREVISION= 3
8 8
9COMMENT= Data files for Nethack 9COMMENT= Data files for Nethack
10 10
11HAS_CONFIGURE= yes 11HAS_CONFIGURE= yes
12CONFIGURE_SCRIPT= ./sys/unix/setup.sh 12CONFIGURE_SCRIPT= ./sys/unix/setup.sh
13BUILD_TARGET= datastuff 13BUILD_TARGET= datastuff
14INSTALL_TARGET= manpages install-dat 14INSTALL_TARGET= manpages install-dat
15INSTALLATION_DIRS= ${PKGMANDIR}/man6 15INSTALLATION_DIRS= ${PKGMANDIR}/man6
16 16
 17# Using 'nroff -Tascii' works better with groff and we don't want to use col
 18# on linux as it removes the escape the the ansi color sequences.
 19.if ${OPSYS} == "Linux"
 20SUBST_CLASSES+= nroff
 21SUBST_STAGE.nroff= pre-configure
 22SUBST_MESSAGE.nroff= Fixing Guidebook format command.
 23SUBST_FILES.nroff= sys/unix/Makefile.doc
 24SUBST_SED.nroff= -e '/^GUIDECMD/s,nroff .*$$,nroff -Tascii,'
 25.endif
 26
17# Special handling for the scorefiles: we do not want to delete 27# Special handling for the scorefiles: we do not want to delete
18# them between package installations and deinstallations. 28# them between package installations and deinstallations.
19# 29#
20# These should eventually migrate to a better location, but keep them 30# These should eventually migrate to a better location, but keep them
21# here for now until we lose backward compatibility because of changes 31# here for now until we lose backward compatibility because of changes
22# to the fileformat. 32# to the fileformat.
23CONF_FILES_PERMS+= /dev/null ${VARDIR}/logfile \ 33CONF_FILES_PERMS+= /dev/null ${VARDIR}/logfile \
24 ${NETHACK_USER} ${NETHACK_GROUP} 664 34 ${NETHACK_USER} ${NETHACK_GROUP} 664
25CONF_FILES_PERMS+= /dev/null ${VARDIR}/perm \ 35CONF_FILES_PERMS+= /dev/null ${VARDIR}/perm \
26 ${NETHACK_USER} ${NETHACK_GROUP} 664 36 ${NETHACK_USER} ${NETHACK_GROUP} 664
27CONF_FILES_PERMS+= /dev/null ${VARDIR}/record \ 37CONF_FILES_PERMS+= /dev/null ${VARDIR}/record \
28 ${NETHACK_USER} ${NETHACK_GROUP} 664 38 ${NETHACK_USER} ${NETHACK_GROUP} 664
29 39