wok annotate tk/receipt @ rev 24101

lrzip: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 16 16:33:44 2021 +0000 (2021-09-16)
parents b8ddcdf440e4
children 5f6c5106b1f5
rev   line source
erjo@1871 1 # SliTaz package receipt.
erjo@1871 2
erjo@1871 3 PACKAGE="tk"
Hans-G?nter@23701 4 VERSION="8.6.10"
erjo@1871 5 CATEGORY="development"
Hans-G?nter@22037 6 TAGS="programming language"
Hans-G?nter@22037 7 SHORT_DESC="The TCL gui toolkit."
erjo@1871 8 MAINTAINER="erjo@slitaz.org"
pascal@15600 9 LICENSE="BSD"
Hans-G?nter@23701 10 WEB_SITE="https://www.tcl.tk/"
Hans-G?nter@22037 11
slaxemulator@9365 12 TARBALL="${PACKAGE}${VERSION}-src.tar.gz"
slaxemulator@10998 13 WGET_URL="$SF_MIRROR/tcl/$TARBALL"
Hans-G?nter@22037 14
Hans-G?nter@22037 15 DEPENDS="expat fontconfig freetype tcl xorg-libX11 xorg-libXau xorg-libXdmcp \
Hans-G?nter@22037 16 xorg-libXft xorg-libXrender xorg-libXss zlib"
Hans-G?nter@22037 17 BUILD_DEPENDS="tcl-dev xorg-libX11-dev"
Hans-G?nter@22037 18
pankso@16493 19 HOST_ARCH="i486 arm"
erjo@1871 20
erjo@1871 21 # Rules to configure and make the package.
erjo@1871 22 compile_rules()
erjo@1871 23 {
pankso@16493 24 case "$ARCH" in
pascal@19115 25 arm*)
pascal@19115 26 ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib"
pankso@16493 27 export tcl_cv_strtod_buggy=1
pankso@16493 28 export ac_cv_func_strtod=yes ;;
pankso@16493 29 esac
Hans-G?nter@22037 30
Hans-G?nter@23701 31 cd $src/unix &&
Hans-G?nter@22037 32 ./configure \
Hans-G?nter@22037 33 --prefix=/usr \
Hans-G?nter@22037 34 --enable-threads \
Hans-G?nter@22037 35 --enable-shared \
Hans-G?nter@23701 36 $ARCH_ARGS \
Hans-G?nter@23701 37 ${CONFIGURE_ARGS} &&
erjo@1871 38 make &&
slaxemulator@8751 39 make DESTDIR=$DESTDIR install
erjo@1871 40 }
erjo@1871 41
erjo@1871 42 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1871 43 genpkg_rules()
erjo@1871 44 {
erjo@1871 45 mkdir -p $fs/usr/lib
Hans-G?nter@22037 46
Hans-G?nter@23701 47 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23701 48 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@23701 49 cp -a $install/usr/lib/tk${VERSION:0:3} $fs/usr/lib
Hans-G?nter@22037 50
erjo@1871 51 cd $fs/usr/bin
slaxemulator@10998 52 ln -s wish${VERSION:0:3} wish
erjo@1871 53 }