wok view tk/receipt @ rev 2377

slitaz-eeepc: add full support for 701 and 1000
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 07 21:30:55 2009 +0100 (2009-03-07)
parents
children 1d043f8c9982
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"
9 BUILD_DEPENDS="tcl-dev xorg-libX11-dev"
10 SOURCE="tk"
11 TARBALL="${SOURCE}${VERSION}-src.tar.gz"
12 WEB_SITE="http://tcl.sourceforge.net/"
13 WGET_URL="http://surfnet.dl.sourceforge.net/sourceforge/tcl/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 # Redefine TK source path
19 src=${SOURCE}${VERSION}/unix
21 cd $src
22 ./configure --prefix=/usr \
23 --enable-threads \
24 --enable-shared $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 _pkg=${SOURCE}${VERSION}/unix/_pkg
34 mkdir -p $fs/usr/lib
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
37 cp -a $_pkg/usr/lib/tk${VERSION%%.[0-9]} $fs/usr/lib
39 cd $fs/usr/bin
40 ln -s wish${VERSION%%.[0-9]} wish
41 }
43 clean_wok()
44 {
45 test -d tk* && rm -rf tk*
46 }