wok-next view tk/receipt @ rev 21074
tk: update (b)deps
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 20 21:44:54 2018 +0200 (2018-12-20) |
parents | d5aab818505e |
children | 8105ce8fc51a |
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="devel@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://tcl.sourceforge.net/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/tk.html"
12 TARBALL="$PACKAGE$VERSION-src.tar.gz"
13 WGET_URL="$SF_MIRROR/tcl/$TARBALL"
15 BUILD_DEPENDS="tcl-dev libx11-dev"
16 SPLIT="$PACKAGE-demos $PACKAGE $PACKAGE-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 libx11"
50 TAGS="programming language"
51 ;;
52 *-dev)
53 copy @dev *Config.sh
54 DEPENDS="tk libx11-dev"
55 ;;
56 esac
57 }