2007-05-01 02:13:01 +10:00
|
|
|
# Description: A GUI toolkit for TCL.
|
|
|
|
# URL: http://tcl.sourceforge.net/
|
|
|
|
# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
|
|
|
|
# Packager: Sven Dahl, dahl at c64 dot org
|
2007-10-24 15:42:18 +10:00
|
|
|
# Depends on: xorg-libxft tcl
|
2007-05-01 02:13:01 +10:00
|
|
|
|
|
|
|
name=tk
|
2007-05-25 21:08:28 +10:00
|
|
|
version=8.4.14
|
2007-05-01 02:13:01 +10:00
|
|
|
release=1
|
|
|
|
source=(http://dl.sourceforge.net/sourceforge/tcl/tk$version-src.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd tk$version/unix/
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--enable-gcc \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-xft
|
|
|
|
|
|
|
|
make
|
|
|
|
make install MKLINKS_FLAGS="-s" INSTALL_ROOT=$PKG
|
|
|
|
|
|
|
|
cp ../generic/*.h $PKG/usr/include/
|
|
|
|
cp tkUnixPort.h $PKG/usr/include/tkPort.h
|
|
|
|
cp tkUnixDefault.h $PKG/usr/include/tkDefault.h
|
|
|
|
cp tkUnixInt.h $PKG/usr/include/tkInt.h
|
|
|
|
|
|
|
|
sed -i "s|-L$SRC/tk$version/unix|-L/usr/lib|" $PKG/usr/lib/tkConfig.sh
|
|
|
|
|
2007-10-24 15:42:18 +10:00
|
|
|
rm -r $PKG/usr/lib/tk${version%.*}/demos
|
|
|
|
rm $PKG/usr/lib/tk${version%.*}/images/README
|
|
|
|
ln -s wish${version%.*} $PKG/usr/bin/wish
|
2007-05-01 02:13:01 +10:00
|
|
|
chmod -R u+w,go-w $PKG
|
|
|
|
find $PKG/usr/man -type f -print0 | xargs -0 chmod a-x
|
|
|
|
}
|
|
|
|
|