Posted to tcl by Emiliano at Wed Jan 09 16:47:12 GMT 2008view pretty

File downloaded from
http://www.flightlab.com/~joe/downloads/tkimg-1.3-2005-01-05.tar.gz

Background:
Using libjpeg, libpng and libtiff from pkgsrc, installed on /usr/pkg.
Tcl/Tk installation on /home/emiliano/programas

NetBSD needs to link using rpath, it doesn't support the use of ldconfig

Running the configure script with:
$ env CPPFLAGS="-I/usr/X11R6/include -I/usr/pkg/include" LDFLAGS="-L/usr/X11R6/lib -rpath=/usr/X11R6/lib -L/usr/pkg/lib -rpath=/usr/pkg/lib -L/home/emiliano/programas/lib -rpath=/home/emiliano/programas/lib" /bin/ksh ./configure

[configure output]

==== Configuration summary ====

    TCL_INCLUDES = -I"/home/emiliano/programas/include"
    TK_INCLUDES = -I"/home/emiliano/programas/include"
    LIBS        = -ltiff -ljpeg -lpng -lz -lm 

$ make

[make output]

$ vi pkgIndex.tcl

[adjust version to 1.3.99]

$ make test

[test output]

Tests ended at Wed Jan 09 14:38:40 ART 2008
all.tcl:        Total   64      Passed  59      Skipped 5       Failed  0
Sourced 15 Test Files.
Number of tests skipped for each constraint:
        5       unknownfailure


Note1: I use /bin/ksh (pdksh, it comes with the base system) to avoid 
the configure quoting problem which shows using bash

Note2: I have the sources on the same subdir, tcl_sources, having
tcl, tk and tkimg directories at the same level.

Comments

Posted by jenglish at Thu Jan 17 03:27:02 GMT 2008 [text] [code]

New tarball available: http://www.flightlab.com/~joe/downloads/tkimg-1.3-2008-01-16.tar.gz This one uses a newer tcl.m4, which has better support for *BSDs, so you might be able to shorten the ./configure line. (1) don't need to use ksh, the MP-RAS CF has been avoided (2) probably don't need to set CPPFLAGS, the TEA_PATH_X macro should be able to find the X11 headers. (3) you can *try* using '--enable-rpath' instead of explicitly setting LDFLAGS at configure-time; I don't expect that will work though.

Posted by Emiliano at Fri Jan 18 11:13:26 GMT 2008 [text] [code]

The minimal working version now is: $ CPPFLAGS="-I/usr/X11R6/include -I/usr/pkg/include" LDFLAGS="-L/usr/pkg/lib" ./configure --prefix=/home/emiliano/programas --with-tcl=/home/emiliano/programas/lib --with-tk=/home/emiliano/programas/lib --enable-rpath Failing to provide any of these result in a failed build