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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
$NetBSD: patch-aa,v 1.3 2003/01/03 20:35:29 wiz Exp $
--- Makefile.orig Sun Dec 29 08:14:00 2002
+++ Makefile
@@ -556,7 +556,7 @@ HAVE_UNISTD_H=
#INCDIR= /usr/local/include
#INCDIR= /dev/env/DJDIR/include
-INCDIR= /usr/include
+INCDIR= ${PREFIX}/include
# Where to install calc realted things
#
@@ -583,15 +583,15 @@ INCDIR= /usr/include
#
#BINDIR= /usr/local/bin
#BINDIR= /dev/env/DJDIR/bin
-BINDIR= /usr/bin
+BINDIR= ${PREFIX}/bin
#LIBDIR= /usr/local/lib
#LIBDIR= /dev/env/DJDIR/lib
-LIBDIR= /usr/lib
+LIBDIR= ${PREFIX}/lib
#CALC_SHAREDIR= /usr/local/lib/calc
#CALC_SHAREDIR= /dev/env/DJDIR/share/calc
-CALC_SHAREDIR= /usr/share/calc
+CALC_SHAREDIR= ${PREFIX}/share/calc
#CALC_INCDIR= /usr/local/include/calc
#CALC_INCDIR= /dev/env/DJDIR/include/calc
@@ -665,7 +665,7 @@ T=
#MANDIR=
#MANDIR= /usr/local/man/man1
#MANDIR= /usr/man/man1
-MANDIR= /usr/share/man/man1
+MANDIR= ${PREFIX}/man/man1
#MANDIR= /dev/env/DJDIR/man/man1
#MANDIR= /usr/man/u_man/man1
#MANDIR= /usr/contrib/man/man1
@@ -676,7 +676,7 @@ MANDIR= /usr/share/man/man1
#
# Use CATDIR= to disable installation of the calc cat (formatted) page.
#
-CATDIR=
+CATDIR= ${PREFIX}/man/cat1
#CATDIR= /usr/local/man/cat1
#CATDIR= /usr/local/catman/cat1
#CATDIR= /usr/man/cat1
@@ -697,9 +697,9 @@ MANEXT= 1
#
# This is ignored if CATDIR is empty.
#
-CATEXT= 1
+#CATEXT= 1
#CATEXT= 1.gz
-#CATEXT= 0
+CATEXT= 0
#CATEXT= l
# how to format a man page
@@ -725,8 +725,8 @@ CATEXT= 1
# and CATDIR to empty and ignore the NROFF, NROFF_ARG and MANMAKE
# lines below.
#
-#NROFF= nroff
-NROFF=
+NROFF= nroff
+#NROFF=
#NROFF= groff
NROFF_ARG= -man
#NROFF_ARG= -mandoc
@@ -770,10 +770,10 @@ CALCRC= ${CALC_SHAREDIR}/startup:~/.calc
#
# If in doubt, set USE_READLINE, READLINE_LIB and READLINE_INCLUDE to nothing.
#
-USE_READLINE=
-#USE_READLINE= -DUSE_READLINE
+#USE_READLINE=
+USE_READLINE= -DUSE_READLINE
#
-READLINE_LIB=
+READLINE_LIB= -lreadline -ltermcap
#READLINE_LIB= -lreadline -lhistory -lncurses
#READLINE_LIB= -L/usr/gnu/lib -lreadline -lhistory -lncurses
#READLINE_LIB= -L/usr/local/lib -lreadline -lhistory -lncurses
@@ -786,10 +786,10 @@ READLINE_INCLUDE=
#
# Select CALCPAGER= less.exe -ci for DJGPP.
#
-CALCPAGER= more
+#CALCPAGER= more
#CALCPAGER= pg
#CALCPAGER= cat
-#CALCPAGER= less
+CALCPAGER= less
#CALCPAGER= less.exe -ci
# Debug/Optimize options for ${CC} and ${LCC}
@@ -807,7 +807,7 @@ CALCPAGER= more
#DEBUG= -O1 -g3
#
#DEBUG= -O2
-DEBUG= -O2 -g
+#DEBUG= -O2 -g
#DEBUG= -O2 -g3
#DEBUG= -O2 -ipa
#DEBUG= -O2 -g3 -ipa
@@ -959,10 +959,10 @@ CCWARN= -Wall -Wno-implicit -Wno-comment
CCOPT= ${DEBUG} ${NO_SHARED}
CCMISC=
#
-CFLAGS= -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC}
-ICFLAGS= -DCALC_SRC ${CCWARN} ${CCMISC}
+CFLAGS= -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC} ${CPPFLAGS}
+ICFLAGS= -DCALC_SRC ${CCWARN} ${CCMISC} ${CPPFLAGS}
#
-LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
+LDFLAGS+= ${NO_SHARED} ${LD_NO_SHARED}
ILDFLAGS=
#
LCC= gcc
|