TCL

From CBLFS
Revision as of 04:04, 8 October 2007 by Gab (talk | contribs) (typo error)
Jump to navigationJump to search
Download Source: http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz

Introduction to TCL

Project Homepage: Unknown

Dependencies

Non-Multilib

Compile the package:

cd unix &&
./configure --prefix=/usr --enable-threads &&
make

Install the package

make install &&
make install-private-headers &&
ln -v -sf tclsh8.6 /usr/bin/tclsh

Multilib

32Bit

Compile the package:

cd unix &&
CC="gcc ${BUILD32}" ./configure --prefix=/usr \
    --enable-threads &&
make

Install the package

make install &&
mv -v /usr/bin/tclsh8.6{,-32} &&
ln -v -sf tclsh8.6-32 /usr/bin/tclsh-32

N32

Compile the package:

cd unix &&
sed -i '/sprintf(installLib/s:"lib:&64:' tclUnixInit.c &&
sed -i -e '/TCL_PACKAGE_PATH=/s:=.*:="/usr/lib32":' \
       -e '/^TCL_LIBRARY=/s:=.*:=/usr/lib32/tcl$(VERSION):' configure &&
CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 \
    --enable-threads &&
make

Install the package

make install &&
mv -v /usr/bin/tclsh8.6{,-n32} &&
ln -v -sf tclsh8.6-n32 /usr/bin/tclsh-n32

64Bit

Compile the package:

cd unix &&
sed -i '/sprintf(installLib/s:"lib:&64:' tclUnixInit.c &&
sed -i -e '/TCL_PACKAGE_PATH=/s:=.*:="/usr/lib64":' \
       -e '/^TCL_LIBRARY=/s:=.*:=/usr/lib64/tcl${VERSION}:' configure &&
CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 \
    --enable-threads &&
make

Install the package

make install &&
make install-private-headers &&
mv -v /usr/bin/tclsh8.6{,-64} &&
ln -v -sf multiarch_wrapper /usr/bin/tclsh8.6 &&
ln -v -sf tclsh8.6-64 /usr/bin/tclsh-64 &&
ln -v -sf multiarch_wrapper /usr/bin/tclsh

Contents

Installed Programs: tclsh and tclsh8.6
Installed Libraries: libtcl.so and libtclstub8.6.a
Installed Directories: /usr/lib/tcl8.6

Short Descriptions

tclsh is a symlink to the tclsh8.4 program.
tclsh8.6 is a simple shell containing the Tcl interpreter.
libtcl.so contains the API functions required by Tcl.