Fixup fromcvs/togit conversion
[pkgsrcv2.git] / devel / spiff / patches / patch-aa
1 $NetBSD: patch-aa,v 1.2 2008/07/09 05:02:06 bjs Exp $
2
3 - configure for pkgsrc
4 - honor PKGMANDIR
5
6 --- Makefile.orig       1994-05-01 22:51:17.000000000 +0000
7 +++ Makefile
8 @@ -7,7 +7,7 @@
9  #      name of the directory into which the binary should be installed
10  #              used only when you use  'make install'
11  #
12 -INSDIR=/usr/local/bin
13 +INSDIR=${DESTDIR}${PREFIX}
14  
15  #
16  #      choose one from each of 1) 2) and 3) below
17 @@ -18,21 +18,21 @@ INSDIR=/usr/local/bin
18  #              choose a) b) or c)
19  #
20  # a) for BSD derivitives, enable the following line
21 -#OSFLAG=
22 +OSFLAG=
23  
24  # b) for XENIX systems, enable the following line
25  #OSFLAG=-DXENIX
26  
27  # b) for other A.T.&T. UNIX derivitives, enable the following line
28 -OSFLAG=-DATT
29 +#OSFLAG=-DATT
30  
31  #
32  #      2) SELECTION OF TERMINAL CONTROL LIBRARY
33  #              choose either of a) b) or c)
34  #
35  # a) if you use termcap, enable the following lines
36 -#TFLAG=-DM_TERMCAP
37 -#TLIB=termcap
38 +TFLAG=-DM_TERMCAP
39 +TLIB=termcap
40  
41  # b) if you are using terminfo on a XENIX machine, enable the following lines
42  #TFLAG=-DM_TERMINFO
43 @@ -44,8 +44,8 @@ OSFLAG=-DATT
44  #TLIB=curses
45  
46  # d) NONE OF THE ABOVE
47 -TFLAG=
48 -TLIB=m # just a link to mathlib; quick hack to avoid fixing Makefile
49 +#TFLAG=
50 +#TLIB=m        # just a link to mathlib; quick hack to avoid fixing Makefile
51  
52  #
53  #      3) SELECTION OF WINDOW MANAGER AVAILABILITY
54 @@ -80,7 +80,7 @@ MANPAGE=spiff.1
55  # disable this line iff you like being honked at.
56  DEFS = -DNOCHATTER
57  
58 -CFLAGS=-O $(OSFLAG) $(TFLAG) $(VISFLAG) $(DEFS)
59 +CFLAGS+=$(OSFLAG) $(TFLAG) $(VISFLAG) $(DEFS)
60  
61  default: spiff
62  
63 @@ -145,5 +145,5 @@ cmd:
64         -$(CMD) $(CFILES) $(HFILES) $(OTHER) $(MANPAGE)
65  install:
66         mv spiff $(INSDIR)/bin
67 -       cp $(MANPAGE) $(INSDIR)/man/man1
68 +       cp $(MANPAGE) $(INSDIR)/$(PKGMANDIR)/man1
69