wok-current annotate tk/receipt @ rev 25044

*/stuff/bootloader.S: fix VCPI case
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 02 15:48:36 2022 +0000 (2022-06-02)
parents a990d22836c7
children d310bf389e06
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
pascal@24340 21 # What is the latest version available today?
pascal@24340 22 current_version()
pascal@24340 23 {
pascal@24340 24 wget -O - https://sourceforge.net/projects/tcl/files/Tcl/ 2>/dev/null | \
pascal@24340 25 sed '/scope="row/!d;/unstable/d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24340 26 sed '/scope="row/!d;s|.*/Tcl/||;s|/.*||;q'
pascal@24340 27 }
pascal@24340 28
erjo@1871 29 # Rules to configure and make the package.
erjo@1871 30 compile_rules()
erjo@1871 31 {
pankso@16493 32 case "$ARCH" in
pascal@19115 33 arm*)
pascal@19115 34 ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib"
pankso@16493 35 export tcl_cv_strtod_buggy=1
pankso@16493 36 export ac_cv_func_strtod=yes ;;
pankso@16493 37 esac
Hans-G?nter@22037 38
Hans-G?nter@23701 39 cd $src/unix &&
Hans-G?nter@22037 40 ./configure \
Hans-G?nter@22037 41 --prefix=/usr \
Hans-G?nter@22037 42 --enable-threads \
Hans-G?nter@22037 43 --enable-shared \
Hans-G?nter@23701 44 $ARCH_ARGS \
Hans-G?nter@23701 45 ${CONFIGURE_ARGS} &&
erjo@1871 46 make &&
slaxemulator@8751 47 make DESTDIR=$DESTDIR install
erjo@1871 48 }
erjo@1871 49
erjo@1871 50 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1871 51 genpkg_rules()
erjo@1871 52 {
erjo@1871 53 mkdir -p $fs/usr/lib
Hans-G?nter@22037 54
Hans-G?nter@23701 55 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23701 56 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@23701 57 cp -a $install/usr/lib/tk${VERSION:0:3} $fs/usr/lib
Hans-G?nter@22037 58
erjo@1871 59 cd $fs/usr/bin
slaxemulator@10998 60 ln -s wish${VERSION:0:3} wish
erjo@1871 61 }