summaryrefslogtreecommitdiff
path: root/devel/spiff/patches/patch-aa
blob: dd6b9dc6a552c06cf279272f2ae9a8931f5b5ca4 (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
$NetBSD: patch-aa,v 1.3 2012/06/18 03:39:00 dholland Exp $

- configure for pkgsrc
- honor PKGMANDIR

--- Makefile.orig	1994-05-01 22:51:17.000000000 +0000
+++ Makefile
@@ -7,7 +7,7 @@
 #	name of the directory into which the binary should be installed
 #		used only when you use  'make install'
 #
-INSDIR=/usr/local/bin
+INSDIR=${DESTDIR}${PREFIX}
 
 #
 #	choose one from each of 1) 2) and 3) below
@@ -18,21 +18,21 @@ INSDIR=/usr/local/bin
 #		choose a) b) or c)
 #
 # a) for BSD derivitives, enable the following line
-#OSFLAG=
+OSFLAG=
 
 # b) for XENIX systems, enable the following line
 #OSFLAG=-DXENIX
 
 # b) for other A.T.&T. UNIX derivitives, enable the following line
-OSFLAG=-DATT
+#OSFLAG=-DATT
 
 #
 # 	2) SELECTION OF TERMINAL CONTROL LIBRARY
 #		choose either of a) b) or c)
 #
 # a) if you use termcap, enable the following lines
-#TFLAG=-DM_TERMCAP
-#TLIB=termcap
+TFLAG=-DM_TERMCAP
+TLIB=termcap
 
 # b) if you are using terminfo on a XENIX machine, enable the following lines
 #TFLAG=-DM_TERMINFO
@@ -44,8 +44,8 @@ OSFLAG=-DATT
 #TLIB=curses
 
 # d) NONE OF THE ABOVE
-TFLAG=
-TLIB=m	# just a link to mathlib; quick hack to avoid fixing Makefile
+#TFLAG=
+#TLIB=m	# just a link to mathlib; quick hack to avoid fixing Makefile
 
 #
 #	3) SELECTION OF WINDOW MANAGER AVAILABILITY
@@ -80,7 +80,7 @@ MANPAGE=spiff.1
 # disable this line iff you like being honked at.
 DEFS = -DNOCHATTER
 
-CFLAGS=-O $(OSFLAG) $(TFLAG) $(VISFLAG) $(DEFS)
+CFLAGS+=$(OSFLAG) $(TFLAG) $(VISFLAG) $(DEFS)
 
 default: spiff
 
@@ -145,5 +145,5 @@ cmd:
 	-$(CMD) $(CFILES) $(HFILES) $(OTHER) $(MANPAGE)
 install:
 	mv spiff $(INSDIR)/bin
-	cp $(MANPAGE) $(INSDIR)/man/man1
+	cp $(MANPAGE) $(INSDIR)/$(PKGMANDIR)/man1