wok-next view tcl/receipt @ rev 19828
Add LibreOffice (with langpacks); up compton, cookutils, cppunit.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Aug 02 20:14:13 2017 +0300 (2017-08-02) |
parents | 9a27b923c7b7 |
children | 0a667524ce79 |
line source
1 # SliTaz package receipt.
3 PACKAGE="tcl"
4 VERSION="8.6.6"
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 TAGS="language programming"
11 HOST_ARCH="i486 arm"
13 TARBALL="${PACKAGE}${VERSION}-src.tar.gz"
14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
16 BUILD_DEPENDS="zlib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 case "$ARCH" in
22 arm*)
23 export tcl_cv_strtod_buggy=1
24 export ac_cv_func_strtod=yes
25 sed -i s'#./${TCL_EXE}#/usr/bin/tclsh#' unix/Makefile.in
26 ;;
27 esac
28 mkdir -p /usr/lib/tdbc1.0.4
30 cd $src/unix
31 ./configure \
32 --enable-shared \
33 --disable-symbols \
34 --mandir=/usr/share/man \
35 $CONFIGURE_ARGS &&
36 make &&
38 sed -e "s#$SRCDIR/unix#/usr/lib#" \
39 -e "s#$SRCDIR#/usr/include#" \
40 -i tclConfig.sh &&
42 sed -e "s#$SRCDIR/unix/pkgs/tdbc1.0.4#/usr/lib/tdbc1.0.4#" \
43 -e "s#$SRCDIR/pkgs/tdbc1.0.4/generic#/usr/include#" \
44 -e "s#$SRCDIR/pkgs/tdbc1.0.4/library#/usr/lib/tcl8.6#" \
45 -e "s#$SRCDIR/pkgs/tdbc1.0.4#/usr/include#" \
46 -i pkgs/tdbc1.0.4/tdbcConfig.sh &&
48 sed -e "s#$SRCDIR/unix/pkgs/itcl4.0.5#/usr/lib/itcl4.0.5#" \
49 -e "s#$SRCDIR/pkgs/itcl4.0.5/generic#/usr/include#" \
50 -e "s#$SRCDIR/pkgs/itcl4.0.5#/usr/include#" \
51 -i pkgs/itcl4.0.5/itclConfig.sh &&
53 unset SRCDIR &&
55 make install &&
56 make install install-private-headers
58 ln -sf tclsh8.6 $install/usr/bin/tclsh &&
59 chmod 755 $install/usr/lib/libtcl8.6.so
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 mkdir -p $fs/usr/lib
66 cp -a $install/usr/lib/tcl${VERSION:0:1}* $fs/usr/lib
67 cp -a $install/usr/lib/*.so* $fs/usr/lib
68 cp -a $install/usr/bin $fs/usr
69 }