SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "tk"

# SliTaz package receipt.

PACKAGE="tk"
VERSION="8.6.12"
CATEGORY="development"
TAGS="programming language"
SHORT_DESC="The TCL gui toolkit."
MAINTAINER="erjo@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://www.tcl.tk/"

TARBALL="${PACKAGE}${VERSION}-src.tar.gz"
WGET_URL="$SF_MIRROR/tcl/$TARBALL"

DEPENDS="expat fontconfig freetype tcl xorg-libX11 xorg-libXau xorg-libXdmcp \
    xorg-libXft xorg-libXrender xorg-libXss zlib"
BUILD_DEPENDS="tcl-dev xorg-libX11-dev"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/tcl/files/Tcl/ 2>/dev/null | \
    sed '/scope="row/!d;/unstable/d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/Tcl/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    case "$ARCH" in
        arm*)
            ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib"
            export tcl_cv_strtod_buggy=1
            export ac_cv_func_strtod=yes ;;
    esac

    cd $src/unix &&
    ./configure            \
        --prefix=/usr        \
        --enable-threads    \
        --enable-shared        \
        $ARCH_ARGS        \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib

    cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/lib/*.so*        $fs/usr/lib
    cp -a $install/usr/lib/tk${VERSION:0:3}    $fs/usr/lib

    cd $fs/usr/bin
    ln -s wish${VERSION:0:3} wish
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)