1 # Tcl package index file, version 1.0
3 proc LoadBLT { version dir } {
6 set suffix [info sharedlibextension]
7 regsub {\.} $version {} version_no_dots
9 # Determine whether to load the full BLT library or
10 # the "lite" tcl-only version.
12 if { [info commands tk] == "tk" } {
13 set name ${prefix}BLT${version_no_dots}${suffix}
15 set name ${prefix}BLTlite${version_no_dots}${suffix}
19 if { $tcl_platform(platform) == "unix" } {
20 set library [file join $dir $name]
21 if { ![file exists $library] } {
22 # Try the parent directory.
23 set library [file join [file dirname $dir] $name]
25 if { ![file exists $library] } {
26 # Default to the path generated at compilation.
27 set library [file join "/home/people/tacyas/Eos/util/I386LINUX/lib" $name]
37 package ifneeded BLT $version [list LoadBLT $version $dir]
39 # End of package index file