The Tk package contains TCL GUI Toolkit.
Download (HTTP): http://prdownloads.sourceforge.net/tcl/tk8.4.6-src.tar.gz
Download (FTP): ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tk8.4.6-src.tar.gz
Download size: 3.1 MB
Estimated Disk space required: 17.4 MB
Estimated build time: 0.41 SBU
X (XFree86-4.4.0 or X.org-6.7.0) and Tcl-8.4.6
Install Tk by running the following commands:
VERSION=8.4.6 &&
V=`echo $VERSION | cut -d "." -f 1,2` &&
DIR=$PWD &&
cd unix &&
./configure --prefix=/usr &&
make &&
sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &&
sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh &&
make install &&
install -d /usr/include/tk${V}/unix &&
install -m644 *.h /usr/include/tk${V}/unix/ &&
install -d /usr/include/tk${V}/generic &&
install -m644 ../generic/*.h /usr/include/tk${V}/generic/ &&
rm -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &&
ln -nsf /usr/include/tk${V} /usr/lib/tk${V}/include &&
ln -sf libtk${V}.so /usr/lib/libtk.so &&
ln -sf wish${V} /usr/bin/wish
sed -i ...: The Tk package assumes that the source that is used to build Tk is always kept around for compiling packages that depend on Tk. These sed's remove the reference to the build directory and replace them by saner system wide locations.
install ...: These commands install the internal headers into a system-wide location.
ln -sf ...: These commands create compatibility symbolic links.