# fss-0002

main:
  sed -i -e 's|/generic/tclInt.h|/tclInt.h|g' configure
  sed -i -e "s|\${TCL_SRC_DIR}/tclInt.h|${TC}include/tclInt.h|g" configure
  ./configure $CONF --enable-threads --enable-64bit --with-tclinclude=${TC}include/ --with-tcl=${TC}lib --without-aolserver3
  sed -i -e 's|all: binaries libraries doc end|all: binaries libraries end|' Makefile
  sed -i -e 's|tclsh8.5|tclsh|g' Makefile
  make
  make install
  mv -v /lib/xotclConfig.sh ${TC}lib/
  cp -vR /lib/xotcl?.?.? /lib/tcl?.?/
  rm -v /lib/libxotcl?.?.?.so
  chgrp e_tcl -R /lib/tcl?.?/xotcl?.?.?
  chmod o-rx -R /lib/tcl?.?/xotcl?.?.?
  find /lib/tcl?.?/xotcl?.?.? -exec chmod g+s '{}' ';'
  rm -Rf /lib/xotcl?.?.?
