Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

w3m pkgsrc from NetBSD-current

  • Loading branch information...
commit f720d45db0d4d7afe8922a115e40f82ab59945ab 1 parent 8bf7b31
itojun authored
81 netbsd/pkgsrc/www/w3m/Makefile
View
@@ -0,0 +1,81 @@
+# $NetBSD: Makefile,v 1.3 1999/09/28 07:20:08 sakamoto Exp $
+
+DISTNAME= w3m-990902
+PKGNAME= w3m-19990902
+CATEGORIES= www
+MASTER_SITES= ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/
+
+MAINTAINER= tech-pkg-ja@jp.netbsd.org
+HOMEPAGE= http://ei5nazha.yz.yamagata-u.ac.jp/~aito/w3m/
+
+DEPENDS= boehm-gc-5.0a3:../../devel/boehm-gc
+
+.if defined(EXTRACT_USING_PAX)
+EXTRACT_ELEMENTS= -c w3m/gc\*
+.else
+EXTRACT_ELEMENTS= --exclude w3m/gc\*
+.endif
+
+WRKSRC= ${WRKDIR}/w3m
+HELPDIR= share/doc/w3m
+
+HAS_CONFIGURE= yes
+
+.include "../../mk/bsd.prefs.mk"
+
+# Set this to NO for ISO-8859-1 support (exclusive to Japanese).
+W3M_USE_JAPANESE?= YES
+# Set this to YES to use lynx like key binding.
+W3M_USE_LYNX_KEY?= NO
+
+.if defined(W3M_USE_JAPANESE) && ${W3M_USE_JAPANESE} == YES
+CONFIGURE_ENV+= def_lg=1
+CONFIGURE_ENV+= def_dcode=n
+CONFIGURE_ENV+= def_kanji_symbols=y
+HELP_LANG= _ja
+.else
+CONFIGURE_ENV+= def_lg=2
+CONFIGURE_ENV+= def_kanji_symbols=n
+HELP_LANG= _en
+.endif
+.if defined(W3M_USE_LYNX_KEY) && ${W3M_USE_LYNX_KEY} == YES
+CONFIGURE_ENV+= def_lynx_key=y
+HELP_LYNX= -lynx
+.else
+CONFIGURE_ENV+= def_lynx_key=n
+.endif
+CONFIGURE_ENV+= def_bindir=${LOCALBASE}/bin
+CONFIGURE_ENV+= def_helpdir=${LOCALBASE}/${HELPDIR}
+CONFIGURE_ENV+= def_use_color=y def_use_mouse=y
+CONFIGURE_ENV+= def_use_menu=y def_use_matrix=y
+CONFIGURE_ENV+= editor=vi mailer=Mail dbrowser=
+CONFIGURE_ENV+= cc="${CC}" termlib="-ltermcap"
+CONFIGURE_ENV+= dldflags="-Wl,-rpath,${LOCALBASE}/lib -L${LOCALBASE}/lib"
+
+pre-build:
+ @(cd ${WRKSRC}; \
+ ${MAKE} XXMakefile; \
+ ${MV} XXMakefile XXMakefile.gen; \
+ ${SED} -e '/^GCLIB/s|gc/gc.a|-lgc|' -e '/^GCTARGET/s|gc/gc.a||' \
+ XXMakefile.gen > XXMakefile)
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/w3m ${LOCALBASE}/bin
+ ${INSTALL_MAN} ${WRKSRC}/doc/w3m.1 ${LOCALBASE}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/doc-jp/w3m.1 ${LOCALBASE}/man/ja_JP.EUC/man1
+ ${INSTALL_DATA_DIR} ${LOCALBASE}/${HELPDIR}
+ ${INSTALL_DATA_DIR} ${LOCALBASE}/${HELPDIR}/doc
+ ${INSTALL_DATA_DIR} ${LOCALBASE}/${HELPDIR}/doc-jp
+ ${INSTALL_DATA} ${WRKSRC}/w3mhelp_en.html ${LOCALBASE}/${HELPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/w3mhelp_ja.html ${LOCALBASE}/${HELPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/w3mhelp-lynx_en.html ${LOCALBASE}/${HELPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/w3mhelp-lynx_ja.html ${LOCALBASE}/${HELPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${LOCALBASE}/${HELPDIR}/doc
+ ${INSTALL_DATA} ${WRKSRC}/doc-jp/* ${LOCALBASE}/${HELPDIR}/doc-jp
+
+post-install:
+ ${RM} -f ${LOCALBASE}/${HELPDIR}/w3mhelp.html
+ ${LN} -s ${LOCALBASE}/${HELPDIR}/w3mhelp${HELP_LYNX}${HELP_LANG}.html \
+ ${LOCALBASE}/${HELPDIR}/w3mhelp.html
+
+.include "../../mk/bsd.pkg.mk"
3  netbsd/pkgsrc/www/w3m/files/md5
View
@@ -0,0 +1,3 @@
+# $NetBSD: md5,v 1.1.1.1 1999/09/27 05:37:35 sakamoto Exp $
+
+MD5 (w3m-990902.tar.gz) = b0fda99dbc66e6a17c056f55c77d347b
4 netbsd/pkgsrc/www/w3m/files/patch-sum
View
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.3 1999/09/28 07:20:45 sakamoto Exp $
+
+MD5 (patch-aa) = dcf53ec4037cd17b9d96f9f1ce90f6bc
+MD5 (patch-ai) = 7df7383d051fdf8ee6d2ecca5114dc9d
726 netbsd/pkgsrc/www/w3m/patches/patch-aa
View
@@ -0,0 +1,726 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/09/27 05:37:36 sakamoto Exp $
+
+--- configure.orig Tue Aug 17 18:58:57 1999
++++ configure Tue Sep 21 09:40:29 1999
+@@ -96,57 +96,57 @@
+ NetBSD )
+ # Newer NetBSD system doesn't define 'unix' symbol anymore, but GC library
+ # requires it.
+- special_sys="#define unix"
+- ;;
++# special_sys="#define unix"
++# ;;
+ esac
+
+-if [ -z "$def_bindir" ]; then
+- def_bindir="/usr/local/bin"
+-fi
++#if [ -z "$def_bindir" ]; then
++# def_bindir="/usr/local/bin"
++#fi
+ echo "Which directory do you want to put the binary?"
+ Echo "(default: $def_bindir) "
+-readdir
+-bindir=$_dir
+-if [ -z "$bindir" ]; then
++#readdir
++#bindir=$_dir
++#if [ -z "$bindir" ]; then
+ bindir=$def_bindir
+-fi
++#fi
+ echo "def_bindir=$bindir" >> config.param
+
+-if [ -z "$def_helpdir" ]; then
+- def_helpdir="/usr/local/lib"
+-fi
++#if [ -z "$def_helpdir" ]; then
++# def_helpdir="/usr/local/lib"
++#fi
+ echo "Which directory do you want to put the helpfile?"
+ Echo "(default: $def_helpdir) "
+-readdir
+-helpdir=$_dir
+-if [ -z "$helpdir" ]; then
++#readdir
++#helpdir=$_dir
++#if [ -z "$helpdir" ]; then
+ helpdir=$def_helpdir
+-fi
++#fi
+ echo "def_helpdir=$helpdir" >> config.param
+
+ echo "Which language do you prefer?"
+ echo " 1 - Japanese (charset ISO-2022-JP, EUC-JP, Shift_JIS)"
+ echo " 2 - English (charset US_ASCII, ISO-8859-1, etc.)"
+-if [ "$pref_lang" = 2 ]; then
+- Echo '[2]? '
+- def_lg=2
+-else
+- Echo '[1]? '
+- def_lg=1
+-fi
+-while :
+-do
+- read lg_ans
+- if [ -z "$lg_ans" ]; then
++#if [ "$pref_lang" = 2 ]; then
++# Echo '[2]? '
++# def_lg=2
++#else
++# Echo '[1]? '
++# def_lg=1
++#fi
++#while :
++#do
++# read lg_ans
++# if [ -z "$lg_ans" ]; then
+ lg_ans=$def_lg
+- elif [ "$lg_ans" != 1 -a "$lg_ans" != 2 ]; then
+- echo "Please choose 1 or 2."
+- continue
+- else
+- :
+- fi
+- break
+-done
++# elif [ "$lg_ans" != 1 -a "$lg_ans" != 2 ]; then
++# echo "Please choose 1 or 2."
++# continue
++# else
++# :
++# fi
++# break
++#done
+ echo "pref_lang='$lg_ans'" >> config.param
+ if [ $lg_ans = 1 ]; then
+ use_lang="#define LANG JA"
+@@ -166,43 +166,44 @@
+ echo ' n - JIS: ESC $B - ESC (B'
+ echo ' m - JIS: ESC $@ - ESC (B'
+ echo ''
+- while :
+- do
+- if [ -n "$def_dcode" ] ; then
+- Echo "(default: $def_dcode) "
+- fi
++# while :
++# do
++# if [ -n "$def_dcode" ] ; then
++# Echo "(default: $def_dcode) "
++# fi
+ Echo "Which? "
+- read ncode
+- if [ -n "$def_dcode" -a -z "$ncode" ] ; then
++# read ncode
++# if [ -n "$def_dcode" -a -z "$ncode" ] ; then
+ ncode=$def_dcode
+- fi
+- if [ -z "`echo $ncode | grep '[SEjNnm]'`" ] ; then
+- Echo "Illegal code. Try again."
+- continue
+- fi
+- break
+- done
++# fi
++# if [ -z "`echo $ncode | grep '[SEjNnm]'`" ] ; then
++# Echo "Illegal code. Try again."
++# continue
++# fi
++# break
++# done
+ echo "def_dcode=$ncode" >> config.param
+ else
+ ncode=x
+ fi
+
+ echo "Do you want to use Lynx-like key binding?"
+-if [ "$lynx_key" = y ]; then
+- Echo '[y]? '
+- read ks_ans
+- if [ "$ks_ans" = 'n' ]; then
+- lynx_key=n
+- fi
+-else
+- Echo '[n]? '
+- read ks_ans
+- if [ "$ks_ans" = 'y' ]; then
+- lynx_key=y
+- else
+- lynx_key=n
+- fi
+-fi
++#if [ "$lynx_key" = y ]; then
++# Echo '[y]? '
++# read ks_ans
++# if [ "$ks_ans" = 'n' ]; then
++# lynx_key=n
++# fi
++#else
++# Echo '[n]? '
++# read ks_ans
++# if [ "$ks_ans" = 'y' ]; then
++# lynx_key=y
++# else
++# lynx_key=n
++# fi
++#fi
++lynx_key=$def_lynx_key
+ echo "lynx_key=$lynx_key" >> config.param
+ if [ $lynx_key = y ]; then
+ keymap_file="keybind_lynx"
+@@ -226,21 +227,22 @@
+
+ if [ $lang = ja ]; then
+ echo "Do you want to use 2-byte character for table border, item, etc."
+- if [ "$kanji_symbols" = n ]; then
+- Echo '[n]? '
+- read ks_ans
+- if [ "$ks_ans" = 'y' ]; then
+- kanji_symbols=y
+- fi
+- else
+- Echo '[y]? '
+- read ks_ans
+- if [ "$ks_ans" = 'n' ]; then
+- kanji_symbols=n
+- else
+- kanji_symbols=y
+- fi
+- fi
++# if [ "$kanji_symbols" = n ]; then
++# Echo '[n]? '
++# read ks_ans
++# if [ "$ks_ans" = 'y' ]; then
++# kanji_symbols=y
++# fi
++# else
++# Echo '[y]? '
++# read ks_ans
++# if [ "$ks_ans" = 'n' ]; then
++# kanji_symbols=n
++# else
++# kanji_symbols=y
++# fi
++# fi
++ kanji_symbols=$def_kanji_symbols
+ echo "kanji_symbols=$kanji_symbols" >> config.param
+ fi
+ if [ "$kanji_symbols" = y ]; then
+@@ -250,21 +252,22 @@
+ fi
+
+ echo "Do you want to use color ESC sequence for kterm/pxvt "
+-if [ "$use_color" = n ]; then
+- Echo '[n]? '
+- read ks_ans
+- if [ "$ks_ans" = 'y' ]; then
+- use_color='y'
+- fi
+-else
+- Echo '[y]? '
+- read ks_ans
+- if [ "$ks_ans" = 'n' ]; then
+- use_color='n'
+- else
+- use_color='y'
+- fi
+-fi
++#if [ "$use_color" = n ]; then
++# Echo '[n]? '
++# read ks_ans
++# if [ "$ks_ans" = 'y' ]; then
++# use_color='y'
++# fi
++#else
++# Echo '[y]? '
++# read ks_ans
++# if [ "$ks_ans" = 'n' ]; then
++# use_color='n'
++# else
++# use_color='y'
++# fi
++#fi
++use_color=$def_use_color
+ echo "use_color=$use_color" >> config.param
+ if [ $use_color = y ]; then
+ def_color="#define COLOR"
+@@ -274,21 +277,22 @@
+
+ echo "Do you want to use mouse?"
+ echo " (It requires xterm/kterm)"
+-if [ "$use_mouse" = y ]; then
+- Echo '[y]? '
+- read ks_ans
+- if [ "$ks_ans" = 'n' ]; then
+- use_mouse='n'
+- fi
+-else
+- Echo '[n]? '
+- read ks_ans
+- if [ "$ks_ans" = 'y' ]; then
+- use_mouse='y'
+- else
+- use_mouse='n'
+- fi
+-fi
++#if [ "$use_mouse" = y ]; then
++# Echo '[y]? '
++# read ks_ans
++# if [ "$ks_ans" = 'n' ]; then
++# use_mouse='n'
++# fi
++#else
++# Echo '[n]? '
++# read ks_ans
++# if [ "$ks_ans" = 'y' ]; then
++# use_mouse='y'
++# else
++# use_mouse='n'
++# fi
++#fi
++use_mouse=$def_use_mouse
+ echo "use_mouse=$use_mouse" >> config.param
+ if [ $use_mouse = y ]; then
+ def_mouse="#define MOUSE"
+@@ -297,21 +301,22 @@
+ fi
+
+ echo "Do you want to use popup menu?"
+-if [ "$use_menu" = n ]; then
+- Echo '[n]? '
+- read ks_ans
+- if [ "$ks_ans" = 'y' ]; then
+- use_menu='y'
+- fi
+-else
+- Echo '[y]? '
+- read ks_ans
+- if [ "$ks_ans" = 'n' ]; then
+- use_menu='n'
+- else
+- use_menu='y'
+- fi
+-fi
++#if [ "$use_menu" = n ]; then
++# Echo '[n]? '
++# read ks_ans
++# if [ "$ks_ans" = 'y' ]; then
++# use_menu='y'
++# fi
++#else
++# Echo '[y]? '
++# read ks_ans
++# if [ "$ks_ans" = 'n' ]; then
++# use_menu='n'
++# else
++# use_menu='y'
++# fi
++#fi
++use_menu=$def_use_menu
+ echo "use_menu=$use_menu" >> config.param
+ if [ $use_menu = y ]; then
+ def_menu="#define MENU"
+@@ -320,21 +325,22 @@
+ fi
+
+ echo "Do you want to use matrix in rendering table?"
+-if [ "$use_matrix" = n ]; then
+- Echo '[n]? '
+- read ks_ans
+- if [ "$ks_ans" = 'y' ]; then
+- use_matrix='y'
+- fi
+-else
+- Echo '[y]? '
+- read ks_ans
+- if [ "$ks_ans" = 'n' ]; then
+- use_matrix='n'
+- else
+- use_matrix='y'
+- fi
+-fi
++#if [ "$use_matrix" = n ]; then
++# Echo '[n]? '
++# read ks_ans
++# if [ "$ks_ans" = 'y' ]; then
++# use_matrix='y'
++# fi
++#else
++# Echo '[y]? '
++# read ks_ans
++# if [ "$ks_ans" = 'n' ]; then
++# use_matrix='n'
++# else
++# use_matrix='y'
++# fi
++#fi
++use_matrix=$def_use_matrix
+ echo "use_matrix=$use_matrix" >> config.param
+ if [ $use_matrix = y ]; then
+ def_matrix="#define MATRIX 1"
+@@ -343,70 +349,70 @@
+ fi
+
+
+-if [ -z "$ded" ] ; then ded=`./which \vi` ; fi
+-if [ -n "`echo $ded | grep 'no'`" ] ; then ded=vi ; fi
++#if [ -z "$ded" ] ; then ded=`./which \vi` ; fi
++#if [ -n "`echo $ded | grep 'no'`" ] ; then ded=vi ; fi
+ echo "Input your favorite editor program."
+ Echo "(Default: $ded) "
+-readdir
+-editor=$_dir
+-if [ -z "$editor" ] ; then editor="$ded" ; fi
++#readdir
++#editor=$_dir
++#if [ -z "$editor" ] ; then editor="$ded" ; fi
+ echo "ded='$editor'" >> config.param
+
+-if [ -z "$dmail" ] ; then
+- if ./which \mailx > /dev/null
+- then
+- dmail=`./which \mailx`
+- else
+- dmail=`./which \mail`
+- fi
+- if [ -n "`echo $dmail | grep 'no'`" ] ; then dmail=mailx ; fi
+-fi
++#if [ -z "$dmail" ] ; then
++# if ./which \mailx > /dev/null
++# then
++# dmail=`./which \mailx`
++# else
++# dmail=`./which \mail`
++# fi
++# if [ -n "`echo $dmail | grep 'no'`" ] ; then dmail=mailx ; fi
++#fi
+ echo "Input your favorite mailer program."
+ Echo "(Default: $dmail) "
+-readdir
+-mailer=$_dir
+-if [ -z "$mailer" ] ; then mailer="$dmail" ; fi
++#readdir
++#mailer=$_dir
++#if [ -z "$mailer" ] ; then mailer="$dmail" ; fi
+ echo "dmail='$mailer'" >> config.param
+
+
+-if [ -z "$dbrowser" ] ; then
+- if ./which netscape > /dev/null
+- then
+- dbrowser=`./which netscape`
+- elif ./which iexplore > /dev/null
+- then
+- dbrowser=`./which iexplore`
+- else
+- dbrowser=`./which lynx`
+- fi
+- if [ -n "`echo $dbrowser | grep 'no'`" ] ; then dbrowser=netscape ; fi
+-fi
++#if [ -z "$dbrowser" ] ; then
++# if ./which netscape > /dev/null
++# then
++# dbrowser=`./which netscape`
++# elif ./which iexplore > /dev/null
++# then
++# dbrowser=`./which iexplore`
++# else
++# dbrowser=`./which lynx`
++# fi
++# if [ -n "`echo $dbrowser | grep 'no'`" ] ; then dbrowser=netscape ; fi
++#fi
+ echo "Input your favorite external browser program."
+ Echo "(Default: $dbrowser) "
+-readdir
+-brz=$_dir
+-if [ -z "$brz" ] ; then brz="$dbrowser" ; fi
++#readdir
++#brz=$_dir
++#if [ -z "$brz" ] ; then brz="$dbrowser" ; fi
+ echo "dbrowser='$brz'" >> config.param
+
+-if [ -z "$dcc" ] ; then
+- if ./which gcc >/dev/null
+- then
+- dcc=gcc
+- else
+- dcc=cc
+- fi
+-fi
++#if [ -z "$dcc" ] ; then
++# if ./which gcc >/dev/null
++# then
++# dcc=gcc
++# else
++# dcc=cc
++# fi
++#fi
+ echo "Input your favorite C-compiler."
+ Echo "(Default: $dcc) "
+-read cc
+-if [ -z "$cc" ] ; then cc="$dcc" ; fi
++#read cc
++#if [ -z "$cc" ] ; then cc="$dcc" ; fi
+ echo "dcc='$cc'" >> config.param
+
+-if [ -z "$dcflags" ] ; then dcflags=-g ; fi
++#if [ -z "$dcflags" ] ; then dcflags=-g ; fi
+ echo "Input your favorite C flags."
+ Echo "(Default: $dcflags) "
+-read cflags
+-if [ -z "$cflags" ] ; then cflags="$dcflags" ; fi
++#read cflags
++#if [ -z "$cflags" ] ; then cflags="$dcflags" ; fi
+ echo "dcflags='$cflags'" >> config.param
+
+ bsdinclude=''
+@@ -420,50 +426,51 @@
+ fi
+ fi
+
+-termlib=''
+-cat > _zmachdep.c << EOF
+-main()
+-{
+- char bp[100];
+- tgetent(bp,getenv("TERM"));
+-}
+-EOF
+-
+-TERM_LIBS='termcap termlib terminfo mytinfo curses ncurses'
+-
+-for lib in $TERM_LIBS
+-do
+- for libdir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib
+- do
+- if [ -f $libdir/lib$lib.a -o -f $libdir/lib$lib.so ] ; then
+- # check if the lib works...
+- Echo "Terminal library -l$lib found at $libdir, "
+- if $cc $cflags -o _zmachdep _zmachdep.c -l$lib > /dev/null 2>&1
+- then
+- echo "and it seems to work."
+- termlib=-l$lib
+- else
+- echo "but it doesn't seem to work."
+- fi
+- fi
+- done
+-done
+-if [ -z "$termlib" ]; then
+- Echo "termcap/curses library not found; I hope -ltermcap works."
+- termlib='-ltermcap'
+-fi
++#termlib=''
++#cat > _zmachdep.c << EOF
++#main()
++#{
++# char bp[100];
++# tgetent(bp,getenv("TERM"));
++#}
++#EOF
++
++#TERM_LIBS='termcap termlib terminfo mytinfo curses ncurses'
++
++#for lib in $TERM_LIBS
++#do
++# for libdir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib ${LOCALBASE}/lib
++# do
++# if [ -f $libdir/lib$lib.a -o -f $libdir/lib$lib.so ] ; then
++# # check if the lib works...
++# Echo "Terminal library -l$lib found at $libdir, "
++# if $cc $cflags -o _zmachdep _zmachdep.c -l$lib > /dev/null 2>&1
++# then
++# echo "and it seems to work."
++# termlib=-l$lib
++# else
++# echo "but it doesn't seem to work."
++# fi
++# fi
++# done
++#done
++#if [ -z "$termlib" ]; then
++# Echo "termcap/curses library not found; I hope -ltermcap works."
++# termlib='-ltermcap'
++#fi
+ echo "Which terminal library do you want to use?"
+ Echo "(default: $termlib) "
+ dtermlib=$termlib
+-read termlib
+-if [ -z "$termlib" ]; then
+- termlib=$dtermlib
+-fi
++#read termlib
++#if [ -z "$termlib" ]; then
++# termlib=$dtermlib
++#fi
++echo "termlib=$dtermlib" >> config.param
+
+ extlib=''
+ for lib in bsd BSD socket nsl
+ do
+- for libdir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib
++ for libdir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib ${LOCALBASE}/lib
+ do
+ if [ -f $libdir/lib$lib.a ] ; then
+ extlib="$extlib -l$lib"
+@@ -477,64 +484,66 @@
+ echo additional library found: $extlib
+ fi
+
+-gclib=''
+-gcinclude=''
+-gctarget=''
+-for libdir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib ${HOME}/lib
+-do
+- if [ -f $libdir/libgc.a -o -f $libdir/libgc.so ] ; then
+- echo $libdir/libgc found
++#gclib=''
++#gcinclude=''
++#gctarget=''
++#for libdir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib ${HOME}/lib ${LOCALBASE}/lib
++#do
++# if [ -f $libdir/libgc.a -o -f $libdir/libgc.so ] ; then
++# echo $libdir/libgc found
+ gclib="-lgc"
+- fi
+-done
+-for inc in /usr/include /usr/include/gc /usr/local/include /usr/local/include/gc ${HOME}/include
+-do
+- if [ -f $inc/gc.h ]; then
+- echo $inc/gc.h found
+- gcinclude=$inc
+- fi
+-done
+-
+-if [ -n "$gclib" -a -n "$gcinclude" ]; then
+- Echo GC library found on your system...
+- cat > _zmachdep.c << EOF
+-#include <gc.h>
+-main()
+-{
+- extern unsigned GC_version;
+- printf("%d%02d%03d\n",(GC_version>>16)&0xff,(GC_version>>8)&0xff,GC_version&0xff);
+-}
+-EOF
+- if $cc $cflags -I$gcinclude -o _zmachdep _zmachdep.c $gclib > /dev/null 2>&1
+- then
+- echo "and it seems to work."
+- gcversion=`./_zmachdep`
+- echo "GC_version is $gcversion."
+- if [ $gcversion -lt $mygcversion ]; then
+- echo "GC library on your system seems to be old."
+- Echo "Do you want to use GC library comes with w3m?[y] "
+- read ans
+- if [ "$ans" = 'n' -o "$ans" = 'N' ]; then
+- cflags="$cflags -I$gcinclude"
+- else
+- cflags="$cflags -I./gc"
+- gclib="gc/gc.a"
+- gctarget=$gclib
+- fi
+- else
++# fi
++#done
++#for inc in /usr/include /usr/include/gc /usr/local/include /usr/local/include/gc ${HOME}/include ${LOCALBASE}/include
++#do
++# if [ -f $inc/gc.h ]; then
++# echo $inc/gc.h found
++# gcinclude=$inc
++ gcinclude=${LOCALBASE}/include
++# fi
++#done
++
++#if [ -n "$gclib" -a -n "$gcinclude" ]; then
++# Echo GC library found on your system...
++# cat > _zmachdep.c << EOF
++##include <gc.h>
++#main()
++#{
++# extern unsigned GC_version;
++# printf("%d%02d%03d\n",(GC_version>>16)&0xff,(GC_version>>8)&0xff,GC_version&0xff);
++#}
++#EOF
++# if $cc $cflags -I$gcinclude -o _zmachdep _zmachdep.c $gclib > /dev/null 2>&1
++# then
++# echo "and it seems to work."
++# gcversion=`./_zmachdep`
++# echo "GC_version is $gcversion."
++# if [ $gcversion -lt $mygcversion ]; then
++# echo "GC library on your system seems to be old."
++# Echo "Do you want to use GC library comes with w3m?[y] "
++# read ans
++# if [ "$ans" = 'n' -o "$ans" = 'N' ]; then
++# cflags="$cflags -I$gcinclude"
++# else
++# cflags="$cflags -I./gc"
++# gclib="gc/gc.a"
++# gctarget=$gclib
++# fi
++# else
+ cflags="$cflags -I$gcinclude"
+- fi
+- else
+- echo "but it doesn't seem to work."
+- cflags="$cflags -I./gc"
+- gclib="gc/gc.a"
+- gctarget=$gclib
+- fi
+-else
+- cflags="$cflags -I./gc"
+- gclib="gc/gc.a"
+- gctarget=$gclib
+-fi
++ gctarget=$gclib
++# fi
++# else
++# echo "but it doesn't seem to work."
++# cflags="$cflags -I./gc"
++# gclib="gc/gc.a"
++# gctarget=$gclib
++# fi
++#else
++# cflags="$cflags -I./gc"
++# gclib="gc/gc.a"
++# gctarget=$gclib
++#fi
+
+ # Apply patch.
+ if [ $gclib = "gc/gc.a" ]; then
+@@ -555,9 +564,9 @@
+ patchfile=Patches/hpux11
+ fi
+ ;;
+- macppc:NetBSD)
+- patchfile = Patches/macppc
+- ;;
++# macppc:NetBSD)
++# patchfile = Patches/macppc
++# ;;
+ R3000:*System_V*|R4000:UNIX_SYSV|R4000:UNIX_SV)
+ # EWS-4800
+ patchfile=Patches/ews4800
+@@ -572,15 +581,15 @@
+
+
+ echo "Input additional LD flags other than listed above, if any:"
+-if [ -n "$dldflags" ]; then
+- Echo "(default: $dldflags) : "
+-else
+- Echo ": "
+-fi
+-read ldflags
+-if [ -z "$ldflags" ]; then
++#if [ -n "$dldflags" ]; then
++# Echo "(default: $dldflags) : "
++#else
++# Echo ": "
++#fi
++#read ldflags
++#if [ -z "$ldflags" ]; then
+ ldflags=$dldflags
+-fi
++#fi
+ echo "dldflags='$ldflags'" >> config.param
+
+ echo "Checking machine dependency."
14 netbsd/pkgsrc/www/w3m/patches/patch-ai
View
@@ -0,0 +1,14 @@
+$NetBSD: patch-ai,v 1.1.1.1 1999/09/27 05:37:36 sakamoto Exp $
+
+--- main.c.orig Tue Sep 21 09:25:17 1999
++++ main.c Tue Sep 21 09:26:44 1999
+@@ -115,6 +115,9 @@
+ #ifdef MENU
+ initMenu();
+ #endif
++#ifdef MOUSE
++ use_mouse = T;
++#endif
+
+ if (HTTP_proxy == NULL &&
+ ((p = getenv("HTTP_PROXY")) ||
1  netbsd/pkgsrc/www/w3m/pkg/COMMENT
View
@@ -0,0 +1 @@
+A terminal-based WWW browser with HTML tables and frames support.
6 netbsd/pkgsrc/www/w3m/pkg/DESCR
View
@@ -0,0 +1,6 @@
+W3m is a termial-based WWW browser which supports HTML tables and frames. It's
+small, so faster than other WWW browsers. It also supports following URL by
+clicking mouse button on the anchor in xterm and its variants from 990526
+version.
+
+It uses Boehm-GC to implement the table/frame parser.
47 netbsd/pkgsrc/www/w3m/pkg/PLIST
View
@@ -0,0 +1,47 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/09/27 05:37:36 sakamoto Exp $
+bin/w3m
+man/man1/w3m.1
+man/ja_JP.EUC/man1/w3m.1
+share/doc/w3m/w3mhelp_en.html
+share/doc/w3m/w3mhelp_ja.html
+share/doc/w3m/w3mhelp-lynx_en.html
+share/doc/w3m/w3mhelp-lynx_ja.html
+share/doc/w3m/w3mhelp.html
+@comment share/doc/w3m/doc
+share/doc/w3m/doc/README
+share/doc/w3m/doc/README.cygwin
+share/doc/w3m/doc/MANUAL.html
+share/doc/w3m/doc/FAQ.html
+share/doc/w3m/doc/STORY.html
+share/doc/w3m/doc/w3m.1
+share/doc/w3m/doc/MANUAL_lynx.html
+share/doc/w3m/doc/README.dict
+share/doc/w3m/doc/README.func
+share/doc/w3m/doc/keymap.default
+share/doc/w3m/doc/keymap.lynx
+share/doc/w3m/doc/menu.default
+share/doc/w3m/doc/menu.submenu
+@comment share/doc/w3m/doc-jp
+share/doc/w3m/doc-jp/FAQ.html
+share/doc/w3m/doc-jp/MANUAL.html
+share/doc/w3m/doc-jp/MANUAL_lynx.html
+share/doc/w3m/doc-jp/README
+share/doc/w3m/doc-jp/README.menu
+share/doc/w3m/doc-jp/README.cygwin
+share/doc/w3m/doc-jp/README.func
+share/doc/w3m/doc-jp/README.hp
+share/doc/w3m/doc-jp/STORY.html
+share/doc/w3m/doc-jp/HISTORY
+share/doc/w3m/doc-jp/w3m.1
+share/doc/w3m/doc-jp/README.dict
+share/doc/w3m/doc-jp/keymap.lynx
+share/doc/w3m/doc-jp/README.local
+share/doc/w3m/doc-jp/README.keymap
+share/doc/w3m/doc-jp/keymap.default
+share/doc/w3m/doc-jp/menu.default
+share/doc/w3m/doc-jp/menu.submenu
+share/doc/w3m/doc-jp/HISTORY.kokb
+share/doc/w3m/doc-jp/README.kokb
+@dirrm share/doc/w3m/doc
+@dirrm share/doc/w3m/doc-jp
+@dirrm share/doc/w3m
Please sign in to comment.
Something went wrong with that request. Please try again.