summaryrefslogtreecommitdiff
path: root/games/cbzone/patches/patch-aa
blob: 92f739fc723846454ccbe5c33a7d2d843b0f6d45 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
$NetBSD: patch-aa,v 1.3 1998/09/13 20:39:44 garbled Exp $
--- Imakefile.orig	Sun Aug  1 22:45:08 1993
+++ Imakefile	Sun Sep 13 13:25:43 1998
@@ -32,9 +32,9 @@
 
 ETCS =  cbzone.help \
         cbzone.motd \
-		cbzone.script \
-		cbzone.highscores \
-		Cbzone.ad
+        cbzone.script \
+        cbzone.highscores \
+        Cbzone.ad
 
 MISC =  Imakefile \
         Makefile.orig \
@@ -53,15 +53,15 @@
 
 # this is where the shellscript, and executable will go
 # TANK_BINDIR = $(BINDIR)
-TANK_BINDIR= /usr/local/games
+TANK_BINDIR= $(PREFIX)/bin
 
 # this is where the scorefile and helpfile will go
 # TANK_LIBDIR = $(LIBDIR)
-TANK_LIBDIR = /usr/local/games/lib/cbzone
+TANK_LIBDIR = $(PREFIX)/share/cbzone
 
 # this is where the app-defaults file will go
 # TANK_APPDIR = $(XAPPLOADDIR)
-TANK_APPDIR = $(TANK_LIBDIR)
+TANK_APPDIR = $(XAPPLOADDIR)
 
 # this is where the sound files go
 TANK_SOUNDDIR = $(TANK_LIBDIR)/sounds
@@ -72,20 +72,20 @@
 
 AllTarget(cbzone.script)
 AllTarget(cbzone.exec)
-           
+
 MakeDirectories(install,$(TANK_BINDIR) $(TANK_LIBDIR) $(TANK_APPDIR) $(TANK_SOUNDDIR))
 InstallProgram(cbzone.exec,$(TANK_BINDIR))
 InstallNamedProg(cbzone.script,cbzone,$(TANK_BINDIR))
 InstallNonExec(cbzone.help,$(TANK_LIBDIR))
 InstallNonExec(cbzone.motd,$(TANK_LIBDIR))
-InstallNonExec(cbzone.highscores,$(TANK_LIBDIR))
+InstallNonExec(cbzone.highscores,/var/games)
 InstallNamedNonExec(Cbzone.ad,Cbzone,$(TANK_APPDIR))
 InstallMultiple($(SOUNDS),$(TANK_SOUNDDIR))
 
 install::
-	@if chgrp games $(TANK_BINDIR)/cbzone.exec $(TANK_LIBDIR)/cbzone.highscores 2>/dev/null ; then \
+	@if chgrp games $(TANK_BINDIR)/cbzone.exec /var/games/cbzone.highscores 2>/dev/null ; then \
 		(set -x ; chmod 2755 $(TANK_BINDIR)/cbzone.exec ) ; \
-		(set -x ; chmod 664 $(TANK_LIBDIR)/cbzone.highscores ) ; \
+		(set -x ; chmod 664 /var/games/cbzone.highscores ) ; \
 	else \
 		echo 'Failed: chgrp games for "cbzone.exec", "cbzone.highscores".' ; \
 		echo '         highscore file exists but could not be protected.' ; \
@@ -97,8 +97,8 @@
 	chmod 664 $@
 
 cbzone.exec: $(OBJS) $(DEPLIBS)
-    RemoveTargetProgram($@)
-    $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
+	RemoveTargetProgram($@)
+	$(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
 
 cbzone.script : cbzone.script.src
 	rm -f $@