# hdw - linux tcltk package # # author: hackbard@hackdaworld.dyndns.org # # [V] 8.4.6 # [S] 3-4 # [D] tk8.4.6-src.tar.gz http://puzzle.dl.sourceforge.net/sourceforge/tcl/ # [D] tcl8.4.6-src.tar.gz http://puzzle.dl.sourceforge.net/sourceforge/tcl/ bin_ver="8.6" custmain="1" custmain() { # extract for i in tcl tk; do tar --use-compress-program=gzip -xvf \ $hdw_home_dir/download/devel/tcltk/${i}${ver}-src.tar.gz done && # prepare environment export VERSION=$ver export V=`echo $ver | awk -F. '{ print $1 "." $2 }'` export DIR=$PWD # tcl cd tcl$ver/unix && autoconf && cd dltest && autoconf && cd .. ./configure $confopt --enable-gcc --enable-shared make $make_conf && make $install_conf install && ln -svf tclsh${bin_ver} $prefix/bin/tclsh && cd ../.. # tk cd tk$ver/unix && ./configure $confopt --enable-gcc --enable-shared make $make_conf && make $install_conf install && ln -svf wish${bin_ver} $prefix/bin/wish cd ../.. }