Tk: Difference between revisions

From CBLFS
Jump to navigationJump to search
No edit summary
 
Oppiz (talk | contribs)
No edit summary
 
(15 intermediate revisions by 5 users not shown)
Line 2: Line 2:
|-
|-
!Download Source:
!Download Source:
| http://prdownloads.sourceforge.net/tcl/tk8.4.13-src.tar.gz
| http://downloads.sourceforge.net/tcl/tk{{Tk-Version}}-src.tar.gz
|}
|}


----
----
{{Package-Introduction|Tk is a graphical user interface toolkit that takes developing desktop applications to a higher level than conventional approaches.|http://www.tcl.tk/}}


== Dependencies ==
== Dependencies ==
Line 25: Line 27:
  make install &&
  make install &&
  make install-private-headers &&
  make install-private-headers &&
  ln -v -sf wish8.4 /usr/bin/wish
  ln -v -sf wish{{Tk-Version2}} /usr/bin/wish


== Multilib ==
== Multilib ==
Line 34: Line 36:


  cd unix &&
  cd unix &&
  CC="gcc ${BUILD32}" ./configure --prefix=/usr \
  CC="gcc ${BUILD32}" USE_ARCH=32 \
     --enable-threads &&
./configure --prefix=/usr \
     --enable-threads --x-libraries=${XORG_PREFIX}/lib &&
  make
  make


Line 41: Line 44:


  make install &&
  make install &&
  make install-private-headers
  mv -v /usr/bin/wish{{Tk-Version2}}{,-32} &&
ln -sfv wish{{Tk-Version2}}-32 /usr/bin/wish-32


=== N32 ===
=== N32 ===
Line 48: Line 52:


  cd unix &&
  cd unix &&
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 \
  CC="gcc ${BUILDN32}" USE_ARCH=n32 \
     --enable-threads &&
./configure --prefix=/usr --libdir=/usr/lib32 \
     --enable-threads --x-libraries=${XORG_PREFIX}/lib32 &&
sed -i 's@/lib/@/lib32/@' Makefile &&
  make
  make


Line 55: Line 61:


  make install &&
  make install &&
  make install-private-headers
  mv -v /usr/bin/wish{{Tk-Version2}}{,-n32} &&
ln -sfv wish{{Tk-Version2}}-n32 /usr/bin/wish-n32


=== 64Bit ===
=== 64Bit ===
Line 62: Line 69:


  cd unix &&
  cd unix &&
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 \
  CC="gcc ${BUILD64}" USE_ARCH=64 \
     --enable-threads &&
./configure --prefix=/usr --libdir=/usr/lib64 \
     --enable-threads --x-libraries=${XORG_PREFIX}/lib64 &&
sed -i 's@/lib/@/lib64/@' Makefile &&
  make
  make


Line 70: Line 79:
  make install &&
  make install &&
  make install-private-headers &&
  make install-private-headers &&
  ln -v -sf wish8.4 /usr/bin/wish
mv -v /usr/bin/wish{{Tk-Version2}}{,-64} &&
ln -sfv wish{{Tk-Version2}}-64 /usr/bin/wish-64 &&
ln -sfv multiarch_wrapper /usr/bin/wish{{Tk-Version2}} &&
  ln -sfv multiarch_wrapper /usr/bin/wish
 
= Contents =
 
{| style="text-align: left;"
|-valign="top"
! Installed Programs:
| wish and wish{{Tk-Version2}}
|-valign="top"
! Installed Libraries:
| libtk.so and libtkstub{{Tk-Version2}}.a
|-valign="top"
! Installed Directories:
| /usr/lib/tk{{Tk-Version2}}
|}
 
=== Short Descriptions ===
 
{| style="text-align: left;"
|-valign="top"
! wish
| is a symlink to the '''wish8.4''' program.
|-valign="top"
! wish{{Tk-Version2}}
| is a simple shell containing the Tk toolkit that creates a main window and then processes Tcl commands.
|-valign="top"
! libtk.so
| contains the API functions required by Tk.
|}
 
[[Category:Graphics Libraries]]

Latest revision as of 16:43, 20 September 2009

Download Source: http://downloads.sourceforge.net/tcl/tk8.5.7-src.tar.gz

Introduction to Tk

Tk is a graphical user interface toolkit that takes developing desktop applications to a higher level than conventional approaches.

Project Homepage: http://www.tcl.tk/

Dependencies

Required

Non-Multilib

Compile the package:

cd unix &&
./configure --prefix=/usr --enable-threads &&
make

Install the package

make install &&
make install-private-headers &&
ln -v -sf wish8.5 /usr/bin/wish

Multilib

32Bit

Compile the package:

cd unix &&
CC="gcc ${BUILD32}" USE_ARCH=32 \
./configure --prefix=/usr \
    --enable-threads --x-libraries=${XORG_PREFIX}/lib &&
make

Install the package

make install &&
mv -v /usr/bin/wish8.5{,-32} &&
ln -sfv wish8.5-32 /usr/bin/wish-32

N32

Compile the package:

cd unix &&
CC="gcc ${BUILDN32}" USE_ARCH=n32 \
./configure --prefix=/usr --libdir=/usr/lib32 \
    --enable-threads --x-libraries=${XORG_PREFIX}/lib32 &&
sed -i 's@/lib/@/lib32/@' Makefile &&
make

Install the package

make install &&
mv -v /usr/bin/wish8.5{,-n32} &&
ln -sfv wish8.5-n32 /usr/bin/wish-n32

64Bit

Compile the package:

cd unix &&
CC="gcc ${BUILD64}" USE_ARCH=64 \
./configure --prefix=/usr --libdir=/usr/lib64 \
    --enable-threads --x-libraries=${XORG_PREFIX}/lib64 &&
sed -i 's@/lib/@/lib64/@' Makefile &&
make

Install the package

make install &&
make install-private-headers &&
mv -v /usr/bin/wish8.5{,-64} &&
ln -sfv wish8.5-64 /usr/bin/wish-64 &&
ln -sfv multiarch_wrapper /usr/bin/wish8.5 &&
ln -sfv multiarch_wrapper /usr/bin/wish

Contents

Installed Programs: wish and wish8.5
Installed Libraries: libtk.so and libtkstub8.5.a
Installed Directories: /usr/lib/tk8.5

Short Descriptions

wish is a symlink to the wish8.4 program.
wish8.5 is a simple shell containing the Tk toolkit that creates a main window and then processes Tcl commands.
libtk.so contains the API functions required by Tk.
Retrieved from "?title=Tk&oldid=19305"