wok-next view tk/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children 13924624fb11
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 xorg-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 xorg-libX11"
50 TAGS="programming language"
51 ;;
52 *-dev)
53 copy @dev *Config.sh
54 DEPENDS="tk xorg-libX11-dev"
55 ;;
56 esac
57 }