wok-next annotate tk8.4/receipt @ rev 1535
udev: fix compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 09 19:36:57 2008 +0000 (2008-10-09) |
parents | 03a799424aaa |
children |
rev | line source |
---|---|
erjo@1012 | 1 # SliTaz package receipt. |
erjo@1012 | 2 |
erjo@1012 | 3 PACKAGE="tk8.4" |
erjo@1012 | 4 VERSION="8.4.18" |
pascal@1423 | 5 CATEGORY="development" |
erjo@1012 | 6 SHORT_DESC="The TCL gui toolkit" |
erjo@1012 | 7 MAINTAINER="erjo@slitaz.org" |
erjo@1012 | 8 DEPENDS="tcl8.4" |
pascal@1514 | 9 BUILD_DEPENDS="tcl8.4-dev xorg-libX11-dev" |
erjo@1012 | 10 SOURCE="tk" |
erjo@1012 | 11 TARBALL="${SOURCE}${VERSION}-src.tar.gz" |
erjo@1012 | 12 WEB_SITE="http://tcl.sourceforge.net/" |
erjo@1012 | 13 WGET_URL="http://surfnet.dl.sourceforge.net/sourceforge/tcl/$TARBALL" |
erjo@1012 | 14 |
erjo@1012 | 15 # Rules to configure and make the package. |
erjo@1012 | 16 compile_rules() |
erjo@1012 | 17 { |
erjo@1012 | 18 # Redefine TK source path |
erjo@1012 | 19 src=${SOURCE}${VERSION}/unix |
erjo@1012 | 20 |
erjo@1012 | 21 cd $src |
erjo@1012 | 22 ./configure --prefix=/usr \ |
erjo@1012 | 23 --enable-threads \ |
pascal@1514 | 24 --enable-shared $CONFIGURE_ARGS && |
pascal@1514 | 25 make && |
erjo@1012 | 26 make DESTDIR=$PWD/_pkg install |
erjo@1012 | 27 } |
erjo@1012 | 28 |
erjo@1012 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@1012 | 30 genpkg_rules() |
erjo@1012 | 31 { |
erjo@1012 | 32 _pkg=${SOURCE}${VERSION}/unix/_pkg |
erjo@1012 | 33 |
erjo@1012 | 34 mkdir -p $fs/usr/lib |
erjo@1012 | 35 cp -a $_pkg/usr/bin $fs/usr |
erjo@1012 | 36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
erjo@1012 | 37 cp -a $_pkg/usr/lib/tk8.4 $fs/usr/lib |
erjo@1012 | 38 |
erjo@1012 | 39 cd $fs/usr/bin |
erjo@1012 | 40 ln -s wish8.4 wish |
erjo@1012 | 41 } |
erjo@1012 | 42 |