Merge from vendor branch TNF:
[pkgsrcv2.git] / lang / vslisp / patches / patch-ab
1 $NetBSD: patch-ab,v 1.1.1.1 2000/12/04 23:47:37 jtb Exp $
2
3 --- src/Makefile.orig   2000-05-08 00:26:03.000000000 +0400
4 +++ src/Makefile        2009-12-13 00:31:06.000000000 +0300
5 @@ -24,91 +24,91 @@
6  
7  # LSer - just a test SERVER programm
8  LSer:  iser.lo lser.lo libvslisp$(HIVER).la 
9 -       ../libtool --mode=link $(CC) $(LOPT) LSer lser.lo iser.lo libvslisp$(HIVER).la \
10 +       @$(LIBTOOL) --mode=link $(CC) $(LOPT) LSer lser.lo iser.lo libvslisp$(HIVER).la \
11                 $(LDLIBS)
12  
13  lser.lo: inet/lser.c
14 -       ../libtool --mode=compile $(CC) $(OPT) inet/lser.c
15 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) inet/lser.c
16  
17  iser.lo: inet/iser.c
18 -       ../libtool --mode=compile $(CC) $(OPT) inet/iser.c
19 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) inet/iser.c
20  
21  bin2c: bin2c.lo
22         $(RM) bin2c
23 -       ../libtool --mode=link $(CC) $(LOPT) bin2c bin2c.lo
24 +       @$(LIBTOOL) --mode=link $(CC) $(LOPT) bin2c bin2c.lo
25  
26  bin2c.lo: bin2c.c
27 -       ../libtool --mode=compile $(CC) $(OPT) bin2c.c
28 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) bin2c.c
29  
30  mkfuns: mkfuns.c
31         $(CC) mkfuns.c -o mkfuns
32  
33  cfish.lo: cfish.c
34 -       ../libtool --mode=compile $(CC) $(OPT) cfish.c
35 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) cfish.c
36  
37  newhash.lo: newhash.c l_defs.h
38 -       ../libtool --mode=compile $(CC) $(OPT) newhash.c
39 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) newhash.c
40  
41  cnofish.lo: cnofish.c
42 -       ../libtool --mode=compile $(CC) $(OPT) cnofish.c
43 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) cnofish.c
44  
45  VSLisp0: ilisp.lo  $(LLOBJ) cfish.lo
46         $(RM) VSLisp0
47 -       ../libtool --mode=link $(CC) $(LOPT) VSLisp0 ilisp.lo $(LLOBJ) \
48 +       @$(LIBTOOL) --mode=link $(CC) $(LOPT) VSLisp0 ilisp.lo $(LLOBJ) \
49                     cfish.lo $(LDLIBS)
50  
51  ilisp_d.lo: ilisp.c
52         rm -f ilisp_d.c
53         cp ilisp.c ilisp_d.c
54 -       ../libtool --mode=compile $(CC) -DL3DYN=1 $(OPT) ilisp_d.c 
55 +       @$(LIBTOOL) --mode=compile $(CC) -DL3DYN=1 $(OPT) ilisp_d.c 
56         rm -f ilisp_d.c
57  
58  VSLisp: ilisp_d.lo cnofish.lo libvslisp$(HIVER).la
59 -       ../libtool --mode=link $(CC) $(LOPT) VSLisp ilisp_d.lo cnofish.lo \
60 +       @$(LIBTOOL) --mode=link $(CC) $(LOPT) VSLisp ilisp_d.lo cnofish.lo \
61          libvslisp$(HIVER).la $(LDLIBS) 
62  
63  colorslib.lo: lsrc/colorslib.l $(LSP0DEP) $(B2CDEP)
64         $(LSP0) -i lsrc/colorslib.l
65         $(B2C)  colorslib.lc colorslib.c colorslib
66         $(RM) colorslib.lc
67 -       ../libtool --mode=compile $(CC) $(OPT) colorslib.c
68 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) colorslib.c
69         $(RM) colorslib.c
70  
71  libvslisp$(HIVER).la: $(LLOBJ) funcld.lo colorslib.lo
72 -       ../libtool --mode=link $(CC) $(LOPT) libvslisp$(HIVER).la colorslib.lo \
73 +       @$(LIBTOOL) --mode=link $(CC) $(LOPT) libvslisp$(HIVER).la colorslib.lo \
74                  cnofish.lo \
75          funcld.lo $(LLOBJ) -rpath $(LIBDIR) $(LDLIBS) \
76                 -version-info $(LDRELEASE)
77  
78  lcore.lo:  lcore.c  l_defs.h
79 -       ../libtool --mode=compile $(CC) $(OSOPT) $(OPT) lcore.c
80 +       @$(LIBTOOL) --mode=compile $(CC) $(OSOPT) $(OPT) lcore.c
81  
82  funcf.lo:  functions/funcf.c l_defs.h
83 -       ../libtool --mode=compile $(CC) $(OPT) functions/funcf.c
84 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) functions/funcf.c
85  
86  funcld.lo:  functions/funcld.c l_defs.h
87 -       ../libtool --mode=compile $(CC) $(OPT) functions/funcld.c
88 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) functions/funcld.c
89  
90  funcn.lo:  funcn.c l_defs.h
91 -       ../libtool --mode=compile $(CC) $(OPT) funcn.c
92 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) funcn.c
93  
94  colors.lo:  colors.c l_defs.h
95 -       ../libtool --mode=compile $(CC) $(OPT) colors.c
96 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) colors.c
97  
98  lc.lo:  lc.c l_defs.h
99 -       ../libtool --mode=compile $(CC) $(OPT) lc.c
100 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) lc.c
101  
102  funcm.lo:  funcm.c l_defs.h
103 -       ../libtool --mode=compile $(CC) $(OPT) funcm.c
104 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) funcm.c
105  
106  ilisp.lo:  ilisp.c l_defs.h
107 -       ../libtool --mode=compile $(CC) $(OPT) ilisp.c
108 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) ilisp.c
109  
110  funct.lo: funct.c l_defs.h
111 -       ../libtool --mode=compile $(CC) $(OPT) funct.c
112 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) funct.c
113  
114  funcs.lo: funcs.c l_defs.h
115 -       ../libtool --mode=compile $(CC) $(OPT) funcs.c
116 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) funcs.c
117  
118  funct.c: functions/funct.c mkfuns
119         ./mkfuns funstmp < functions/funct.c > funct.c
120 @@ -127,19 +127,19 @@
121         rm -f funstmp
122  
123  lmem.lo:  lmem.c l_defs.h
124 -       ../libtool --mode=compile $(CC) $(OPT) lmem.c
125 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) lmem.c
126  
127  forms1.lo:  forms1.c l_defs.h
128 -       ../libtool --mode=compile $(CC) $(OPT) forms1.c
129 +       @$(LIBTOOL) --mode=compile $(CC) $(OPT) forms1.c
130  
131  test.lo: test.cpp lisp.hpp l_defs.h
132 -       ../libtool $(CCPP) $(OPT) test.cpp
133 +       @$(LIBTOOL) $(CCPP) $(OPT) test.cpp
134  
135  lisp.lo: lisp.cpp lisp.hpp l_defs.h
136 -       ../libtool $(CCPP) $(OPT) lisp.cpp
137 +       @$(LIBTOOL) $(CCPP) $(OPT) lisp.cpp
138  
139  test: test.lo lisp.lo libvslisp$(HIVER).la 
140 -       ../libtool $(CCPP) $(LOPT) test test.lo lisp.lo libvslisp$(HIVER).la \
141 +       @$(LIBTOOL) $(CCPP) $(LOPT) test test.lo lisp.lo libvslisp$(HIVER).la \
142                 $(LDLIBS)
143  
144  clean:
145 @@ -165,17 +165,17 @@
146         $(RM) funcs.c
147  
148  install: VSLisp libvslisp$(HIVER).la
149 -       mkdir -p $(PREFIX)/bin/
150 -       mkdir -p $(PREFIX)/lib/
151 -       mkdir -p $(PREFIX)/include/
152 -       ../libtool --mode=install $(INSTALL) -s VSLisp $(PREFIX)/bin/
153 -       ../libtool --mode=install $(INSTALL) -s -m 644 libvslisp$(HIVER).la \
154 -                $(PREFIX)/lib/libvslisp$(HIVER).la
155 -       cp l_defs.h $(PREFIX)/include/
156 +       mkdir -p $(DESTDIR)$(PREFIX)/bin/
157 +       mkdir -p $(DESTDIR)$(PREFIX)/lib/
158 +       mkdir -p $(DESTDIR)$(PREFIX)/include/
159 +       @$(LIBTOOL) --mode=install $(INSTALL) -s VSLisp $(DESTDIR)$(PREFIX)/bin/
160 +       @$(LIBTOOL) --mode=install $(INSTALL) -s -m 644 libvslisp$(HIVER).la \
161 +                $(DESTDIR)$(PREFIX)/lib/libvslisp$(HIVER).la
162 +       cp l_defs.h $(DESTDIR)$(PREFIX)/include/
163  
164  uninstall:
165         rm -f $(PREFIX)/bin/VSLisp
166 -       ../libtool --mode=uninstall rm -f $(PREFIX)/lib/libvslisp$(HIVER).la
167 +       @$(LIBTOOL) --mode=uninstall rm -f $(PREFIX)/lib/libvslisp$(HIVER).la
168  
169  
170