[Pkg-tcltk-devel] Installing a tcl module
Sergei Golovan
sgolovan at nes.ru
Tue Oct 2 18:35:21 UTC 2007
On 10/2/07, Felipe Sateler <fsateler at gmail.com> wrote:
> Upstream installs it to /usr/lib, and while tcl loads the module from there,
> it doesn't really comply with policy, since it doesn't have a versioned
> soname.
The usual practice is to install the library to a subdir of /usr/lib
(/usr/lib/Tclcsound for example). A proper Tcl package also provides
file pkgIndex.tcl which is put to the same subdir of /usr/lib and
contains an instruction how to load the library.
If csound doesn't provide pkgIndex.tcl (I've quickly found
http://www.csounds.com/manual/html/tclcsound.html. Is this your case?)
you could write your own with something like the following:
package ifneeded Tclcsound 1.0 \
[list load [file join $dir tclcsound.so] Tclcsound]
(I assumed that link I've found is correct. And I've no idea about
actual version number.)
--
Sergei Golovan
More information about the Pkg-tcltk-devel
mailing list