wok view tk/receipt @ rev 5007
[s-w]*: update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 28 17:49:32 2010 +0100 (2010-02-28) |
parents | 866fa2493b1b |
children | b81a1aeb22bd |
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 xorg-libXss"
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 }