summaryrefslogtreecommitdiff
path: root/games/xsoldier/patches/patch-aa
blob: 18830af7a57ade7c2a4b0bc5fce661c8f06a7e58 (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
$NetBSD: patch-aa,v 1.4 2001/09/14 03:48:07 jlam Exp $
--- Imakefile.orig	Fri Feb 28 08:48:57 1997
+++ Imakefile	Mon Sep 14 16:52:46 1998
@@ -11,12 +11,12 @@
 
 /* インストールディレクトリ						   */
 /* 書き込み権限が無いとインストール出来ません.=> 遊べない.(^^;           */
-PIXMAPDIR	= /usr/local/games/lib/xsoldier
-SCOREDIR	= /usr/local/games/lib/xsoldier
-BINDIR		= /usr/local/games
+PIXMAPDIR	= $(PREFIX)/share/xsoldier
+SCOREDIR	= /var/games/
+BINDIR		= $(PREFIX)/bin
 
 /* スコアファイル名.SCOREDIR 以下に置かれます.			   */
-SCOREFILE	= .scorefile
+SCOREFILE	= xsoldier
 
 
 /* ----------------------------------------------------------------------- */
@@ -93,9 +93,9 @@
 	@echo "install update . done"
 
 install.score::
-	@if [ -d $(SCOREDIR) ]; then chmod 755 $(SCOREDIR); \
-        else $(MKDIRHIER) $(SCOREDIR); chmod 755 $(SCOREDIR); fi
-	$(INSTALL) -c -m 600 scorefile.txt $(SCOREDIR)/$(SCOREFILE)
+	@if [ ! -e $(PIXMAPDIR)/$(SCOREFILE).score.dist ]; then \
+		$(BSD_INSTALL_DATA) scorefile.txt $(PIXMAPDIR)/$(SCOREFILE).score.dist ; \
+	fi
 	@echo "install score . done"
 
 install.pixmap::
@@ -109,5 +109,5 @@
 install.bin::
 	@if [ -d $(BINDIR) ]; then set +x; \
         else (set -x; $(MKDIRHIER) $(BINDIR)); fi
-	$(INSTALL) -c -m 4755 $(PROGRAM) $(BINDIR)/$(PROGRAM)
+	$(INSTALL) -c -o $(BINOWN) -g games -m 2755 $(PROGRAM) $(BINDIR)/$(PROGRAM)
 	@echo "install bin . done"