Package: xzip / 1:1.8.2-4

001_debian_config.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
70
71
72
73
74
75
76
77
Configure for Debian systems

--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,7 @@
 #   BYTE_ORDER definitions installed. If AUTO_END_MODE doesn't
 #   work, use LITTLE_END_MODE on an x86, BIG_END_MODE on a
 #   680x0 or PPC machine.
-#SYSTEMFLAGS = -DAUTO_END_MODE
+SYSTEMFLAGS = -DAUTO_END_MODE
 
 # definitions for BSDI 4
 #SYSTEMFLAGS = -DAUTO_END_MODE
@@ -67,8 +67,8 @@
 # definitions for where the X lib and include directories are.
 # The following are defaults that might work.
 
-XINCLUDE = /usr/include/X11
-XLIB = /usr/lib/X11
+#XINCLUDE = /usr/include/X11
+#XLIB = /usr/lib/X11
 
 # If your compiler can't find these things, try commenting out the
 # above, and uncommenting various versions below. Also look around
@@ -79,8 +79,8 @@
 # directories could be just about anywhere. Sigh.
 
 # for Debian or SuSE Linux
-#XINCLUDE = /usr/X11R6/include/X11
-#XLIB = /usr/X11R6/lib
+XINCLUDE = /usr/X11R6/include/X11
+XLIB = /usr/X11R6/lib
 
 # for Red Hat Linux
 #XINCLUDE = /usr/include/X11
@@ -97,11 +97,12 @@
 # --------------------
 
 # definition for where to install xzip executable and man page
-DESTDIR = /usr/local
+BINDIR = /usr/games
+MANDIR = /usr/share/man
 
 # --------------------
 
-CFLAGS = -O $(SYSTEMFLAGS) -I$(XINCLUDE)
+CFLAGS = -O
 LDFLAGS =
 LIBS = -L$(XLIB) -lX11 $(SYSTEMLIBS)
 
@@ -148,19 +149,22 @@
 
 $(OBJS) : $(INC) extern.c version.h
 
+.c.o:
+	$(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) -c $<
+
 pickle.o : pickle.h
 
 $(XOBJS) : $(INC) xio.h version.h
 
 xio.o: xio.c xio.h greypm.bm
-	$(CC) $(CFLAGS) -c xio.c
+	$(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) -c xio.c
 
 xinit.o: xinit.c xio.h
-	$(CC) $(CFLAGS) $(FONTDEFAULTLIST) -c xinit.c
+	$(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) $(FONTDEFAULTLIST) -c xinit.c
 
 install: $(PROGRAM)
-	install -s $(PROGRAM) $(DESTDIR)/bin
-	install $(PROGRAM).1 $(DESTDIR)/man/man1
+	install $(PROGRAM) $(DESTDIR)/$(BINDIR)
+	install $(PROGRAM).1 $(DESTDIR)/$(MANDIR)/man6/$(PROGRAM).6
 
 clean :
 	-rm -f *~ *.o $(PROGRAM) test