spf_template gnu &&
spf_template emptylib &&
spf_depend ncurses &&
spf_cc_ nls &&
spf_args configure --with-sys-screenrc="${spf_path_prefix?}"/etc/screenrc &&
spf_data dir etc &&
spf_template_gnu_src_ext gz &&
spf_template_gnu_do_before_configure() {
  case ${spf_version?} in
    4.0.2) #### report this
      prj_sedfile misc.c 's/if defined(linux)/& || defined(__sun)/';;
    *) :;;
  esac &&
  if test y = "${spf_ccv_nls?}"
    then spf_args configure --enable-locale
    else :
  fi &&
  prj_unset pkg_lib &&
  for pkg_lib in libtermcap libcurses; do {
    set "${spf_path_conf?}"/ncurses/library/"${pkg_lib?}".* &&
    if test -f "$1"
      then :
      else spf_template_emptylib_create "${pkg_lib?}"
    fi
  } || return "$?"; done
} &&
spf_tested_version 4.0.3 &&
spf_tested_version 4.0.2

