wok-next view tk/receipt @ rev 20939
Fix brisk-menu, mate-backgrounds, mate-user-guide
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Aug 26 09:13:55 2018 +0300 (2018-08-26) |
parents | 0e7893ac206d |
children | f48456621a9d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tk"
4 VERSION="8.6.8"
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-demos tk tk-dev"
18 compile_rules() {
19 case $ARCH in
20 x86_64) ARCH_ARGS='--enable-64bit';;
21 *) ARCH_ARGS='';;
22 esac
24 cd unix
25 ./configure \
26 $ARCH_ARGS &&
27 make &&
28 sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
29 -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
30 -i tkConfig.sh &&
31 make install &&
32 make install-private-headers || return 1
34 ln -v -sf wish${VERSION:0:3} $install/usr/bin/wish
35 chmod -v 755 $install/usr/lib/libtk${VERSION:0:3}.so
36 find $install -name '*.sh' -exec chmod -v 755 '{}' \;
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 tk-demos)
42 copy demos/
43 CAT="development|demo applications"
44 DEPENDS=""
45 ;;
46 tk)
47 copy @std @rm
48 find $fs -name '*Config.sh' -delete
49 DEPENDS="tcl xorg-libX11"
50 TAGS="programming language"
51 ;;
52 *-dev)
53 copy @dev *Config.sh
54 DEPENDS="tk xorg-libX11-dev"
55 ;;
56 esac
57 }