X-Git-Url: https://hackdaworld.org/gitweb/?p=hdw-linux%2Fhdw-linux.git;a=blobdiff_plain;f=packages%2Fdevel%2Ftcltk%2Ftcltk;h=449adfb665efac348f30424399a39770ed492b3c;hp=073b7219f8893cc662384d3c03612172ecad231a;hb=19813891fbe232c43c28c601baabc931cfb4d34e;hpb=1b91eff691e77e2e1308f7286717844a0bf8028b diff --git a/packages/devel/tcltk/tcltk b/packages/devel/tcltk/tcltk index 073b721..449adfb 100644 --- a/packages/devel/tcltk/tcltk +++ b/packages/devel/tcltk/tcltk @@ -2,12 +2,10 @@ # # author: hackbard@hackdaworld.dyndns.org # -# [V] 8.4.6 +# [V] 8.4.11 # [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" +# [D] tk8.4.11-src.tar.gz http://puzzle.dl.sourceforge.net/sourceforge/tcl/ +# [D] tcl8.4.11-src.tar.gz http://puzzle.dl.sourceforge.net/sourceforge/tcl/ custmain="1" @@ -21,19 +19,43 @@ custmain() { # 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 tcl$ver + export DIR=$PWD + cd unix + ./configure $confopt --enable-threads + make $make_conf + sed -i "s:${DIR}/unix:$prefix/lib:" tclConfig.sh + sed -i "s:${DIR}:$prefix/include/tcl${V}:" tclConfig.sh + sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," tclConfig.sh + make $install_conf install + install -v -d $prefix/include/tcl${V}/unix + install -v -m644 *.h $prefix/include/tcl${V}/unix/ + install -v -d $prefix/include/tcl${V}/generic + install -v -c -m644 ../generic/*.h $prefix/include/tcl${V}/generic/ + rm -v -f $prefix/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h + ln -v -nsf ../../include/tcl${V} $prefix/lib/tcl${V}/include + ln -v -sf libtcl${V}.so $prefix/lib/libtcl.so + ln -v -sf tclsh${V} $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 tk$ver + export DIR=$PWD + cd unix + ./configure $confopt --enable-threads + make $make_conf + sed -i "s:${DIR}/unix:$prefix/lib:" tkConfig.sh + sed -i "s:${DIR}:$prefix/include/tk${V}:" tkConfig.sh + make $install_conf install + install -v -d $prefix/include/tk${V}/unix + install -v -m644 *.h $prefix/include/tk${V}/unix/ + install -v -d $prefix/include/tk${V}/generic + install -v -m644 ../generic/*.h $prefix/include/tk${V}/generic/ + rm -v -f $prefix/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h + ln -v -nsf ../../include/tk${V} $prefix/lib/tk${V}/include + ln -v -sf libtk${V}.so $prefix/lib/libtk.so + ln -v -sf wish${V} $prefix/bin/wish cd ../.. }