# GraphViz includes a hack that automatically redirects certain font names
# to certain versions of so called URW Postscript fonts. The error that results
# from such redirection is as follows (trailing font name may change):
#   Error: fontconfig: Didn't find expected font family. Perhaps URW Type 1 fonts need installing? : Times-Roman
# This patch removes said hack.
default_pre_build                                      &&
cd $SOURCE_DIRECTORY                                   &&
find -name Makefile.in | while read _LINE; do
  sedit "s|html/info|$SPELL|g" "$_LINE"
done                                                   &&
if ! spell_ok tcl; then
  sedit 's|tclsh|#tclsh|g'      tclpkg/gv/Makefile.in  &&
  sedit 's|\<gv_\w\+\.man\>||g' tclpkg/gv/Makefile.in
fi &&
cd ${SOURCE_DIRECTORY}                                 &&
sedit "s:./configure.*::g"  autogen.sh                 &&
./autogen.sh
