aboutsummaryrefslogtreecommitdiffstats
path: root/www/Mosaic/files/patch-aa
blob: 18064d719ac56b426a2e0f8c306fd42b8309df24 (plain) (blame)
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
*** Makefile.orig   Thu Oct 19 01:12:16 1995
--- Makefile    Tue Dec  5 07:19:09 1995
***************
*** 10,22 ****
  
  prereleaseflags = -DPRERELEASE
  
! RANLIB = /bin/true
  #### On non-SGI's, this should be ranlib.
  RANLIB = ranlib
  
  CC = cc
  #### On Sun's, this should be gcc (ANSI required).
! CC = gcc
  
  #### Linker Flags -- Primarily for linking static on linux-elf.
  #ldflags = -static
--- 10,22 ----
  
  prereleaseflags = -DPRERELEASE
  
! #RANLIB = /bin/true
  #### On non-SGI's, this should be ranlib.
  RANLIB = ranlib
  
  CC = cc
  #### On Sun's, this should be gcc (ANSI required).
! #CC = gcc
  
  #### Linker Flags -- Primarily for linking static on linux-elf.
  #ldflags = -static
***************
*** 24,30 ****
  
  #### For a few files in the source, some compilers may need to be kicked
  #### in K&R mode.  E.g., on SGI's, -cckr does this.
! knrflag = -cckr
  #### On most systems, no flag is needed.
  knrflag =
  
--- 24,30 ----
  
  #### For a few files in the source, some compilers may need to be kicked
  #### in K&R mode.  E.g., on SGI's, -cckr does this.
! #knrflag = -cckr
  #### On most systems, no flag is needed.
  knrflag =
  
***************
*** 40,49 ****
  #### For Convex whatever, do -DCONVEX
  #### For SCO ODT 3.0, do -DSCO -DSVR4 -DMOTIF1_2
  #### For Motorola SVR4, do -DSVR4 -DMOTOROLA -DMOTIF1_2
! sysconfigflags = 
  
  #### System libraries.
! syslibs = -lPW -lsun -lmalloc
  #### For AIX 3.2
  # syslibs = -lPW -lbsd
  #### For most other Motif platforms:
--- 40,49 ----
  #### For Convex whatever, do -DCONVEX
  #### For SCO ODT 3.0, do -DSCO -DSVR4 -DMOTIF1_2
  #### For Motorola SVR4, do -DSVR4 -DMOTOROLA -DMOTIF1_2
! sysconfigflags = -DMOTIF1_2
  
  #### System libraries.
! #syslibs = -lPW -lsun -lmalloc
  #### For AIX 3.2
  # syslibs = -lPW -lbsd
  #### For most other Motif platforms:
***************
*** 73,84 ****
  # xinc = -I/usr/include/X11
  #### BSD/386
  # xinc = -I/usr/X11/include
! xinc = -I/xdev/mosaic/X11R5/include
  
  #### X library locations.
  # xlibs = -lXm_s -lXmu -lXt_s -lX11_s
  #### For Sun's (at least running stock X/Motif as installed on our machines):
! xlibs = /xdev/mosaic/X11R5/lib/libXm.a /xdev/mosaic/X11R5/lib/libXmu.a /xdev/mosaic/X11R5/lib/libXt.a /xdev/mosaic/X11R5/lib/libXext.a /xdev/mosaic/X11R5/lib/libX11.a -lm
  #### For HP-UX 8.00:
  # xlibs = -L/usr/lib/Motif1.1 -lXm -L/usr/lib/X11R4 -lXmu -lXt -lX11
  #### For HP-UX 9.01: The X11R5 libraries are here on our systems
--- 73,85 ----
  # xinc = -I/usr/include/X11
  #### BSD/386
  # xinc = -I/usr/X11/include
! #xinc = -I/xdev/mosaic/X11R5/include
! xinc = -I/usr/X11R6/include
  
  #### X library locations.
  # xlibs = -lXm_s -lXmu -lXt_s -lX11_s
  #### For Sun's (at least running stock X/Motif as installed on our machines):
! #xlibs = /xdev/mosaic/X11R5/lib/libXm.a /xdev/mosaic/X11R5/lib/libXmu.a /xdev/mosaic/X11R5/lib/libXt.a /xdev/mosaic/X11R5/lib/libXext.a /xdev/mosaic/X11R5/lib/libX11.a -lm
  #### For HP-UX 8.00:
  # xlibs = -L/usr/lib/Motif1.1 -lXm -L/usr/lib/X11R4 -lXmu -lXt -lX11
  #### For HP-UX 9.01: The X11R5 libraries are here on our systems
***************
*** 97,102 ****
--- 98,109 ----
  # xlibs = -L/usr/X11/lib -lXm -lXmu -lXt -lX11
  #### For Motorola SVR4:
  # xlibs = -lXm -lXmu -lXt -lXext -lX11 -lm
+ #### For FreeBSD 2.x:
+ .if !exists(/usr/X11R6/lib/libXm.a)
+ xlibs = -L/usr/X11R6/lib -lXm -lXmu -lXt -lXext -lX11 -lm
+ .else
+ xlibs = -L/usr/X11R6/lib /usr/X11R6/lib/libXm.a -lXmu -lXt -lXext -lX11 -lm
+ .endif
  
  
  #### DTM AND HDF SUPPORT; READ CAREFULLY
***************
*** 116,138 ****
  #### If your platform is not one of the above, then either do not compile
  #### with HDF/DTM support or try hacking libdtm/makefile.
  
! dtmmachtype = sun
! dtmdirs = libdtm libnet
! dtmlibs = ../libnet/libnet.a ../libdtm/libdtm.a
! dtmflags = -DHAVE_DTM -I.. -I../libnet
! hdfdir = /hdf2/install/sun
! hdflibs = $(hdfdir)/lib/libnetcdf.a $(hdfdir)/lib/libdf.a
! hdfflags = -DHAVE_HDF -DHDF -I$(hdfdir)/include
  
  
  #### PNG SUPPORT
  #### For inline PNG support, the following should be defined:
  #### The libraries currently used are PNGLIB 0.81 and ZLIB 0.95
  
! pngdir = /xdev/mosaic/libpng/sun
  pnglibdir = $(pngdir)/lib
  pngincludedir = $(pngdir)/include
! pnglibs = $(pnglibdir)/libpng.a $(pnglibdir)/libz.a -lm
  pngflags =  -I$(pngincludedir) -DHAVE_PNG
  
  
--- 123,148 ----
  #### If your platform is not one of the above, then either do not compile
  #### with HDF/DTM support or try hacking libdtm/makefile.
  
! #dtmmachtype = sun
! #dtmdirs = libdtm libnet
! #dtmlibs = ../libnet/libnet.a ../libdtm/libdtm.a
! #dtmflags = -DHAVE_DTM -I.. -I../libnet
! #hdfdir = /hdf2/install/sun
! #hdflibs = $(hdfdir)/lib/libnetcdf.a $(hdfdir)/lib/libdf.a
! #hdfflags = -DHAVE_HDF -DHDF -I$(hdfdir)/include
  
  
  #### PNG SUPPORT
  #### For inline PNG support, the following should be defined:
  #### The libraries currently used are PNGLIB 0.81 and ZLIB 0.95
  
! #pngdir = /xdev/mosaic/libpng/sun
! pngdir = /usr/local
  pnglibdir = $(pngdir)/lib
  pngincludedir = $(pngdir)/include
! #pnglibs = $(pnglibdir)/libpng.a $(pnglibdir)/libz.a -lm
! #pngflags =  -I$(pngincludedir) -DHAVE_PNG
! pnglibs = -L$(pnglibdir) -lpng -lz -lm
  pngflags =  -I$(pngincludedir) -DHAVE_PNG
  
  
***************
*** 140,147 ****
  #### For inline JPEG support, the following should be defined:
  #### The library used is Independent JPEG Group (IJG's) 5.0a.
  
! jpegdir = /xdev/mosaic/libjpeg/sun
! jpeglibs = $(jpegdir)/lib/libjpeg.a
  jpegflags = -I$(jpegdir)/include -DHAVE_JPEG
  
  
--- 150,159 ----
  #### For inline JPEG support, the following should be defined:
  #### The library used is Independent JPEG Group (IJG's) 5.0a.
  
! #jpegdir = /xdev/mosaic/libjpeg/sun
! jpegdir = /usr/local
! #jpeglibs = $(jpegdir)/lib/libjpeg.a
! jpeglibs = -L$(jpegdir)/lib -ljpeg
  jpegflags = -I$(jpegdir)/include -DHAVE_JPEG
  
  
***************
*** 154,167 ****
  #### define the KRB-ENCRYPT flag.
  
  ##krb4dir   = /usr/athena
! krb4dir   = /xdev/mosaic/libkrb4/sun
! krb4libs  = $(krb4dir)/lib/libkrb.a $(krb4dir)/lib/libdes.a
! krb4flags = -DKRB4 -I$(krb4dir)/include
  
  ##krb5dir   = /krb5
! krb5dir   = /xdev/mosaic/libkrb5/sun
! krb5libs  = $(krb5dir)/lib/libkrb5.a $(krb5dir)/lib/libcrypto.a $(krb5dir)/util/et/libcom_err.a
! krb5flags = -DKRB5 -I$(krb5dir)/include -I$(krb5dir)/include/krb5
  
  #Do not comment out.
  krbflags  = $(krb4flags) $(krb5flags)
--- 166,179 ----
  #### define the KRB-ENCRYPT flag.
  
  ##krb4dir   = /usr/athena
! #krb4dir   = /xdev/mosaic/libkrb4/sun
! #krb4libs  = $(krb4dir)/lib/libkrb.a $(krb4dir)/lib/libdes.a
! #krb4flags = -DKRB4 -I$(krb4dir)/include
  
  ##krb5dir   = /krb5
! #krb5dir   = /xdev/mosaic/libkrb5/sun
! #krb5libs  = $(krb5dir)/lib/libkrb5.a $(krb5dir)/lib/libcrypto.a $(krb5dir)/util/et/libcom_err.a
! #krb5flags = -DKRB5 -I$(krb5dir)/include -I$(krb5dir)/include/krb5
  
  #Do not comment out.
  krbflags  = $(krb4flags) $(krb5flags)
***************
*** 183,192 ****
  
  #### -lm is required for freeWAIS 0.5, as ceil() is used.
  
! waisroot = /xdev/mosaic/freeWAIS/sun4
! waisflags = -DDIRECT_WAIS -I$(waisroot)/include
! waislibdir = $(waisroot)/bin
! waislibs = $(waislibdir)/inv.a $(waislibdir)/wais.a $(waislibdir)/libftw.a -lm
  
  
  #### Customization flags:
--- 195,204 ----
  
  #### -lm is required for freeWAIS 0.5, as ceil() is used.
  
! #waisroot = /xdev/mosaic/freeWAIS/sun4
! #waisflags = -DDIRECT_WAIS -I$(waisroot)/include
! #waislibdir = $(waisroot)/bin
! #waislibs = $(waislibdir)/inv.a $(waislibdir)/wais.a $(waislibdir)/libftw.a -lm
  
  
  #### Customization flags:
***************
*** 203,209 ****
  # ---------------------- END OF CUSTOMIZABLE OPTIONS -------------------------
  
  
! CFLAGS = -g $(sysconfigflags) $(prereleaseflags)
  
  # Don't worry about these -- for development purposes only.
  PURIFY = purify
--- 215,221 ----
  # ---------------------- END OF CUSTOMIZABLE OPTIONS -------------------------
  
  
! CFLAGS += $(sysconfigflags) $(prereleaseflags)
  
  # Don't worry about these -- for development purposes only.
  PURIFY = purify
***************
*** 215,220 ****
--- 227,235 ----
    @echo \*\*\* Welcome to Purify'd NCSA Mosaic.
  quantifyd: $(dtmdirs) libwww2 libXmx libhtmlw libnut src-quantifyd
    @echo \*\*\* Welcome to Quantify'd NCSA Mosaic.
+ 
+ install:
+   $(INSTALL) -c -s -g $(BINGRP) -m $(BINMODE) -o $(BINOWN) src/Mosaic ${PREFIX}/bin/Mosaic
  
  libXmx::
    @echo --- Building libXmx