wok-next annotate tk/receipt @ rev 21138

gnutls: patch for libidn2-2.1.0
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 24 03:36:19 2019 +0200 (2019-01-24)
parents 13924624fb11
children
rev   line source
al@19957 1 # SliTaz package receipt v2.
erjo@1871 2
erjo@1871 3 PACKAGE="tk"
al@21129 4 VERSION="8.6.9.1"
erjo@1871 5 CATEGORY="development"
al@21129 6 SHORT_DESC="GUI toolkit for Tcl"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15600 8 LICENSE="BSD"
al@21129 9 WEB_SITE="https://www.tcl.tk/"
al@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/tk.html"
erjo@1871 11
al@19582 12 TARBALL="$PACKAGE$VERSION-src.tar.gz"
al@19582 13 WGET_URL="$SF_MIRROR/tcl/$TARBALL"
al@21129 14 TARBALL_SHA1="473019c00461fb55724d1923ed6330d01d9483b8"
al@19582 15
al@21129 16 BUILD_DEPENDS="tcl-dev libx11-dev libxt-dev libxft-dev libxscrnsaver-dev \
al@21129 17 libxext-dev"
al@21129 18 SPLIT="$PACKAGE-dev $PACKAGE-demos $PACKAGE"
al@21129 19
al@21129 20 COPY_dev="@dev *Config.sh"
al@21129 21 COPY_demos="demos/"
al@21129 22
al@21129 23 CAT_demos="development|demo applications"
al@21129 24
al@21129 25 DEPENDS_demos=" "
al@21129 26 DEPENDS_std="fontconfig libx11 libxscrnsaver libxft tcl"
al@21129 27 DEPENDS_dev="$PACKAGE fontconfig-dev libx11-dev libxext-dev libxft-dev \
al@21129 28 libxscrnsaver-dev tcl-dev"
al@21129 29
al@21129 30 TAGS_std="programming language"
pascal@15600 31
al@19957 32 compile_rules() {
al@20443 33 case $ARCH in
al@20443 34 x86_64) ARCH_ARGS='--enable-64bit';;
al@20443 35 *) ARCH_ARGS='';;
al@20443 36 esac
al@20443 37
al@20443 38 cd unix
pankso@16493 39 ./configure \
al@20443 40 $ARCH_ARGS &&
erjo@1871 41 make &&
al@19638 42 sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
al@19957 43 -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
al@19957 44 -i tkConfig.sh &&
al@19957 45 make install &&
al@20443 46 make install-private-headers || return 1
al@20443 47
al@20443 48 ln -v -sf wish${VERSION:0:3} $install/usr/bin/wish
al@20443 49 chmod -v 755 $install/usr/lib/libtk${VERSION:0:3}.so
al@19957 50 find $install -name '*.sh' -exec chmod -v 755 '{}' \;
al@21129 51 find $install/usr/share/man -type f -exec chmod u+w '{}' \; # 444->644
erjo@1871 52 }