wok-next view tk/receipt @ rev 20204
libjreen: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 22:50:48 2017 +0100 (2017-11-03) |
parents | c6d83a2b2380 |
children | 0e7893ac206d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tk"
4 VERSION="8.6.7"
5 CATEGORY="development"
6 SHORT_DESC="The TCL gui toolkit"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://tcl.sourceforge.net/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/tk.html"
12 TARBALL="$PACKAGE$VERSION-src.tar.gz"
13 WGET_URL="$SF_MIRROR/tcl/$TARBALL"
15 BUILD_DEPENDS="tcl-dev xorg-libX11-dev"
16 SPLIT="tk-dev"
18 # Rules to configure and make the package.
19 compile_rules() {
20 cd unix &&
21 ./configure \
22 --prefix=/usr \
23 --mandir=/usr/share/man \
24 $([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
25 make &&
26 sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
27 -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
28 -i tkConfig.sh &&
29 make install &&
30 make install-private-headers &&
31 ln -v -sf wish${VERSION:0:3} $install/usr/bin/wish &&
32 chmod -v 755 $install/usr/lib/libtk${VERSION:0:3}.so &&
33 find $install -name '*.sh' -exec chmod -v 755 '{}' \;
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules() {
38 case $PACKAGE in
39 tk)
40 copy @std
41 find $fs -name '*Config.sh' -delete
42 DEPENDS="tcl xorg-libX11 zlib"
43 TAGS="programming language"
44 ;;
45 *-dev)
46 copy @dev *Config.sh
47 DEPENDS="tk tcl-dev xorg-libX11-dev"
48 ;;
49 esac
50 }