wok-next view tk/receipt @ rev 4973
add/improve TAGS t* receipts
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Feb 24 12:13:18 2010 +0000 (2010-02-24) |
parents | 1d043f8c9982 |
children | 4897058add72 |
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"
15 TAGS="programming language"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # Redefine TK source path
21 src=${SOURCE}${VERSION}/unix
23 cd $src
24 ./configure --prefix=/usr \
25 --enable-threads \
26 --enable-shared $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 _pkg=${SOURCE}${VERSION}/unix/_pkg
36 mkdir -p $fs/usr/lib
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
39 cp -a $_pkg/usr/lib/tk${VERSION%%.[0-9]} $fs/usr/lib
41 cd $fs/usr/bin
42 ln -s wish${VERSION%%.[0-9]} wish
43 }
45 clean_wok()
46 {
47 test -d tk* && rm -rf tk*
48 }