tkLOR - собрать с не системными Tcl/Tk - решено: cd /tmp mkdir -p /tmp/SOFT/tkLOR tar -xjvf tcl8.5.0-src.tar.bz2 cd tcl8.5.0 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH CFLAGS="-O2 -mcpu=i686" CXXFLAGS="-O2 -mcpu=i686" ./configure --prefix=/usr/local/libexec/TclTk make checkinstall -S --nodoc --addso=yes -y mv tcl-8.5.0-i386-1.tgz .. cd .. installpkg tcl-8.5.0-i386-1.tgz tar -xjvf tk8.5.0-src.tar.bz2 cd tk8.5.0 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH CFLAGS="-O2 -mcpu=i686" CXXFLAGS="-O2 -mcpu=i686" ./configure --prefix=/usr/local/libexec/TclTk \ --with-tcl=/usr/local/libexec/TclTk/lib make checkinstall -S --nodoc --addso=yes -y mv tk-8.5.0-i386-1.tgz .. cd .. installpkg tk-8.5.0-i386-1.tgz tar -xjvf tile-0.8.2.tar.bz2 cd tile-0.8.2 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH CFLAGS="-O2 -mcpu=i686" CXXFLAGS="-O2 -mcpu=i686" ./configure --prefix=/usr/local/libexec/TclTk \ --with-tcl=/usr/local/libexec/TclTk/lib \ --with-tk=/usr/local/libexec/TclTk/lib make checkinstall -S --nodoc --addso=yes -y mv tile-0.8.2-i386-1.tgz .. cd .. installpkg tile-0.8.2-i386-1.tgz tar -xjvf tcllib-1.10.tar.bz2 cd tcllib-1.10 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH CFLAGS="-O2 -mcpu=i686" CXXFLAGS="-O2 -mcpu=i686" ./configure --prefix=/usr/local/libexec/TclTk \ --with-tcl=/usr/local/libexec/TclTk/lib \ --with-tk=/usr/local/libexec/TclTk/lib make checkinstall -S --nodoc --addso=yes -y mv tcllib-1.10-i386-1.tgz .. cd .. installpkg tcllib-1.10-i386-1.tgz rm -rf tcl8.5.0 tk8.5.0 tile-0.8.2 tcllib-1.10 tar -xzvf tklor_0.9.4-1.tar.gz bzcat tklor-0.9.4_path.patch.bz2|patch -p0 ############################################# diff -ruN tklor-0.9.4.orig/lib/lorBackend.tcl tklor-0.9.4/lib/lorBackend.tcl --- tklor-0.9.4.orig/lib/lorBackend.tcl 2008-03-02 13:03:22.000000000 +0300 +++ tklor-0.9.4/lib/lorBackend.tcl 2008-03-17 18:37:24.000000000 +0300 @@ -20,7 +20,7 @@ ############################################################################ # \ -exec tclsh "$0" "$@" +exec /usr/local/libexec/TclTk/bin/tclsh8.5 "$0" "$@" package require Tcl 8.4 package require cmdline 1.2.5 @@ -30,11 +30,7 @@ set configDir [ file join $::env(HOME) ".$appName" ] -if {[ string first Windows $tcl_platform(os) ] == -1} { - set libDir "/usr/lib/tkLOR" -} else { - set libDir "." -} +set libDir "/usr/local/libexec/tkLOR/lib" ############################################################################ # VARIABLES # diff -ruN tklor-0.9.4.orig/tkLOR tklor-0.9.4/tkLOR --- tklor-0.9.4.orig/tkLOR 2008-03-02 13:03:22.000000000 +0300 +++ tklor-0.9.4/tkLOR 2008-03-17 18:37:24.000000000 +0300 @@ -20,7 +20,7 @@ ############################################################################ # \ -exec wish "$0" "$@" +exec /usr/local/libexec/TclTk/bin/wish8.5 "$0" "$@" package require Tcl 8.4 package require Tk 8.4 @@ -36,11 +36,7 @@ set configDir [ file join $::env(HOME) ".$appName" ] set threadSubDir "threads" -if {[ string first Windows $tcl_platform(os) ] == -1} { - set libDir "/usr/lib/tkLOR" -} else { - set libDir ".\\lib" -} +set libDir "/usr/local/libexec/tkLOR/lib" ############################################################################ # VARIABLES # @@ -1938,7 +1934,7 @@ exit } -set backend [ list [ auto_execok tclsh ] [ file join $libDir lorBackend.tcl ] -configDir $configDir -libDir $libDir -appId $appId ] +set backend [ list [ auto_execok /usr/local/libexec/TclTk/bin/tclsh8.5 ] [ file join $libDir lorBackend.tcl ] -configDir $configDir -libDir $libDir -appId $appId ] initMainWindow initMenu diff -ruN tklor-0.9.4.orig/tklor.desktop tklor-0.9.4/tklor.desktop --- tklor-0.9.4.orig/tklor.desktop 2008-03-02 13:03:22.000000000 +0300 +++ tklor-0.9.4/tklor.desktop 2008-03-17 18:28:02.000000000 +0300 @@ -2,7 +2,7 @@ Comment= Comment[ru]= Encoding=UTF-8 -Exec=tkLOR +Exec=/usr/local/libexec/tkLOR/tkLOR.sh GenericName=п п╩п╦п╣п╫я┌ п╢п╩я▐ я┤я┌п╣п╫п╦я▐ п⌡п·п═ GenericName[ru]=п п╩п╦п╣п╫я┌ п╢п╩я▐ я┤я┌п╣п╫п╦я▐ п⌡п·п═ Icon=tklor.xpm @@ -11,7 +11,7 @@ Name[ru]=tkLOR Path= StartupNotify=false -Terminal=false +Terminal=true Type=Application X-DCOP-ServiceType= X-KDE-SubstituteUID=false diff -ruN tklor-0.9.4.orig/tkLOR.sh tklor-0.9.4/tkLOR.sh --- tklor-0.9.4.orig/tkLOR.sh 1970-01-01 03:00:00.000000000 +0300 +++ tklor-0.9.4/tkLOR.sh 2008-03-17 18:37:24.000000000 +0300 @@ -0,0 +1 @@ +/usr/local/libexec/TclTk/bin/wish8.5 /usr/local/libexec/tkLOR/tkLOR -configDir=$HOME/.tkLOR ############################################# mkdir -p tklor-0.9.4-noarch-1/usr/local/libexec/tkLOR mkdir -p tklor-0.9.4-noarch-1/usr/share/applications mkdir -p tklor-0.9.4-noarch-1/usr/share/pixmaps mv tklor.xpm tklor-0.9.4-noarch-1/usr/share/pixmaps mv tklor.desktop tklor-0.9.4-noarch-1/usr/share/applications mv -rf tklor-0.9.4/* tklor-0.9.4-noarch-1/usr/local/libexec/tkLOR chmod -R 644 tklor-0.9.4-noarch-1 chmod -R +X tklor-0.9.4-noarch-1 chmod +x tklor-0.9.4-noarch-1/usr/local/libexec/tkLOR/tkLOR chmod +x tklor-0.9.4-noarch-1/usr/local/libexec/tkLOR/tkLOR.sh chown -R root:root tklor-0.9.4-noarch-1 cd tklor-0.9.4-noarch-1 makepkg ../tklor-0.9.4-noarch-1.tgz cd .. installpkg tklor-0.9.4-noarch-1.tgz rm -rf tklor-0.9.4 tklor-0.9.4-noarch-1
Ответ на:
комментарий
от KRoN73
Ответ на:
комментарий
от botrops-schlegelii
Ответ на:
комментарий
от gaa
Ответ на:
комментарий
от anonymous
Ответ на:
комментарий
от anonymous
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.
Похожие темы
- Форум Tcl/Tk (2022)
- Форум TCL/TK (2006)
- Форум TCl/TK (2001)
- Форум Tcl/Tk (2000)
- Форум Tcl/Tk FAQ (2010)
- Форум Tcl/Tk Text (2021)
- Форум Tcl/Tk && KDE (2009)
- Форум TCL/Tk + threads (2008)
- Новости Tcl/Tk 8.5 (2007)
- Форум Tcl/Tk, рекурсия? (2008)