summaryrefslogtreecommitdiff
path: root/games/sxsame/files/patch-aa
blob: be66a133feb25f8d0a7ed07e7915fe4db8cbecc7 (plain) (blame)
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
--- Imakefile.orig	Sun May  5 04:10:27 1996
+++ Imakefile	Mon Nov  1 02:11:20 1999
@@ -3,7 +3,7 @@
 # * Copyleft  (c) 1994-1996  Software Research Academy         *
 # **************************************************************
 #
-SAMEDIR = /usr/local/games/sxsame
+SAMEDIR = $(PREFIX)/lib/X11/sxsame
 
 #BINDIR = /usr/local/bin
 #MANDIR = /usr/local/man/man1
@@ -11,6 +11,7 @@
 #XPMLIB = -L/usr/local/lib/X11 -lXpm
 #EXTRA_DEFINES = -DLOCAL_XPM_H -I/usr/local/include/X11
 
+INSTPGMFLAGS=-s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
 
 XPMLIB = -lXpm
 LOCAL_LIBRARIES = $(XPMLIB) -lX11
@@ -29,6 +30,10 @@
 #defdata.o:: defdata.c defdata.h
 install.dir::
 	$(MKDIRHIER) $(SAMEDIR)
-	chmod 777 $(SAMEDIR)
+	chmod 2775 $(SAMEDIR)
+	chown ${BINOWN}:${BINGRP} $(SAMEDIR)
 	/bin/cp -pr contrib/?* $(SAMEDIR)
+	touch $(SAMEDIR)/hiscore
+	chmod 664 $(SAMEDIR)/hiscore
+	chown ${BINOWN}:${BINGRP} $(SAMEDIR)/hiscore