(
  cd tcl$VERSION/unix &&

  # This sedit line is only a temporary fix. When the next version of tcl and tk is available
  # this line should be deleted.

  sedit "s:system=MP-RAS-\`awk '{print }' /etc/.relid'\`:system=MP-RAS-\`awk '{print }' /etc/.relid\`:g" configure &&

  ./configure --prefix=/usr \
              --mandir=/usr/share/man
) &&

cd unix &&

# This sedit line is only a temporary fix. When the next version of tcl and tk is available
# this line should be deleted.

TK_VER=`lvu version tk | cut -d. -f1-2`

sedit "s:system=MP-RAS-\`awk '{print }' /etc/.relid'\`:system=MP-RAS-\`awk '{print }' /etc/.relid\`:g" configure &&

./configure --prefix=/usr \
            --mandir=/usr/share/man \
            --with-tcl=../tcl$VERSION/unix &&

default_make &&

make install-private-headers &&

ln -sf wish${TK_VER} /usr/bin/wish
