6.15. Using Tcl/Tk

The Ports Collection supports parallel installation of multiple Tcl/Tk versions. Ports should try to support at least the default Tcl/Tk version and higher with the USE_TCL and USE_TK variables. It is possible to specify the desired version of tcl with the WITH_TCL_VER variable.

Table 6.20. The Most Useful Variables for Ports That Use Tcl/Tk
USE_TCLThe port depends on the Tcl library (not the shell). Minimal required version can be specified with values such as 84+. Individual unsupported versions can be specified with the INVALID_TCL_VER variable.
USE_TCL_BUILDThe port needs Tcl only during the build time.
USE_TCL_WRAPPERPorts that require the Tcl shell and do not require a specific tclsh version should use this new variable. The tclsh wrapper is installed on the system. The user can specify the desired tcl shell to use.
WITH_TCL_VERUser-defined variable that sets the desired Tcl version.
UNIQUENAME_WITH_TCL_VERLike WITH_TCL_VER, but per-port.
USE_TCL_THREADSRequire a threaded build of Tcl/Tk.
USE_TKThe port depends on the Tk library (not the wish shell). Implies USE_TCL with the same value. For more information see the description of USE_TCL variable.
USE_TK_BUILDAnalog to the USE_TCL_BUILD variable.
USE_TK_WRAPPERAnalog to the USE_TCL_WRAPPER variable.
WITH_TK_VERAnalog to the WITH_TCL_VER variable and implies WITH_TCL_VER of the same value.

A complete list of available variables can be found in /usr/ports/Mk/bsd.tcl.mk.

All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.

Send questions about this document to <freebsd-doc@FreeBSD.org>.