1SUMMARY="The Tk Standard Library"
2DESCRIPTION="Welcome to the tklib, the Tk Standard Library. This package is intended to be a \
3collection of Tcl packages that provide utility functions useful to a large collection of Tcl \
4programmers."
5HOMEPAGE="http://core.tcl.tk/tklib/"
6COPYRIGHT="Ajuba Solutions and other parties"
7LICENSE="TCL"
8REVISION="1"
9SOURCE_URI="https://core.tcl-lang.org/tklib/raw/tklib-$portVersion.tar.bz2?name=7832035fb9249dce"
10CHECKSUM_SHA256="5a1283a1056350c7cb89fba4af1e83ed2dbfc2e310c5303013faae0b563e5ece"
11
12ARCHITECTURES="all !x86_gcc2"
13SECONDARY_ARCHITECTURES="x86"
14
15commandBinDir=$binDir
16commandSuffix=$secondaryArchSuffix
17if [ "$targetArchitecture" = x86_gcc2 ]; then
18	commandSuffix=
19	commandBinDir=$prefix/bin
20fi
21
22PROVIDES="
23	tklib$secondaryArchSuffix = $portVersion
24	cmd:bitmap_editor$commandSuffix
25	cmd:diagram_viewer$commandSuffix
26	"
27REQUIRES="
28	haiku$secondaryArchSuffix
29	tk$secondaryArchSuffix
30	tcllib$secondaryArchSuffix
31	"
32
33BUILD_REQUIRES="
34	haiku${secondaryArchSuffix}_devel
35	"
36BUILD_PREREQUIRES="
37	cmd:awk
38	cmd:gcc$secondaryArchSuffix
39	cmd:make
40	cmd:tclsh8.6
41	"
42
43TEST_REQUIRES="
44	tk$secondaryArchSuffix
45	tcllib$secondaryArchSuffix
46	"
47
48BUILD()
49{
50	runConfigure --omit-dirs "binDir dataRootDir" \
51		./configure --bindir=$commandBinDir
52}
53
54INSTALL()
55{
56	make install
57}
58
59TEST()
60{
61	make check
62}
63