wok-next view tcl/receipt @ rev 21545
updated cgames (2.2 -> 2.2b)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jun 21 17:35:44 2020 +0100 (2020-06-21) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tcl"
4 VERSION="8.6.9"
5 CATEGORY="development"
6 SHORT_DESC="The Tool Command Language"
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/tcl.html"
12 TARBALL="$PACKAGE$VERSION-src.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 TARBALL_SHA1="861c5c8bbce9eda892c5e63b6035e09fad90a25f"
16 BUILD_DEPENDS="zlib-dev"
17 SPLIT="$PACKAGE-dev $PACKAGE"
19 COPY_dev="@dev *Config.sh"
21 DEPENDS_std="zlib"
22 DEPENDS_dev="$PACKAGE zlib-dev"
24 TAGS_std="language programming"
26 compile_rules() {
27 case "$ARCH" in
28 x86_64) ARCH_ARGS='--enable-64bit';;
29 *) ARCH_ARGS='';;
30 esac
32 cd unix
34 ./configure \
35 $ARCH_ARGS &&
36 make || return 1
38 sed -e "s|$src/unix|/usr/lib|" \
39 -e "s|$src|/usr/include|" \
40 -i tclConfig.sh
42 i=$(basename pkgs/tdbc[0-9.]*)
43 sed -e "s|$src/unix/pkgs/$i|/usr/lib/$i|" \
44 -e "s|$src/pkgs/$i/generic|/usr/include|" \
45 -e "s|$src/pkgs/$i/library|/usr/lib/tcl${VERSION%.*}|" \
46 -e "s|$src/pkgs/$i|/usr/include|" \
47 -i pkgs/$i/tdbcConfig.sh
49 i=$(basename pkgs/itcl*)
50 sed -e "s|$src/unix/pkgs/$i|/usr/lib/$i|" \
51 -e "s|$src/pkgs/$i/generic|/usr/include|" \
52 -e "s|$src/pkgs/$i|/usr/include|" \
53 -i pkgs/$i/itclConfig.sh
55 make install &&
56 make install-private-headers || return 1
58 ln -v -sf tclsh${VERSION%.*} $install/usr/bin/tclsh
60 find $install -type f -perm 444 -exec chmod 644 '{}' \;
61 find $install -name '*.so' -exec chmod 755 '{}' \;
62 find $install -name '*.sh' -exec chmod 755 '{}' \;
63 }