summaryrefslogtreecommitdiff
path: root/games/xboing/patches/patch-aa
blob: 37d8384873d9887cca251fd73a61297c439023fd (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
72
73
74
75
76
77
78
$NetBSD: patch-aa,v 1.8 2004/12/27 22:11:31 minskim Exp $

--- Imakefile.orig	1996-11-21 19:28:46.000000000 -0600
+++ Imakefile
@@ -24,23 +24,23 @@ XCOMM ==================================
 XCOMM This is the directory where the highscore, level & sound data will be 
 XCOMM placed. Default will be the current directory.
 
-    XBOING_DIR = .
+    XBOING_DIR = $(X11PREFIX)/share/xboing
 
 XCOMM These are some defines that must be set. Some may be overwritten in the
 XCOMM machine arch section.
 
-    XPMLIB 				= -L/usr/X11/lib -lXpm
-    XPMINCLUDE 			= -I/usr/X11/include/X11
+    XPMLIB 			= -L$(X11BASE)/lib -lXpm
+    XPMINCLUDE 			= -I$(X11BASE)/include/X11
     XBOINGINCLUDE 		= -I./include
     LEVEL_INSTALL_DIR 	= $(XBOING_DIR)/levels
     SOUNDS_DIR 			= $(XBOING_DIR)/sounds
     BACKUP_DIR 			= $(XBOING_DIR)/../backups
-    HIGH_SCORE_FILE 	= $(XBOING_DIR)/.xboing.scr
+    HIGH_SCORE_FILE 		= $(VARBASE)/games/xboing.scr
     AUDIO_AVAILABLE 	= False
     AUDIO_SRC 			= audio/NOaudio.c
     AUDIO_INCLUDE 		=
     AUDIO_LIB 			=
-	CDEBUGFLAGS         = -g
+    CDEBUGFLAGS         	= -O -g
 
 XCOMM Uncomment this if you want to use ANY of the AUDIO sound systems
 #define COMPILE_IN_AUDIO    
@@ -60,11 +60,11 @@ XCOMM Below are the special defines for 
     AUDIO_LIB 		= -laudio
 #endif /* HPArchitecture */
 
-#if defined(LinuxArchitecture) && defined(COMPILE_IN_AUDIO)
+#if defined(NetBSDArchitecture) && defined(COMPILE_IN_AUDIO)
     AUDIO_AVAILABLE = True
     AUDIO_SRC 		= audio/LINUXaudio.c
     AUDIO_INCLUDE 	=
-    AUDIO_LIB 		= 
+    AUDIO_LIB 		= $(LIBOSSAUDIO)
 #endif /* linux */
 
 #if defined(svr4) && defined(COMPILE_IN_AUDIO)
@@ -81,7 +81,7 @@ XCOMM Below are the special defines for 
     AUDIO_LIB 		= -laudio
 #endif /* SGIArchitecture */
 
-#if defined(SparcArchitecture) && defined(COMPILE_IN_AUDIO)
+#if defined(SparcArchitecture) && defined(COMPILE_IN_AUDIO) && !defined(NetBSDArchitecture)
     AUDIO_AVAILABLE	= True
     AUDIO_SRC 		= audio/SUNaudio.c
 
@@ -132,8 +132,8 @@ XCOMM hasn't a usleep() function.
         -DLEVEL_INSTALL_DIR=\"$(LEVEL_INSTALL_DIR)\" \
         -DAUDIO_AVAILABLE=\"$(AUDIO_AVAILABLE)\" \
         -DSOUNDS_DIR=\"$(SOUNDS_DIR)\" \
-        -DREADMEP_FILE=\"$(XBOING_DIR)/docs/problems.doc\"
-XCOMM   -DUSE_FLOCK=\"True\" \
+        -DREADMEP_FILE=\"$(XBOING_DIR)/problems.doc\" \
+        -DUSE_FLOCK=\"True\" \
 XCOMM   -DNEED_USLEEP=\"True\" \
 XCOMM   -DNO_LOCKING=\"True\" 
 
@@ -204,8 +204,8 @@ install:: $(PROGRAMS)
 	 fi
 	@:
 	@echo "Creating a highscore file " $(HIGH_SCORE_FILE)
-	@touch $(HIGH_SCORE_FILE);
-	@chmod a+rw $(HIGH_SCORE_FILE);
+	@touch xboing.scr
+	@${BSD_INSTALL_GAME_DATA} xboing.scr $(HIGH_SCORE_FILE);
 
 XCOMM I use this for my daily backup of my code.