spf_template gnu &&
spf_url home  'http://lynx.isc.org/' &&
spf_url watch 'http://lynx.isc.org/release/' &&
spf_url src \
  "http://lynx.isc.org/lynx${spf_version?}/lynx${spf_version?}.tar.bz2" &&
spf_depend ncurses  &&
spf_depend openssl degree optional &&
spf_depend zlib    degree optional &&
spf_cc_ nls &&
prj_u2 prj_capture pkg_version prj_sedarg1 's:\.:-:g' "${spf_version?}" &&
spf_srcdir lynx"${pkg_version?}" &&
spf_args configure --with-screen=ncurses &&
if test 2.8.5 = "${spf_version?}"
  then spf_data file lib/lynx.cfg
  else spf_data dir etc
fi &&
spf_template_gnu_do_before_configure() {
  if test -d "${spf_path_conf?}"/openssl/.
    then spf_args configure --with-ssl="${spf_path_conf?}"/openssl/prefix
    else spf_args configure --without-ssl
  fi &&
  if test -d "${spf_path_conf?}"/zlib/.
    then spf_args configure --with-zlib
    else spf_args configure --without-zlib
  fi &&
  :
}
spf_template_gnu_do_install() { make install install-help install-doc; } &&
spf_no_check && ## there are no tests
spf_tested_version 2.8.7 &&
spf_tested_version 2.8.6 &&
spf_tested_version 2.8.5

