Difference between revisions of "Tk"

From CBLFS
Jump to navigationJump to search
(Multilib)
Line 36: Line 36:
  
 
  cd unix &&
 
  cd unix &&
  CC="gcc ${BUILD32}" ./configure --prefix=/usr \
+
  CC="gcc ${BUILD32}" USE_ARCH=32 \
 +
./configure --prefix=/usr \
 
     --enable-threads --x-libraries=${XORG_PREFIX}/lib &&
 
     --enable-threads --x-libraries=${XORG_PREFIX}/lib &&
 
  make
 
  make
Line 49: Line 50:
  
 
  cd unix &&
 
  cd unix &&
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 \
+
  CC="gcc ${BUILDN32}" USE_ARCH=n32 \
 +
./configure --prefix=/usr --libdir=/usr/lib32 \
 
     --enable-threads --x-libraries=${XORG_PREFIX}/lib32 &&
 
     --enable-threads --x-libraries=${XORG_PREFIX}/lib32 &&
 
  sed -i 's@/lib/@/lib32/@' Makefile &&
 
  sed -i 's@/lib/@/lib32/@' Makefile &&
Line 63: Line 65:
  
 
  cd unix &&
 
  cd unix &&
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 \
+
  CC="gcc ${BUILD64}" USE_ARCH=64 \
 +
./configure --prefix=/usr --libdir=/usr/lib64 \
 
     --enable-threads --x-libraries=${XORG_PREFIX}/lib64 &&
 
     --enable-threads --x-libraries=${XORG_PREFIX}/lib64 &&
 
  sed -i 's@/lib/@/lib64/@' Makefile &&
 
  sed -i 's@/lib/@/lib64/@' Makefile &&

Revision as of 12:03, 20 September 2008

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

Introduction to Tk

Project Homepage: Unknown

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

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

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 &&
ln -v -sf wish8.5 /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.