Files
haikuports/dev-tcltk/tklib/tklib-0.7.recipe
2023-02-20 19:21:25 +01:00

63 lines
1.3 KiB
Bash

SUMMARY="The Tk Standard Library"
DESCRIPTION="Welcome to the tklib, the Tk Standard Library. This package is intended to be a \
collection of Tcl packages that provide utility functions useful to a large collection of Tcl \
programmers."
HOMEPAGE="http://core.tcl.tk/tklib/"
COPYRIGHT="Ajuba Solutions and other parties"
LICENSE="TCL"
REVISION="1"
SOURCE_URI="https://core.tcl-lang.org/tklib/raw/tklib-$portVersion.tar.bz2?name=7832035fb9249dce"
CHECKSUM_SHA256="5a1283a1056350c7cb89fba4af1e83ed2dbfc2e310c5303013faae0b563e5ece"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$binDir
commandSuffix=$secondaryArchSuffix
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
tklib$secondaryArchSuffix = $portVersion
cmd:bitmap_editor$commandSuffix
cmd:diagram_viewer$commandSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
tk$secondaryArchSuffix
tcllib$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:tclsh8.6
"
TEST_REQUIRES="
tk$secondaryArchSuffix
tcllib$secondaryArchSuffix
"
BUILD()
{
runConfigure --omit-dirs "binDir dataRootDir" \
./configure --bindir=$commandBinDir
}
INSTALL()
{
make install
}
TEST()
{
make check
}