openbsd-ports/games/slash-em/patches/patch-sys_unix_Makefile_top
espie 396439d7ee update to a ways more recent version.
Use the same technique as nethack, so that several slash-em versions
can be installed concurrently.
2005-09-11 12:26:02 +00:00

59 lines
1.7 KiB
Plaintext

$OpenBSD: patch-sys_unix_Makefile_top,v 1.2 2005/09/11 12:26:02 espie Exp $
--- sys/unix/Makefile.top.orig Sat Jul 2 09:24:44 2005
+++ sys/unix/Makefile.top Sun Sep 11 14:07:56 2005
@@ -13,19 +13,19 @@
# execute things like 'data' and 'rumors')
# MAKE = make
+include ${NETHACKCONFIG}
+
# make NetHack
-PREFIX = /usr
GAME = slashem
-# GAME = slashem.prg
-GAMEUID = games
-GAMEGRP = bin
+GAMEUID = bin
+GAMEGRP = games
# Permissions - some places use setgid instead of setuid, for instance
# See also the option "SECURE" in include/config.h
-GAMEPERM = 04755
-FILEPERM = 0644
+GAMEPERM = 02755
+FILEPERM = 0664
EXEPERM = 0755
-DIRPERM = 0755
+DIRPERM = 0775
VARFILEPERM = 0644
VARDIRPERM = 0755
@@ -40,7 +40,8 @@ VARDIRPERM = 0755
# These must agree with the definitions in unixconf.h
# Defs. for non file areas support.
-GAMEDIR = $(PREFIX)/local/slashemdir
+REALGAMEDIR = $(NHDIR)
+GAMEDIR = $(DESTDIR)${REALGAMEDIR}
VARDIR = $(GAMEDIR)
FILE_AREA_VAR = $(VARDIR)
FILE_AREA_SAVE = $(VARDIR)/save
@@ -49,7 +50,7 @@ FILE_AREA_UNSHARE = $(GAMEDIR)
FILE_AREA_DOC = $(GAMEDIR)
FILE_AREA_BONES = $(FILE_AREA_VAR)
FILE_AREA_LEVL = $(FILE_AREA_VAR)
-SHELLDIR = $(PREFIX)/local/bin
+SHELLDIR = $(DESTDIR)$(PREFIX)/bin
# Defs. compatible with Linux's FSSTND 1.2
# FILE_AREA_VAR = /var/lib/games/slashem
@@ -293,7 +294,7 @@ dofiles:
cp dat/license doc/Guidebook.txt $(FILE_AREA_DOC)
# cp win/Qt/KDE/kslashem.kdelnk $(KDEDIR)/share/applnk/Games
-rm -f $(SHELLDIR)/$(GAME)
- sed -e 's;/usr/games/lib/nethackdir;$(FILE_AREA_UNSHARE);' \
+ sed -e 's;/usr/games/lib/nethackdir;$(REALGAMEDIR);' \
-e 's;HACKDIR/nethack;HACKDIR/$(GAME);' \
< sys/unix/nethack.sh \
> $(SHELLDIR)/$(GAME)