wok-next annotate 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
rev   line source
erjo@1871 1 # SliTaz package receipt.
erjo@1871 2
erjo@1871 3 PACKAGE="tk"
al@19638 4 VERSION="8.6.6"
erjo@1871 5 CATEGORY="development"
erjo@1871 6 SHORT_DESC="The TCL gui toolkit"
erjo@1871 7 MAINTAINER="erjo@slitaz.org"
pascal@15600 8 LICENSE="BSD"
erjo@1871 9 WEB_SITE="http://tcl.sourceforge.net/"
jozee@4973 10 TAGS="programming language"
pankso@16493 11 HOST_ARCH="i486 arm"
erjo@1871 12
al@19582 13 TARBALL="$PACKAGE$VERSION-src.tar.gz"
al@19582 14 WGET_URL="$SF_MIRROR/tcl/$TARBALL"
al@19582 15
pascal@15600 16 DEPENDS="tcl expat fontconfig freetype xorg-libX11 xorg-libXau xorg-libXdmcp \
al@19638 17 xorg-libXft xorg-libXrender zlib xorg-libXScrnSaver"
pascal@15600 18 BUILD_DEPENDS="tcl-dev xorg-libX11-dev"
pascal@15600 19
erjo@1871 20 # Rules to configure and make the package.
erjo@1871 21 compile_rules()
erjo@1871 22 {
pankso@16493 23 case "$ARCH" in
pascal@19115 24 arm*)
pascal@19115 25 ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib"
pankso@16493 26 export tcl_cv_strtod_buggy=1
pankso@16493 27 export ac_cv_func_strtod=yes ;;
pankso@16493 28 esac
al@19638 29
slaxemulator@8751 30 cd $src/unix
pankso@16493 31 ./configure \
pankso@16493 32 --enable-threads \
pankso@16493 33 --enable-shared \
pascal@19115 34 $ARCH_ARGS ${CONFIGURE_ARGS} &&
erjo@1871 35 make &&
al@19638 36
al@19638 37 sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
al@19638 38 -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
al@19638 39 -i tkConfig.sh &&
al@19638 40
slaxemulator@8751 41 make DESTDIR=$DESTDIR install
erjo@1871 42 }
erjo@1871 43
erjo@1871 44 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1871 45 genpkg_rules()
erjo@1871 46 {
erjo@1871 47 mkdir -p $fs/usr/lib
slaxemulator@10998 48 cp -a $install/usr/bin $fs/usr
slaxemulator@10998 49 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@10998 50 cp -a $install/usr/lib/tk${VERSION:0:3} $fs/usr/lib
al@19638 51
al@19638 52 ln -s wish${VERSION:0:3} $fs/usr/bin/wish
erjo@1871 53 }