wok-6.x view tk/receipt @ rev 4748
bison: update depends
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sat Jan 09 13:05:53 2010 +0000 (2010-01-09) |
parents | aa93d8e9b65f |
children | 866fa2493b1b |
line source
1 # SliTaz package receipt.
3 PACKAGE="tk"
4 VERSION="8.5.5"
5 CATEGORY="development"
6 SHORT_DESC="The TCL gui toolkit"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="tcl expat fontconfig freetype xorg-libX11 xorg-libXau xorg-libXdmcp \
9 xorg-libXft xorg-libXrender zlib"
10 BUILD_DEPENDS="tcl-dev xorg-libX11-dev"
11 SOURCE="tk"
12 TARBALL="${SOURCE}${VERSION}-src.tar.gz"
13 WEB_SITE="http://tcl.sourceforge.net/"
14 WGET_URL="http://surfnet.dl.sourceforge.net/sourceforge/tcl/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # Redefine TK source path
20 src=${SOURCE}${VERSION}/unix
22 cd $src
23 ./configure --prefix=/usr \
24 --enable-threads \
25 --enable-shared $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$PWD/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 _pkg=${SOURCE}${VERSION}/unix/_pkg
35 mkdir -p $fs/usr/lib
36 cp -a $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
38 cp -a $_pkg/usr/lib/tk${VERSION%%.[0-9]} $fs/usr/lib
40 cd $fs/usr/bin
41 ln -s wish${VERSION%%.[0-9]} wish
42 }
44 clean_wok()
45 {
46 test -d tk* && rm -rf tk*
47 }