wok-6.x view tk/receipt @ rev 2225

Add ppp-pam
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 12 10:24:10 2009 +0000 (2009-02-12)
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 }