wok-next view tcl/receipt @ rev 19957

Up fuse-emulator, gpgme, libnetfilter_conntrack, libnetfilter_cthelper, libnetfilter_cttimeout, libnetfilter_queue, libnfnetlink, libsdl, libspectrum, libstatgrab, libstroke, subversion, sysfsutils, taglib, tcl, tcpcrypt, tidy, tk, tokyocabinet, udisks2. Add fuse-emulator-gtk3, libblockdev, libbytesize, libstroke, volume_key.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Oct 16 22:34:14 2017 +0300 (2017-10-16)
parents c6d83a2b2380
children 0e7893ac206d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tcl"
4 VERSION="8.6.7"
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 # Rules to configure and make the package.
19 compile_rules() {
20 export SRCDIR=$(pwd) &&
22 cd unix &&
24 ./configure \
25 --prefix=/usr \
26 --mandir=/usr/share/man \
27 $([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
28 make &&
30 sed -e "s|$SRCDIR/unix|/usr/lib|" \
31 -e "s|$SRCDIR|/usr/include|" \
32 -i tclConfig.sh &&
34 sed -e "s|$SRCDIR/unix/pkgs/tdbc1.0.5|/usr/lib/tdbc1.0.5|" \
35 -e "s|$SRCDIR/pkgs/tdbc1.0.5/generic|/usr/include|" \
36 -e "s|$SRCDIR/pkgs/tdbc1.0.5/library|/usr/lib/tcl8.6|" \
37 -e "s|$SRCDIR/pkgs/tdbc1.0.5|/usr/include|" \
38 -i pkgs/tdbc1.0.5/tdbcConfig.sh &&
40 sed -e "s|$SRCDIR/unix/pkgs/itcl4.1.0|/usr/lib/itcl4.1.0|" \
41 -e "s|$SRCDIR/pkgs/itcl4.1.0/generic|/usr/include|" \
42 -e "s|$SRCDIR/pkgs/itcl4.1.0|/usr/include|" \
43 -i pkgs/itcl4.1.0/itclConfig.sh &&
45 unset SRCDIR
47 make install &&
48 make install-private-headers &&
49 ln -v -sf tclsh${VERSION:0:3} $install/usr/bin/tclsh &&
50 chmod -v 755 $install/usr/lib/libtcl${VERSION:0:3}.so &&
51 find $install -name '*.sh' -exec chmod -v 755 '{}' \;
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules() {
56 case $PACKAGE in
57 tcl)
58 copy @std
59 find $fs -name '*Config.sh' -delete
60 DEPENDS="zlib"
61 TAGS="language programming"
62 ;;
63 *-dev)
64 copy @dev *Config.sh
65 DEPENDS="tcl zlib-dev"
66 ;;
67 esac
68 }