wok-next annotate tk/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 13924624fb11 |
rev | line source |
---|---|
al@19957 | 1 # SliTaz package receipt v2. |
erjo@1871 | 2 |
erjo@1871 | 3 PACKAGE="tk" |
al@20647 | 4 VERSION="8.6.8" |
erjo@1871 | 5 CATEGORY="development" |
al@20647 | 6 SHORT_DESC="The TCL GUI toolkit" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15600 | 8 LICENSE="BSD" |
erjo@1871 | 9 WEB_SITE="http://tcl.sourceforge.net/" |
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@19582 | 14 |
pascal@15600 | 15 BUILD_DEPENDS="tcl-dev xorg-libX11-dev" |
al@21020 | 16 SPLIT="$PACKAGE-demos $PACKAGE $PACKAGE-dev" |
pascal@15600 | 17 |
al@19957 | 18 compile_rules() { |
al@20443 | 19 case $ARCH in |
al@20443 | 20 x86_64) ARCH_ARGS='--enable-64bit';; |
al@20443 | 21 *) ARCH_ARGS='';; |
al@20443 | 22 esac |
al@20443 | 23 |
al@20443 | 24 cd unix |
pankso@16493 | 25 ./configure \ |
al@20443 | 26 $ARCH_ARGS && |
erjo@1871 | 27 make && |
al@19638 | 28 sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \ |
al@19957 | 29 -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \ |
al@19957 | 30 -i tkConfig.sh && |
al@19957 | 31 make install && |
al@20443 | 32 make install-private-headers || return 1 |
al@20443 | 33 |
al@20443 | 34 ln -v -sf wish${VERSION:0:3} $install/usr/bin/wish |
al@20443 | 35 chmod -v 755 $install/usr/lib/libtk${VERSION:0:3}.so |
al@19957 | 36 find $install -name '*.sh' -exec chmod -v 755 '{}' \; |
erjo@1871 | 37 } |
erjo@1871 | 38 |
al@19957 | 39 genpkg_rules() { |
al@19957 | 40 case $PACKAGE in |
al@20647 | 41 tk-demos) |
al@20647 | 42 copy demos/ |
al@20647 | 43 CAT="development|demo applications" |
al@21020 | 44 DEPENDS=" " |
al@20647 | 45 ;; |
al@19957 | 46 tk) |
al@20647 | 47 copy @std @rm |
al@19957 | 48 find $fs -name '*Config.sh' -delete |
al@20647 | 49 DEPENDS="tcl xorg-libX11" |
al@19957 | 50 TAGS="programming language" |
al@19957 | 51 ;; |
al@19957 | 52 *-dev) |
al@19957 | 53 copy @dev *Config.sh |
al@20647 | 54 DEPENDS="tk xorg-libX11-dev" |
al@19957 | 55 ;; |
al@19957 | 56 esac |
erjo@1871 | 57 } |