wok-next annotate tcl/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents 1ff723a6455b
children d5aab818505e
rev   line source
al@19957 1 # SliTaz package receipt v2.
erjo@507 2
erjo@507 3 PACKAGE="tcl"
al@20647 4 VERSION="8.6.8"
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@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/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
al@19957 18 compile_rules() {
al@20443 19 case "$ARCH" in
al@20443 20 x86_64) ARCH_ARGS='--enable-64bit';;
al@20443 21 *) ARCH_ARGS='';;
al@20443 22 esac
al@19638 23
al@20443 24 cd unix
al@19957 25
slaxemulator@8727 26 ./configure \
al@20443 27 $ARCH_ARGS &&
al@20443 28 make || return 1
al@19638 29
al@20443 30 sed -e "s|$src/unix|/usr/lib|" \
al@20443 31 -e "s|$src|/usr/include|" \
al@20443 32 -i tclConfig.sh
al@19638 33
al@20647 34 i=$(basename pkgs/tdbc[0-9.]*)
al@20647 35 sed -e "s|$src/unix/pkgs/$i|/usr/lib/$i|" \
al@20647 36 -e "s|$src/pkgs/$i/generic|/usr/include|" \
al@20647 37 -e "s|$src/pkgs/$i/library|/usr/lib/tcl${VERSION%.*}|" \
al@20647 38 -e "s|$src/pkgs/$i|/usr/include|" \
al@20647 39 -i pkgs/$i/tdbcConfig.sh
al@19638 40
al@20647 41 i=$(basename pkgs/itcl*)
al@20647 42 sed -e "s|$src/unix/pkgs/$i|/usr/lib/$i|" \
al@20647 43 -e "s|$src/pkgs/$i/generic|/usr/include|" \
al@20647 44 -e "s|$src/pkgs/$i|/usr/include|" \
al@20647 45 -i pkgs/$i/itclConfig.sh
al@19638 46
al@19638 47 make install &&
al@20443 48 make install-private-headers || return 1
al@20443 49
al@20647 50 ln -v -sf tclsh${VERSION%.*} $install/usr/bin/tclsh
al@20647 51
al@20647 52 find $install -type f -perm 444 -exec chmod 644 '{}' \;
al@20647 53 find $install -name '*.so' -exec chmod 755 '{}' \;
al@20443 54 find $install -name '*.sh' -exec chmod 755 '{}' \;
erjo@507 55 }
erjo@507 56
al@19957 57 genpkg_rules() {
al@19957 58 case $PACKAGE in
al@19957 59 tcl)
al@19957 60 copy @std
al@19957 61 find $fs -name '*Config.sh' -delete
al@19957 62 DEPENDS="zlib"
al@19957 63 TAGS="language programming"
al@19957 64 ;;
al@19957 65 *-dev)
al@19957 66 copy @dev *Config.sh
al@19957 67 DEPENDS="tcl zlib-dev"
al@19957 68 ;;
al@19957 69 esac
erjo@507 70 }