fixes + develpment updates
[hdw-linux/hdw-linux.git] / packages / devel / tcltk / tcltk
1 # hdw - linux tcltk package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 8.4.6
6 # [S] 3-4
7 # [D] tk8.4.6-src.tar.gz http://puzzle.dl.sourceforge.net/sourceforge/tcl/
8 # [D] tcl8.4.6-src.tar.gz http://puzzle.dl.sourceforge.net/sourceforge/tcl/
9
10 bin_ver="8.6"
11
12 custmain="1"
13
14 custmain()      {
15         # extract
16         for i in tcl tk; do
17                 tar --use-compress-program=gzip -xvf \
18                 $hdw_home_dir/download/devel/tcltk/${i}${ver}-src.tar.gz
19         done &&
20
21         # prepare environment
22         export VERSION=$ver
23         export V=`echo $ver | awk -F. '{ print $1 "." $2 }'`
24         export DIR=$PWD
25         
26         # tcl
27         cd tcl$ver/unix && autoconf && cd dltest && autoconf && cd ..
28         ./configure $confopt --enable-gcc --enable-shared
29         make $make_conf && make $install_conf install &&
30         ln -svf tclsh${bin_ver} $prefix/bin/tclsh &&
31         cd ../..
32         
33         # tk
34         cd tk$ver/unix &&
35         ./configure $confopt --enable-gcc --enable-shared
36         make $make_conf && make $install_conf install &&
37         ln -svf wish${bin_ver} $prefix/bin/wish
38         cd ../..
39                 }