wok-next annotate tcl/receipt @ rev 20645
Up libjpeg-turbo (1.5.3), libpng16 (1.6.34), libraw (0.18.7), shared-mime-info (1.9), tree (1.7.0), xapian (1.4.5); add time.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 01 23:19:32 2018 +0300 (2018-05-01) |
parents | 0a667524ce79 |
children | 1ff723a6455b |
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 |
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@19957 | 27 --prefix=/usr \ |
al@19957 | 28 --mandir=/usr/share/man \ |
al@20443 | 29 $ARCH_ARGS && |
al@20443 | 30 make || return 1 |
al@19638 | 31 |
al@20443 | 32 sed -e "s|$src/unix|/usr/lib|" \ |
al@20443 | 33 -e "s|$src|/usr/include|" \ |
al@20443 | 34 -i tclConfig.sh |
al@19638 | 35 |
al@20443 | 36 sed -e "s|$src/unix/pkgs/tdbc1.0.5|/usr/lib/tdbc1.0.5|" \ |
al@20443 | 37 -e "s|$src/pkgs/tdbc1.0.5/generic|/usr/include|" \ |
al@20443 | 38 -e "s|$src/pkgs/tdbc1.0.5/library|/usr/lib/tcl8.6|" \ |
al@20443 | 39 -e "s|$src/pkgs/tdbc1.0.5|/usr/include|" \ |
al@20443 | 40 -i pkgs/tdbc1.0.5/tdbcConfig.sh |
al@19638 | 41 |
al@20443 | 42 sed -e "s|$src/unix/pkgs/itcl4.1.0|/usr/lib/itcl4.1.0|" \ |
al@20443 | 43 -e "s|$src/pkgs/itcl4.1.0/generic|/usr/include|" \ |
al@20443 | 44 -e "s|$src/pkgs/itcl4.1.0|/usr/include|" \ |
al@20443 | 45 -i pkgs/itcl4.1.0/itclConfig.sh |
al@19638 | 46 |
al@19638 | 47 make install && |
al@20443 | 48 make install-private-headers || return 1 |
al@20443 | 49 |
al@20443 | 50 ln -v -sf tclsh${VERSION:0:3} $install/usr/bin/tclsh |
al@20443 | 51 chmod 755 $install/usr/lib/libtcl${VERSION:0:3}.so |
al@20443 | 52 find $install -name '*.sh' -exec chmod 755 '{}' \; |
erjo@507 | 53 } |
erjo@507 | 54 |
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 } |