source: tol/toltcl/library/pkgIndex.tcl.in @ 44caa8c

1941-docker-image-to-testdevel
Last change on this file since 44caa8c was b6e5dacc, checked in by Jorge Pérez <josp.jorge@…>, 12 years ago

refs #1812, refs #1818, compilación basada en CMake, eliminación de warnings, automatización de la regla install.

Configuración en Linux como:

cmake -DCMAKE_TOOLCHAIN_FILE=../linux-i686.toolchain.cmake -DTOL_PREFIX_PATH=/usr/local/tol32 -DCMAKE_BUILD_TYPE=Release -DTCL_LIBRARY=/usr/local/tcl8.5-i686/lib/libtcl8.5.so ..

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6456 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 799 bytes
Line 
1# Tcl package index file, version 1.1
2
3proc LoadToltcl { version dir } {
4  global tcl_platform
5 
6  set _version [ string map [ list "." "" ] $version ]
7  if {[info exist ::env(USE_TOLTCL_$_version)]} {
8    puts "requested to load Toltcl from $::env(USE_TOLTCL_$_version)"
9    load $::env(USE_TOLTCL_$_version)
10  } else {
11    set suffix [info sharedlibextension]
12    if {$tcl_platform(platform) eq "unix"} {
13      set name libtoltcl${version}[info sharedlibextension]
14    } else  {
15      set name toltcl.dll
16    }
17    load [file join $dir {@TOLTCL_LIB_NAME@}] Toltcl
18  }
19}
20
21package ifneeded Toltcl @TOLTCL_VERSION_MAJOR@.@TOLTCL_VERSION_MINOR@ \
22    [ string map [list %d $dir] {
23      LoadToltcl @TOLTCL_VERSION_MAJOR@.@TOLTCL_VERSION_MINOR@ {%d}
24      source [ file join {%d} toltcl.tcl ]
25    } ]
26
Note: See TracBrowser for help on using the repository browser.