wok view tk/receipt @ rev 25767

created recipes for ndpi and ndpi-dev
author Hans-G?nter Theisgen
date Tue Sep 03 14:51:27 2024 +0100 (2 months ago)
parents d310bf389e06
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tk"
4 VERSION="8.6.12"
5 CATEGORY="development"
6 TAGS="programming language"
7 SHORT_DESC="The TCL gui toolkit."
8 MAINTAINER="erjo@slitaz.org"
9 LICENSE="BSD"
10 WEB_SITE="https://www.tcl.tk/"
12 TARBALL="${PACKAGE}${VERSION}-src.tar.gz"
13 WGET_URL="$SF_MIRROR/tcl/$TARBALL"
15 DEPENDS="expat fontconfig freetype tcl xorg-libX11 xorg-libXau xorg-libXdmcp \
16 xorg-libXft xorg-libXrender xorg-libXss zlib"
17 BUILD_DEPENDS="tcl-dev xorg-libX11-dev"
19 HOST_ARCH="i486 arm"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://sourceforge.net/projects/tcl/files/Tcl/ 2>/dev/null | \
25 sed '/scope="row/!d;/unstable/d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
26 sed '/scope="row/!d;s|.*/Tcl/||;s|/.*||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 case "$ARCH" in
33 arm*)
34 ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib"
35 export tcl_cv_strtod_buggy=1
36 export ac_cv_func_strtod=yes ;;
37 esac
39 cd $src/unix &&
40 ./configure \
41 --prefix=/usr \
42 --enable-threads \
43 --enable-shared \
44 $ARCH_ARGS \
45 $CONFIGURE_ARGS &&
46 make &&
47 make install DESTDIR=$DESTDIR
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/lib
55 cp -a $install/usr/bin $fs/usr
56 cp -a $install/usr/lib/*.so* $fs/usr/lib
57 cp -a $install/usr/lib/tk${VERSION:0:3} $fs/usr/lib
59 cd $fs/usr/bin
60 ln -s wish${VERSION:0:3} wish
61 }