wok-next view tcl/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | 0e7893ac206d |
children | f48456621a9d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tcl"
4 VERSION="8.6.8"
5 CATEGORY="development"
6 SHORT_DESC="The Tool Command Language"
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/tcl.html"
12 TARBALL="$PACKAGE$VERSION-src.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="zlib-dev"
16 SPLIT="tcl-dev"
18 compile_rules() {
19 case "$ARCH" in
20 x86_64) ARCH_ARGS='--enable-64bit';;
21 *) ARCH_ARGS='';;
22 esac
24 cd unix
26 ./configure \
27 $ARCH_ARGS &&
28 make || return 1
30 sed -e "s|$src/unix|/usr/lib|" \
31 -e "s|$src|/usr/include|" \
32 -i tclConfig.sh
34 i=$(basename pkgs/tdbc[0-9.]*)
35 sed -e "s|$src/unix/pkgs/$i|/usr/lib/$i|" \
36 -e "s|$src/pkgs/$i/generic|/usr/include|" \
37 -e "s|$src/pkgs/$i/library|/usr/lib/tcl${VERSION%.*}|" \
38 -e "s|$src/pkgs/$i|/usr/include|" \
39 -i pkgs/$i/tdbcConfig.sh
41 i=$(basename pkgs/itcl*)
42 sed -e "s|$src/unix/pkgs/$i|/usr/lib/$i|" \
43 -e "s|$src/pkgs/$i/generic|/usr/include|" \
44 -e "s|$src/pkgs/$i|/usr/include|" \
45 -i pkgs/$i/itclConfig.sh
47 make install &&
48 make install-private-headers || return 1
50 ln -v -sf tclsh${VERSION%.*} $install/usr/bin/tclsh
52 find $install -type f -perm 444 -exec chmod 644 '{}' \;
53 find $install -name '*.so' -exec chmod 755 '{}' \;
54 find $install -name '*.sh' -exec chmod 755 '{}' \;
55 }
57 genpkg_rules() {
58 case $PACKAGE in
59 tcl)
60 copy @std
61 find $fs -name '*Config.sh' -delete
62 DEPENDS="zlib"
63 TAGS="language programming"
64 ;;
65 *-dev)
66 copy @dev *Config.sh
67 DEPENDS="tcl zlib-dev"
68 ;;
69 esac
70 }