# tcl.sh

spf_template gnu &&
spf_template sourceforge &&
spf_template_sourceforge_base tcl &&
spf_url src "http://${SPF_URL_SF?}.dl.sourceforge.net/sourceforge/tcl/tcl${spf_version?}-src.tar.gz" &&
spf_tested_version 8.5.2 &&
spf_tested_version 8.5.1 &&
spf_tested_version 8.5.0 &&
spf_tested_version 8.5b1 &&
spf_tested_version 8.5a6 &&
spf_tested_version 8.5a5 &&
spf_srcdir tcl"${spf_version?}"/unix &&
spf_cc_configure_args '--enable-threads --enable-64bit' &&

# The test suite is called "test" not "check".
spf_do_check() {
  make test
} &&

# Correct a bug that breaks nonpositive linked float variables.
spf_template_gnu_do_before_make() {
  prj_sedfile ../generic/tclLink.c 's:FLT_MIN:-FLT_MAX:'
} &&

# Create a "tclsh" symlink.
spf_template_gnu_do_after_install() {
  ln -s tclsh8.5 "${spf_path_prefix?}"/bin/tclsh
}

# vim: set ts=2 sts=2 sw=2 tw=80 et ft=sh:
