3a0ccd1fae
- 3.3.0. - fixed packaging. - moved common data to hackdata port, to avoid nasty collision with slash. - compile and install recover. - only install manpages that correspond to stuff we run. - remove need for GMAKE. - include configuration files, allow for X11/plain/qt flavor (qt is not yet ready, it needs qt 2.0). Colors work much better, even under console if TERM is set to pcvt25.
55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
$OpenBSD: patch-sys_unix_Makefile_top,v 1.1 2000/04/16 20:49:00 espie Exp $
|
|
--- sys/unix/Makefile.top.orig Sat Dec 11 06:21:05 1999
|
|
+++ sys/unix/Makefile.top Fri Apr 14 14:13:19 2000
|
|
@@ -13,18 +13,19 @@
|
|
# execute things like 'data' and 'rumors')
|
|
# MAKE = make
|
|
|
|
+include ${NETHACKCONFIG}
|
|
+
|
|
# make NetHack
|
|
-PREFIX = /usr
|
|
GAME = nethack
|
|
-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
|
|
|
|
# GAMEDIR also appears in config.h as "HACKDIR".
|
|
#
|
|
@@ -33,11 +34,12 @@ DIRPERM = 0755
|
|
# therefore there should not be anything in GAMEDIR that you want to keep
|
|
# (if there is, you'll have to do the installation by hand or modify the
|
|
# instructions)
|
|
-GAMEDIR = $(PREFIX)/games/lib/$(GAME)dir
|
|
-SHELLDIR = $(PREFIX)/games
|
|
+REALGAMEDIR = ${PREFIX}/lib/$(GAME)dir
|
|
+GAMEDIR = ${DESTDIR}${REALGAMEDIR}
|
|
+SHELLDIR = $(DESTDIR)$(PREFIX)/bin
|
|
|
|
# per discussion in Install.X11 and Install.Qt
|
|
-VARDATND =
|
|
+# VARDATND =
|
|
# VARDATND = x11tiles pet_mark.xbm
|
|
# VARDATND = x11tiles pet_mark.xbm rip.xpm
|
|
|
|
@@ -139,7 +141,7 @@ dofiles:
|
|
$(MAKE) dofiles-$${target-nodlb}
|
|
cp src/$(GAME) $(GAMEDIR)
|
|
-rm -f $(SHELLDIR)/$(GAME)
|
|
- sed -e 's;/usr/games/lib/nethackdir;$(GAMEDIR);' \
|
|
+ sed -e 's;/usr/games/lib/nethackdir;$(REALGAMEDIR);' \
|
|
-e 's;HACKDIR/nethack;HACKDIR/$(GAME);' \
|
|
< sys/unix/nethack.sh \
|
|
> $(SHELLDIR)/$(GAME)
|