wok-next view tk/receipt @ rev 19842

Fix gtk+3; up libgudev, libxkbcommon.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Aug 18 03:02:41 2017 +0300 (2017-08-18)
parents f1752c8b2a2a
children 0a667524ce79
line source
1 # SliTaz package receipt.
3 PACKAGE="tk"
4 VERSION="8.6.6"
5 CATEGORY="development"
6 SHORT_DESC="The TCL gui toolkit"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://tcl.sourceforge.net/"
10 TAGS="programming language"
11 HOST_ARCH="i486 arm"
13 TARBALL="$PACKAGE$VERSION-src.tar.gz"
14 WGET_URL="$SF_MIRROR/tcl/$TARBALL"
16 DEPENDS="tcl expat fontconfig freetype xorg-libX11 xorg-libXau xorg-libXdmcp \
17 xorg-libXft xorg-libXrender zlib xorg-libXScrnSaver"
18 BUILD_DEPENDS="tcl-dev xorg-libX11-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 case "$ARCH" in
24 arm*)
25 ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib"
26 export tcl_cv_strtod_buggy=1
27 export ac_cv_func_strtod=yes ;;
28 esac
30 cd $src/unix
31 ./configure \
32 --enable-threads \
33 --enable-shared \
34 $ARCH_ARGS ${CONFIGURE_ARGS} &&
35 make &&
37 sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
38 -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
39 -i tkConfig.sh &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/lib/*.so* $fs/usr/lib
50 cp -a $install/usr/lib/tk${VERSION:0:3} $fs/usr/lib
52 ln -s wish${VERSION:0:3} $fs/usr/bin/wish
53 }