Package: jester / 1.0-13

debian-1.0-8.patch Patch series | download
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
Subject: Debian patches up to version 1.0-10
Origin: Debian changes contained in previous diff.gz
Last-Update: 2012-10-29
--- a/jester.6
+++ b/jester.6
@@ -4,7 +4,7 @@ jester \- an X-based game similar to \fI
 .SH SYNOPSIS
 .B jester
 [{\-display, \-d, \-\-display} \fIdisplay\fP]
-[{\-h, \-help, \-\-help}] [\-2player] [\-ai {white, black}]
+[{\-h, \-help, \-\-help}] [\-2players] [\-ai {white, black}]
 .SH DESCRIPTION
 .B jester
 is an X-based game similar to the board game \fIOthello\fR.
@@ -38,7 +38,7 @@ Display on \fIdisplay\fR.
 .I \-h, \-help, \-\-help
 Print a help message and exit.
 .TP
-.I \-2player
+.I \-2players
 Play against another person at the same console.
 .TP
 .I \-ai {white, black}
@@ -51,4 +51,4 @@ This can be overridden on the command li
 .SH BUGS
 None known...
 .SH AUTHOR
-Matt Grossman \(la\fImattg@oz.net\fR\(ra
\ No newline at end of file
+Matt Grossman \(la\fImattg@oz.net\fR\(ra
--- a/jester.c
+++ b/jester.c
@@ -130,6 +130,7 @@ proper_function(struct jester_data *jd,
     rv = (caddr_t)jd->buttonpress_function;
     break;
   default:
+    break;
   }
 
   return(rv);
@@ -174,7 +175,7 @@ set_up_colors()
   Colormap colormap;
 
   colormap = DefaultColormap(display, screen_number);
-  XAllocNamedColor(display, colormap, "green", &exact_color, &real_color);
+  XAllocNamedColor(display, colormap, "chocolate", &exact_color, &real_color);
   green = real_color.pixel;
   XAllocNamedColor(display, colormap, "black", &exact_color, &real_color);
   black = real_color.pixel;
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,15 @@
 # makefile for jester
 
-CC = gcc -Wall -O2
+CC = gcc -Wall -O2 -g
 #CC = gcc -Wall -g
+CFLAGS = `dpkg-buildflags --get CFLAGS`
+CFLAGS += `dpkg-buildflags --get CPPFLAGS`
+CFLAGS += `dpkg-buildflags --get LDFLAGS`
 LIBS = -L/usr/X11R6/lib -lX11
 INSTALLDIR = /usr/local
 
 jester: jester.c jester.h
-	$(CC) -o jester jester.c $(LIBDIR) $(LIBS)
+	$(CC) $(CFLAGS) -o jester jester.c $(LIBDIR) $(LIBS)
 
 install: jester jester.6
 	install jester $(INSTALLDIR)/bin/jester