aboutsummaryrefslogtreecommitdiffstats
path: root/mail/elm+ME/scripts/pre-configure
blob: b7048d35f67ca70ced0abe921acac12f570502e8 (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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
#!/bin/sh -e
#
#       pre-configure script for Elm port to FreeBSD
#
# $FreeBSD$

[ -r /usr/include/inttypes.h ] && has_inttypes=define || has_inttypes=undef
cpp /usr/include/wchar.h | grep mbrlen && has_wchar=define || has_wchar=undef

d_shared_rev=${SO_REV:-$(awk '/SHAREDTAG:/{print $2}' ${WRKSRC}/hdrs/patchlevel.h)}

[ -d  ${WRKSRC}/shlib ] || mkdir ${WRKSRC}/shlib

case ${CFLAGS} in
*-g*)   DEBUG="-DDEBUG" ;;
*)  DEBUG= ;;
esac

cat >> ${CONFIG_PATH} << EOF
#!/bin/sh
# config.sh
# This file was produced by running the $0 script.

Log='\$Log'
Header='\$Header'
install_prefix='${PREFIX}'
bin='${PREFIX}/bin'
contains='grep'
cppstdin='/usr/bin/cpp'
cppminus=''
diff='/usr/bin/diff'
d_getopt='define'
d_memcpy='define'
d_symlink='define'
d_whoami='undef'
d_poll='define'
d_select='define'
i_sys_select='define'
d_mmap='define'
d_socket='define'
d_connect_reopen='undef'
d_netdb='define'
d_netinet_in='define'
d_use_aton='define'
d_inttypes='${has_inttypes}'
d_nointtypes='undef'
n='-n'
c=''
orderlib='false'
ranlib=':'
ar='ar'
nm='nm'
package='elm2.4me+'
pager='builtin++'
use_builtin_pager='define'
startsh='#!/bin/sh'
define='define'
loclist='
basename
cat
chgrp
chmod
cp
dirname
echo
expr
egrep
grep
fgrep
head
ln
ls
make
mv
rm
sed
sleep
sort
diff
touch
tr
uniq
cut
'
expr='/bin/expr'
sed='/usr/bin/sed'
echo='/bin/echo'
cat='/bin/cat'
rm='/bin/rm'
mv='/bin/mv'
cp='/bin/cp'
tail=''
tr='/usr/bin/tr'
sort='/usr/bin/sort'
uniq='/usr/bin/uniq'
grep='/usr/bin/grep'
fgrep='/usr/bin/fgrep'
head='/usr/bin/head'
trylist='
Mcc
compress
cpp
date
diff
emacs
execmail
gencat
gpg
ispell
line
lint
lp
locale
lpr
metamail
mips
more
nroff
pack
pg
pgp
pmake
pr
rmail
sendmail
shar
smail
submit
tar
tbl
test
troff
gtroff
uname
uuname
vi
'
test='test'
inews=''
ispell='${LOCALBASE}/bin/ispell'
egrep='/usr/bin/egrep'
more='/usr/bin/more'
pg='pg'
Mcc='Mcc'
vi='/usr/bin/vi'
mailx=''
mail=''
cpp='/usr/bin/cpp'
perl=''
emacs='${LOCALBASE}/bin/emacs'
ls='/bin/ls'
rmail='/bin/rmail'
sendmail='/usr/sbin/sendmail'
shar='/usr/bin/shar'
smail='smail'
submit=''
tbl='/usr/bin/tbl'
troff='/usr/bin/troff'
nroff='/usr/bin/nroff'
uname='/usr/bin/uname'
uuname='/usr/bin/uuname'
line='line'
chgrp='/usr/bin/chgrp'
chmod='/bin/chmod'
lint='/usr/bin/lint'
sleep='/bin/sleep'
pr='/usr/bin/pr'
tar='/usr/bin/tar'
ln='/bin/ln'
lpr='/usr/bin/lpr'
lp='/usr/bin/lp'
touch='/usr/bin/touch'
make='/usr/bin/make'
make_sets_make='define'
date='/bin/date'
csh=''
pmake='pmake'
mips='false'
col=''
pack='pack'
compress='/usr/bin/compress'
execmail=''
gencat='/usr/bin/gencat'
libswanted='sun nls c_s'
noaddlib='yes'
c_date='Tue Aug 24 15:05:52 CEST 2004'
d_ascii='undef'
d_broke_ctype='undef'
d_calendar='define'
calendar='calendar'
d_chown_neg1='define'
d_content='undef'
d_crypt='define'
cryptlib='-lcrypt'
d_cuserid='undef'
d_disphost='define'
d_domname='define'
d_usegetdom='undef'
d_errlst='define'
d_flock='define'
d_dotlock='define'
d_fcntlock='undef'
has_flock='define'
has_fcntl='define'
d_ftruncate='define'
d_gethname='define'
d_douname='undef'
ign_hname=''
d_havetlib='define'
termlib='-ltermlib'
i_curses='undef'
i_term='define'
d_index='undef'
d_internet=''
d_ispell='define'
ispell_path='${LOCALBASE}/bin/ispell'
ispell_options='-x'
d_locale='define'
d_nl_types='define'
d_msgcat='define'
d_usenls=''
d_mallocvoid='define'
d_mboxedit='define'
metamail_path='${LOCALBASE}/bin/metamail'
d_8bitmime='define'
d_binarymime='undef'
d_dsn='define'
defsystemcharset='US-ASCII'
d_mmdf='undef'
d_newauto='define'
d_noaddfrom='define'
d_usedomain='undef'
d_noxheader='undef'
d_pidcheck='define'
d_ptem='undef'
d_putenv='define'
maxattempts='6'
d_setgid='define'
mailermode='2755'
d_sigvec='undef'
d_sigvectr='undef'
d_sigset='undef'
d_sighold='undef'
d_sigprocmask='define'
d_sigblock='undef'
d_waitpid='define'
d_sigaction='define'
d_strcspn='define'
d_strspn='define'
d_strpbrk='define'
d_strerror='define'
d_strftime='define'
d_strings='undef'
d_pwdinsys='undef'
strings='/usr/include/string.h'
includepath=''
d_strstr='define'
d_strtok='define'
d_subshell='define'
d_tempnam='define'
d_setlinebuf='define'
d_shared='define'
d_shared_rev='${d_shared_rev}'
d_dlopen_libs='define'
shared_list='${ELM_SHLIBS}'
shared_register='${ELM_SHLIBS}'
d_dynamic_main='define'
dynamic_opt='-rdynamic'
dlopen_lib=''
rpath_opt='-rpath '
soname_opt='-shared -Wl,-soname,'
soname_include_path='define'
tempnamo=''
tempnamc=''
d_termio='undef'
d_termios='define'
d_utimbuf='define'
d_vfork='define'
d_directory='define'
d_directyry_type='USE_DIRENT'
defbatsub='no subject (file transmission)'
defeditor='/usr/bin/vi'
editoropts=''
hostname='localhost'
phostname='hostname'
mydomain='.invalid'
autohostname='define'
i_memory='define'
i_time='define'
i_systime='define'
d_systimekernel='undef'
i_unistd='define'
i_utime='define'
i_sysutime='undef'
lib='${LIB_DIR}'
shlib='${SHLIB_DIR}'
etc='${CONF_DIR}'
stage_dir='${STAGE_DIR}'
build_package='undef'
libdirname='lib'
libc='/usr/lib/libc.so'
linepr='/usr/bin/lp'
maildir='/var/mail'
mailer='/usr/sbin/sendmail'
mailgrp='mail'
mansrc='${MAN1PREFIX}/man/man1'
catmansrc='${MAN1PREFIX}/man/cat1'
manext='.1'
manext_choice='.1'
catmanext='.1'
catmanext_choice='.1'
packed='n'
manroff='/usr/bin/nroff'
manroffopts=''
suffix=''
packer=''
optimize='${CFLAGS}'
ccflags='${DEBUG}'
picflag='-fPIC'
nopic=''
shared_extra=''
cppflags=''
ldflags='-s'
cc='cc'
libs=''
nametype='bsd'
d_passnames='define'
d_berknames='define'
d_usgnames='undef'
# passcat=''
rmttape='unknown-remote-tape-unit'
roff='/usr/bin/troff'
roffopts=''
sigtype='void'
spitshell='cat'
shsharp='true'
sharpbang='#!'
tmpdir='/tmp'
tzname_handling='TM_ZONE'
use_pmake='n'
xencf=''
xenlf=''
d_xenix='undef'
d_bsd='define'
locale='locale'
have_codeset='define'
d_pgp='define'
pgp='${LOCALBASE}/bin/pgp'
pgp2_path='${LOCALBASE}/bin/pgp'
pgp5_dir='${LOCALBASE}/bin'
gpg_path='${LOCALBASE}/bin/gpg'
special_path='/usr/bin'
special_path2='${PREFIX}/bin'
locale_dir='/usr/share/locale'
d_wchar='${has_wchar}'
d_wcwidth='${has_wchar}'
CONFIG=true
EOF

tee -a ${CONFIG_PATH} >> ${WRKSRC}/shared_libs/iconv/config.res << EOF
iconv_dir='${LOCALBASE}'
iconv_include_dir='${LOCALBASE}/include'
iconv_lib_dir='${LOCALBASE}/lib'
iconv_link='iconv'
EOF

tee -a ${CONFIG_PATH} >> ${WRKSRC}/shared_libs/tls/config.res << EOF
tls_dir='${OPENSSLBASE}'
tls_include_dir='${OPENSSLINC}'
tls_lib_dir='${OPENSSLLIB}'
EOF

exit 0