wok annotate tk/receipt @ rev 8653

Up: tazwok-experimental to 0.0.6.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Feb 15 23:23:35 2011 +0000 (2011-02-15)
parents 4897058add72
children be13f25e790b
rev   line source
erjo@1871 1 # SliTaz package receipt.
erjo@1871 2
erjo@1871 3 PACKAGE="tk"
slaxemulator@6422 4 VERSION="8.5.9"
erjo@1871 5 CATEGORY="development"
erjo@1871 6 SHORT_DESC="The TCL gui toolkit"
erjo@1871 7 MAINTAINER="erjo@slitaz.org"
pascal@2439 8 DEPENDS="tcl expat fontconfig freetype xorg-libX11 xorg-libXau xorg-libXdmcp \
pascal@5007 9 xorg-libXft xorg-libXrender zlib xorg-libXss"
erjo@1871 10 BUILD_DEPENDS="tcl-dev xorg-libX11-dev"
erjo@1871 11 SOURCE="tk"
erjo@1871 12 TARBALL="${SOURCE}${VERSION}-src.tar.gz"
erjo@1871 13 WEB_SITE="http://tcl.sourceforge.net/"
erjo@1871 14 WGET_URL="http://surfnet.dl.sourceforge.net/sourceforge/tcl/$TARBALL"
jozee@4973 15 TAGS="programming language"
erjo@1871 16
erjo@1871 17 # Rules to configure and make the package.
erjo@1871 18 compile_rules()
erjo@1871 19 {
erjo@1871 20 # Redefine TK source path
erjo@1871 21 src=${SOURCE}${VERSION}/unix
erjo@1871 22
erjo@1871 23 cd $src
erjo@1871 24 ./configure --prefix=/usr \
erjo@1871 25 --enable-threads \
erjo@1871 26 --enable-shared $CONFIGURE_ARGS &&
erjo@1871 27 make &&
erjo@1871 28 make DESTDIR=$PWD/_pkg install
erjo@1871 29 }
erjo@1871 30
erjo@1871 31 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1871 32 genpkg_rules()
erjo@1871 33 {
erjo@1871 34 _pkg=${SOURCE}${VERSION}/unix/_pkg
erjo@1871 35
erjo@1871 36 mkdir -p $fs/usr/lib
erjo@1871 37 cp -a $_pkg/usr/bin $fs/usr
erjo@1871 38 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
erjo@1871 39 cp -a $_pkg/usr/lib/tk${VERSION%%.[0-9]} $fs/usr/lib
erjo@1871 40
erjo@1871 41 cd $fs/usr/bin
erjo@1871 42 ln -s wish${VERSION%%.[0-9]} wish
erjo@1871 43 }
erjo@1871 44
erjo@1871 45 clean_wok()
erjo@1871 46 {
erjo@1871 47 test -d tk* && rm -rf tk*
erjo@1871 48 }