blob: 7b7936d5e39ce927c61517e6bbf7e569019973d9 (
plain)
1 # Description: A GUI toolkit for TCL.
2 # URL: http://www.tcl.tk/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Packager: Sven Dahl, dahl at c64 dot org
5 # Depends on: xorg-libxft tcl
6
7 name=tk
8 version=8.6.6
9 release=1
10 source=(http://downloads.sourceforge.net/project/tcl/Tcl/$version/$name$version-src.tar.gz)
11
12 build() {
13 cd $name$version/unix
14
15 ./configure \
16 --prefix=/usr \
17 --mandir=/usr/share/man \
18 --enable-gcc \
19 --enable-shared \
20 --enable-xft
21
22 make
23 make MKLINKS_FLAGS="-s" INSTALL_ROOT=$PKG install install-private-headers
24
25 cp ../generic/*.h $PKG/usr/include/
26 cp tkUnixPort.h $PKG/usr/include/tkPort.h
27 cp tkUnixDefault.h $PKG/usr/include/tkDefault.h
28 cp tkUnixInt.h $PKG/usr/include/tkInt.h
29
30 # remove $SRC traces
31 sed \
32 -e "s|$SRC/tk$version/unix|/usr/lib|g" \
33 -e "s|$SRC/tk$version|/usr/include|g" \
34 -i $PKG/usr/lib/tkConfig.sh
35
36 rm -r $PKG/usr/lib/tk${version%.*}/demos
37 rm $PKG/usr/lib/tk${version%.*}/images/README
38
39 ln -s wish${version%.*} $PKG/usr/bin/wish
40 ln -s libtk${version%.*}.so $PKG/usr/lib/libtk.so
41 ln -s libtkstub${version%.*}.a $PKG/usr/lib/libtkstub.a
42
43 chmod -R u+w $PKG/usr/share/man
44 }
|