summaryrefslogtreecommitdiff
path: root/www/w3m/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'www/w3m/scripts')
-rw-r--r--www/w3m/scripts/pre-configure43
1 files changed, 43 insertions, 0 deletions
diff --git a/www/w3m/scripts/pre-configure b/www/w3m/scripts/pre-configure
new file mode 100644
index 000000000000..757830b40bd3
--- /dev/null
+++ b/www/w3m/scripts/pre-configure
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+echo "# Configuration at ${HOSTNAME}" > ${WRKSRC}/config.param
+echo prefix=${PREFIX} >> ${WRKSRC}/config.param
+echo def_bindir=${PREFIX}/bin >> ${WRKSRC}/config.param
+echo def_libdir=${PREFIX}/libexec/w3m >> ${WRKSRC}/config.param
+echo def_helpdir=${PREFIX}/share/doc/w3m >> ${WRKSRC}/config.param
+echo def_helpdir_ja=${PREFIX}/share/doc/ja/w3m >> ${WRKSRC}/config.param
+echo ftppass_hostnamegen=y >> ${WRKSRC}/config.param
+echo show_params=y >> ${WRKSRC}/config.param
+echo use_nntp=y >> ${WRKSRC}/config.param
+echo 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=${PREFIX}/bin/netscape >> ${WRKSRC}/config.param
+echo dcc=/usr/bin/cc >> ${WRKSRC}/config.param
+
+if [ "x${USE_OPENSSL}" = "xyes" ] ; 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 [ "x${JAPANESE}" = "xYes" ] ; then
+ echo pref_lang=1 >> ${WRKSRC}/config.param
+else
+ echo pref_lang=2 >> ${WRKSRC}/config.param
+fi
+
+if [ "x${INLINE_IMAGE}" = "xyes" ] ; then
+ echo use_image=y >> ${WRKSRC}/config.param
+fi
+
+if [ "x${M17N}" = "xyes" ] ; then
+ echo suffix= >> ${WRKSRC}/config.param
+ echo charset=UTF-8 >> ${WRKSRC}/config.param
+else
+ echo def_dcode=E >> ${WRKSRC}/config.param
+fi