| @@ -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 | |
6 | PKGNAME= nethack-lib-${NETHACK_VERSION} | | 6 | PKGNAME= nethack-lib-${NETHACK_VERSION} |
7 | PKGREVISION= 3 | | 7 | PKGREVISION= 3 |
8 | | | 8 | |
9 | COMMENT= Data files for Nethack | | 9 | COMMENT= Data files for Nethack |
10 | | | 10 | |
11 | HAS_CONFIGURE= yes | | 11 | HAS_CONFIGURE= yes |
12 | CONFIGURE_SCRIPT= ./sys/unix/setup.sh | | 12 | CONFIGURE_SCRIPT= ./sys/unix/setup.sh |
13 | BUILD_TARGET= datastuff | | 13 | BUILD_TARGET= datastuff |
14 | INSTALL_TARGET= manpages install-dat | | 14 | INSTALL_TARGET= manpages install-dat |
15 | INSTALLATION_DIRS= ${PKGMANDIR}/man6 | | 15 | INSTALLATION_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" |
| | | 20 | SUBST_CLASSES+= nroff |
| | | 21 | SUBST_STAGE.nroff= pre-configure |
| | | 22 | SUBST_MESSAGE.nroff= Fixing Guidebook format command. |
| | | 23 | SUBST_FILES.nroff= sys/unix/Makefile.doc |
| | | 24 | SUBST_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. |
23 | CONF_FILES_PERMS+= /dev/null ${VARDIR}/logfile \ | | 33 | CONF_FILES_PERMS+= /dev/null ${VARDIR}/logfile \ |
24 | ${NETHACK_USER} ${NETHACK_GROUP} 664 | | 34 | ${NETHACK_USER} ${NETHACK_GROUP} 664 |
25 | CONF_FILES_PERMS+= /dev/null ${VARDIR}/perm \ | | 35 | CONF_FILES_PERMS+= /dev/null ${VARDIR}/perm \ |
26 | ${NETHACK_USER} ${NETHACK_GROUP} 664 | | 36 | ${NETHACK_USER} ${NETHACK_GROUP} 664 |
27 | CONF_FILES_PERMS+= /dev/null ${VARDIR}/record \ | | 37 | CONF_FILES_PERMS+= /dev/null ${VARDIR}/record \ |
28 | ${NETHACK_USER} ${NETHACK_GROUP} 664 | | 38 | ${NETHACK_USER} ${NETHACK_GROUP} 664 |
29 | | | 39 | |