wok-next annotate tcl/receipt @ rev 20219
memtest: shrink
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 05 13:03:25 2017 +0100 (2017-11-05) |
parents | c6d83a2b2380 |
children | 0e7893ac206d |
rev | line source |
---|---|
al@19957 | 1 # SliTaz package receipt v2. |
erjo@507 | 2 |
erjo@507 | 3 PACKAGE="tcl" |
al@19957 | 4 VERSION="8.6.7" |
erjo@507 | 5 CATEGORY="development" |
erjo@507 | 6 SHORT_DESC="The Tool Command Language" |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15600 | 8 LICENSE="BSD" |
erjo@507 | 9 WEB_SITE="http://tcl.sourceforge.net/" |
al@19957 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/tcl.html" |
erjo@507 | 11 |
al@19957 | 12 TARBALL="$PACKAGE$VERSION-src.tar.gz" |
al@19638 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
al@19638 | 14 |
al@19638 | 15 BUILD_DEPENDS="zlib-dev" |
al@19957 | 16 SPLIT="tcl-dev" |
al@19638 | 17 |
erjo@507 | 18 # Rules to configure and make the package. |
al@19957 | 19 compile_rules() { |
al@19957 | 20 export SRCDIR=$(pwd) && |
al@19638 | 21 |
al@19957 | 22 cd unix && |
al@19957 | 23 |
slaxemulator@8727 | 24 ./configure \ |
al@19957 | 25 --prefix=/usr \ |
al@19957 | 26 --mandir=/usr/share/man \ |
al@19957 | 27 $([ $(uname -m) = x86_64 ] && echo --enable-64bit) && |
pankso@16026 | 28 make && |
al@19638 | 29 |
al@19957 | 30 sed -e "s|$SRCDIR/unix|/usr/lib|" \ |
al@19957 | 31 -e "s|$SRCDIR|/usr/include|" \ |
al@19957 | 32 -i tclConfig.sh && |
al@19638 | 33 |
al@19957 | 34 sed -e "s|$SRCDIR/unix/pkgs/tdbc1.0.5|/usr/lib/tdbc1.0.5|" \ |
al@19957 | 35 -e "s|$SRCDIR/pkgs/tdbc1.0.5/generic|/usr/include|" \ |
al@19957 | 36 -e "s|$SRCDIR/pkgs/tdbc1.0.5/library|/usr/lib/tcl8.6|" \ |
al@19957 | 37 -e "s|$SRCDIR/pkgs/tdbc1.0.5|/usr/include|" \ |
al@19957 | 38 -i pkgs/tdbc1.0.5/tdbcConfig.sh && |
al@19638 | 39 |
al@19957 | 40 sed -e "s|$SRCDIR/unix/pkgs/itcl4.1.0|/usr/lib/itcl4.1.0|" \ |
al@19957 | 41 -e "s|$SRCDIR/pkgs/itcl4.1.0/generic|/usr/include|" \ |
al@19957 | 42 -e "s|$SRCDIR/pkgs/itcl4.1.0|/usr/include|" \ |
al@19957 | 43 -i pkgs/itcl4.1.0/itclConfig.sh && |
al@19638 | 44 |
al@19957 | 45 unset SRCDIR |
al@19638 | 46 |
al@19638 | 47 make install && |
al@19957 | 48 make install-private-headers && |
al@19957 | 49 ln -v -sf tclsh${VERSION:0:3} $install/usr/bin/tclsh && |
al@19957 | 50 chmod -v 755 $install/usr/lib/libtcl${VERSION:0:3}.so && |
al@19957 | 51 find $install -name '*.sh' -exec chmod -v 755 '{}' \; |
erjo@507 | 52 } |
erjo@507 | 53 |
erjo@507 | 54 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19957 | 55 genpkg_rules() { |
al@19957 | 56 case $PACKAGE in |
al@19957 | 57 tcl) |
al@19957 | 58 copy @std |
al@19957 | 59 find $fs -name '*Config.sh' -delete |
al@19957 | 60 DEPENDS="zlib" |
al@19957 | 61 TAGS="language programming" |
al@19957 | 62 ;; |
al@19957 | 63 *-dev) |
al@19957 | 64 copy @dev *Config.sh |
al@19957 | 65 DEPENDS="tcl zlib-dev" |
al@19957 | 66 ;; |
al@19957 | 67 esac |
erjo@507 | 68 } |