~ubuntu-branches/ubuntu/hardy/xzip/hardy

« back to all changes in this revision

Viewing changes to debian/patches/001_debian_config.diff

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Schepler
  • Date: 2004-04-28 05:06:15 UTC
  • Revision ID: james.westby@ubuntu.com-20040428050615-07kk3bubuck40m0w
Tags: 1:1.8.2-3
* Bump Standards-Version to 3.6.1 (no changes needed).
* Corrected formatting error in debian/copyright (thanks lintian).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: Makefile
 
2
===================================================================
 
3
--- Makefile    (revision 2)
 
4
+++ Makefile    (working copy)
 
5
@@ -51,7 +51,7 @@
 
6
 #   BYTE_ORDER definitions installed. If AUTO_END_MODE doesn't
 
7
 #   work, use LITTLE_END_MODE on an x86, BIG_END_MODE on a
 
8
 #   680x0 or PPC machine.
 
9
-#SYSTEMFLAGS = -DAUTO_END_MODE
 
10
+SYSTEMFLAGS = -DAUTO_END_MODE
 
11
 
 
12
 # definitions for BSDI 4
 
13
 #SYSTEMFLAGS = -DAUTO_END_MODE
 
14
@@ -67,8 +67,8 @@
 
15
 # definitions for where the X lib and include directories are.
 
16
 # The following are defaults that might work.
 
17
 
 
18
-XINCLUDE = /usr/include/X11
 
19
-XLIB = /usr/lib/X11
 
20
+#XINCLUDE = /usr/include/X11
 
21
+#XLIB = /usr/lib/X11
 
22
 
 
23
 # If your compiler can't find these things, try commenting out the
 
24
 # above, and uncommenting various versions below. Also look around
 
25
@@ -79,8 +79,8 @@
 
26
 # directories could be just about anywhere. Sigh.
 
27
 
 
28
 # for Debian or SuSE Linux
 
29
-#XINCLUDE = /usr/X11R6/include/X11
 
30
-#XLIB = /usr/X11R6/lib
 
31
+XINCLUDE = /usr/X11R6/include/X11
 
32
+XLIB = /usr/X11R6/lib
 
33
 
 
34
 # for Red Hat Linux
 
35
 #XINCLUDE = /usr/include/X11
 
36
@@ -97,11 +97,12 @@
 
37
 # --------------------
 
38
 
 
39
 # definition for where to install xzip executable and man page
 
40
-DESTDIR = /usr/local
 
41
+BINDIR = /usr/games
 
42
+MANDIR = /usr/share/man
 
43
 
 
44
 # --------------------
 
45
 
 
46
-CFLAGS = -O $(SYSTEMFLAGS) -I$(XINCLUDE)
 
47
+CFLAGS = -O
 
48
 LDFLAGS =
 
49
 LIBS = -L$(XLIB) -lX11 $(SYSTEMLIBS)
 
50
 
 
51
@@ -148,19 +149,22 @@
 
52
 
 
53
 $(OBJS) : $(INC) extern.c version.h
 
54
 
 
55
+.c.o:
 
56
+       $(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) -c $<
 
57
+
 
58
 pickle.o : pickle.h
 
59
 
 
60
 $(XOBJS) : $(INC) xio.h version.h
 
61
 
 
62
 xio.o: xio.c xio.h greypm.bm
 
63
-       $(CC) $(CFLAGS) -c xio.c
 
64
+       $(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) -c xio.c
 
65
 
 
66
 xinit.o: xinit.c xio.h
 
67
-       $(CC) $(CFLAGS) $(FONTDEFAULTLIST) -c xinit.c
 
68
+       $(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) $(FONTDEFAULTLIST) -c xinit.c
 
69
 
 
70
 install: $(PROGRAM)
 
71
-       install -s $(PROGRAM) $(DESTDIR)/bin
 
72
-       install $(PROGRAM).1 $(DESTDIR)/man/man1
 
73
+       install $(PROGRAM) $(DESTDIR)/$(BINDIR)
 
74
+       install $(PROGRAM).1 $(DESTDIR)/$(MANDIR)/man6/$(PROGRAM).6
 
75
 
 
76
 clean :
 
77
        -rm -f *~ *.o $(PROGRAM) test