wok annotate tk/receipt @ rev 17250

libarchive-dev: update genpkg
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 19 12:29:39 2014 +0200 (2014-10-19)
parents de49f29b101e
children 6ce464a0de4b
rev   line source
erjo@1871 1 # SliTaz package receipt.
erjo@1871 2
erjo@1871 3 PACKAGE="tk"
slaxemulator@10998 4 VERSION="8.5.10"
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"
slaxemulator@9365 9 TARBALL="${PACKAGE}${VERSION}-src.tar.gz"
erjo@1871 10 WEB_SITE="http://tcl.sourceforge.net/"
slaxemulator@10998 11 WGET_URL="$SF_MIRROR/tcl/$TARBALL"
jozee@4973 12 TAGS="programming language"
pankso@16493 13 HOST_ARCH="i486 arm"
erjo@1871 14
pascal@15600 15 DEPENDS="tcl expat fontconfig freetype xorg-libX11 xorg-libXau xorg-libXdmcp \
pascal@15600 16 xorg-libXft xorg-libXrender zlib xorg-libXss"
pascal@15600 17 BUILD_DEPENDS="tcl-dev xorg-libX11-dev"
pascal@15600 18
erjo@1871 19 # Rules to configure and make the package.
erjo@1871 20 compile_rules()
erjo@1871 21 {
pankso@16493 22 case "$ARCH" in
pankso@16493 23 arm*)
pankso@16493 24 export tcl_cv_strtod_buggy=1
pankso@16493 25 export ac_cv_func_strtod=yes ;;
pankso@16493 26 esac
slaxemulator@8751 27 cd $src/unix
pankso@16493 28 ./configure \
pankso@16493 29 --prefix=/usr \
pankso@16493 30 --enable-threads \
pankso@16493 31 --enable-shared \
pankso@16493 32 ${CONFIGURE_ARGS} &&
erjo@1871 33 make &&
slaxemulator@8751 34 make DESTDIR=$DESTDIR install
erjo@1871 35 }
erjo@1871 36
erjo@1871 37 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1871 38 genpkg_rules()
erjo@1871 39 {
erjo@1871 40 mkdir -p $fs/usr/lib
slaxemulator@10998 41 cp -a $install/usr/bin $fs/usr
slaxemulator@10998 42 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@10998 43 cp -a $install/usr/lib/tk${VERSION:0:3} $fs/usr/lib
erjo@1871 44
erjo@1871 45 cd $fs/usr/bin
slaxemulator@10998 46 ln -s wish${VERSION:0:3} wish
erjo@1871 47 }