1 diff -Nru NetHack-3.6.7.orig/sys/unix/Makefile.top NetHack-3.6.7/sys/unix/Makefile.top
2 --- NetHack-3.6.7.orig/sys/unix/Makefile.top 2023-02-15 22:52:57.000000000 +0100
3 +++ NetHack-3.6.7/sys/unix/Makefile.top 2023-10-08 15:09:43.658440386 +0200
17 # Permissions - some places use setgid instead of setuid, for instance
18 # See also the option "SECURE" in include/config.h
29 # VARDIR may also appear in unixconf.h as "VAR_PLAYGROUND" else HACKDIR
32 # therefore there should not be anything in HACKDIR that you want to keep
33 # (if there is, you'll have to do the installation by hand or modify the
35 -#HACKDIR = $(PREFIX)/games/lib/$(GAME)dir
37 +HACKDIR = $(ROOT)/$(PREFIX)/lib/$(GAME)
38 +CLIENT_HACKDIR = $(PREFIX)/lib/$(GAME)
39 +VARDIR = $(ROOT)/var/games/nethack
41 # Where nethack.sh in installed. If this is not defined, the wrapper is not used.
42 -#SHELLDIR = $(PREFIX)/games
43 +SHELLDIR = $(ROOT)/$(PREFIX)/bin
45 # per discussion in Install.X11 and Install.Qt
47 # VARDATND = x11tiles NetHack.ad pet_mark.xbm pilemark.xbm
48 -# VARDATND = x11tiles NetHack.ad pet_mark.xbm pilemark.xbm rip.xpm
49 +VARDATND = x11tiles NetHack.ad pet_mark.xbm pilemark.xbm rip.xpm
51 # VARDATND = nh16.img title.img GEM_RSC.RSC rip.img
54 cp util/recover $(INSTDIR)
55 -if test -n '$(SHELLDIR)'; then rm -f $(SHELLDIR)/$(GAME); fi
56 if test -n '$(SHELLDIR)'; then \
57 - sed -e 's;/usr/games/lib/nethackdir;$(HACKDIR);' \
58 + sed -e 's;/usr/games/lib/nethackdir;$(CLIENT_HACKDIR);' \
59 -e 's;HACKDIR/nethack;HACKDIR/$(GAME);' \
60 < sys/unix/nethack.sh \
61 > $(SHELLDIR)/$(GAME) ; fi