blob: 6165ad9889ab578e6399d38ada9700df365a1f9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $NetBSD: Makefile,v 1.29 2015/08/18 07:31:08 wiz Exp $
#
.include "../../games/nethack-lib/Makefile.common"
PKGNAME= nethack-lib-${NETHACK_VERSION}
PKGREVISION= 4
COMMENT= Data files for Nethack
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= ./sys/unix/setup.sh
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.
#
# These should eventually migrate to a better location, but keep them
# here for now until we lose backward compatibility because of changes
# to the fileformat.
CONF_FILES_PERMS+= /dev/null ${VARDIR}/logfile \
${NETHACK_USER} ${NETHACK_GROUP} 664
CONF_FILES_PERMS+= /dev/null ${VARDIR}/perm \
${NETHACK_USER} ${NETHACK_GROUP} 664
CONF_FILES_PERMS+= /dev/null ${VARDIR}/record \
${NETHACK_USER} ${NETHACK_GROUP} 664
REQD_DIRS_PERMS+= ${VARDIR} \
${NETHACK_USER} ${NETHACK_GROUP} 775
REQD_DIRS_PERMS+= ${VARDIR}/save \
${NETHACK_USER} ${NETHACK_GROUP} 770
CHECK_FILES_SKIP+= ${VARDIR}/logfile \
${VARDIR}/perm \
${VARDIR}/record
.include "../../mk/bsd.pkg.mk"
|