summaryrefslogtreecommitdiffstats
path: root/www/w3m/scripts/pre-configure
blob: 7c0d7f03e450abd0d94d360107d570d3a7437499 (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
#!/bin/sh

echo "# Configuration at ${HOSTNAME}" > ${WRKSRC}/config.param
echo ftppass_hostnamegen=y >> ${WRKSRC}/config.param
echo use_nntp=y >> ${WRKSRC}/config.param
echo use_ansi_color=y >> ${WRKSRC}/config.param
echo dmodel=5 >> ${WRKSRC}/config.param
echo use_ssl_verify=y >> ${WRKSRC}/config.param
echo ded=/usr/bin/vi >> ${WRKSRC}/config.param
echo dmail=/usr/bin/mail >> ${WRKSRC}/config.param
echo dbrowser=${LOCALBASE}/bin/netscape >> ${WRKSRC}/config.param
echo dcc=${CC} >> ${WRKSRC}/config.param
echo emacs_like_lineedit=y >> ${WRKSRC}/config.param
echo use_bundled_gclib=n >> ${WRKSRC}/config.param

if [ -n "${USE_OPENSSL}" ] ; then
    echo dcflags="\"${SSL_CFLAGS} -I${LOCALBASE}/include\"" >> ${WRKSRC}/config.param
    echo dldflags="\"${SSL_LIBS} ${EXTRA_SSL_LIBS} -L${LOCALBASE}/lib\"" >> ${WRKSRC}/config.param
else
    echo dcflags=-I${LOCALBASE}/include >> ${WRKSRC}/config.param
    echo dldflags=-L${LOCALBASE}/lib >> ${WRKSRC}/config.param
fi

if [ -n "${JAPANESE}" ] ; then
    echo lang=JA >> ${WRKSRC}/config.param
    echo use_migemo=y >> ${WRKSRC}/config.param
else
    echo lang=EN >> ${WRKSRC}/config.param
    echo use_migemo=n >> ${WRKSRC}/config.param
fi

if [ -n "${INLINE_IMAGE}" ] ; then
    echo use_image=y >> ${WRKSRC}/config.param
fi

if [ -n "${M17N}" ] ; then
    echo charset=UTF-8 >> ${WRKSRC}/config.param
else
    echo display_code=E >> ${WRKSRC}/config.param
fi
OpenPOWER on IntegriCloud