wok-next view tk/receipt @ rev 20557
Remove *.la files.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 07 16:01:14 2018 +0300 (2018-04-07) |
parents | 0a667524ce79 |
children | 1ff723a6455b |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tk"
4 VERSION="8.6.7"
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 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/tk.html"
12 TARBALL="$PACKAGE$VERSION-src.tar.gz"
13 WGET_URL="$SF_MIRROR/tcl/$TARBALL"
15 BUILD_DEPENDS="tcl-dev xorg-libX11-dev"
16 SPLIT="tk-dev"
18 compile_rules() {
19 case $ARCH in
20 x86_64) ARCH_ARGS='--enable-64bit';;
21 *) ARCH_ARGS='';;
22 esac
24 cd unix
25 ./configure \
26 --prefix=/usr \
27 --mandir=/usr/share/man \
28 $ARCH_ARGS &&
29 make &&
30 sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
31 -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
32 -i tkConfig.sh &&
33 make install &&
34 make install-private-headers || return 1
36 ln -v -sf wish${VERSION:0:3} $install/usr/bin/wish
37 chmod -v 755 $install/usr/lib/libtk${VERSION:0:3}.so
38 find $install -name '*.sh' -exec chmod -v 755 '{}' \;
39 }
41 genpkg_rules() {
42 case $PACKAGE in
43 tk)
44 copy @std
45 find $fs -name '*Config.sh' -delete
46 DEPENDS="tcl xorg-libX11 zlib"
47 TAGS="programming language"
48 ;;
49 *-dev)
50 copy @dev *Config.sh
51 DEPENDS="tk tcl-dev xorg-libX11-dev"
52 ;;
53 esac
54 }