mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
The so version is the same as in 8.6.12 therefore the recipe was just renamed. OpenCASCADE's DRAW still runs. Tests don't run successfully. Some tests hang, and one test even crashes with an assertion in free.
108 lines
2.7 KiB
Bash
108 lines
2.7 KiB
Bash
SUMMARY="A very powerful but easy to learn dynamic programming language"
|
|
DESCRIPTION="Tcl (Tool Command Language) is a very powerful but easy to learn dynamic \
|
|
programming language, suitable for a very wide range of uses, including web \
|
|
and desktop applications, networking, administration, testing and many more. \
|
|
Open source and business-friendly, Tcl is a mature yet evolving language that \
|
|
is truly cross platform, easily deployed and highly extensible."
|
|
HOMEPAGE="http://www.tcl.tk"
|
|
COPYRIGHT="Regents of the University of California, Sun Microsystems, Inc., Scriptics Corporation, and other parties"
|
|
LICENSE="TCL"
|
|
REVISION="1"
|
|
SOURCE_URI="https://sourceforge.net/projects/tcl/files/Tcl/$portVersion/tcl$portVersion-src.tar.gz"
|
|
CHECKSUM_SHA256="43a1fae7412f61ff11de2cfd05d28cfc3a73762f354a417c62370a54e2caf066"
|
|
SOURCE_DIR="tcl$portVersion"
|
|
PATCHES="tcl-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
tcl$secondaryArchSuffix = $portVersion compat >= 8.6
|
|
cmd:tclsh$commandSuffix = $portVersion compat >= 8.6
|
|
cmd:tclsh8.6$commandSuffix = $portVersion compat >= 8.6
|
|
lib:libtcl8.6$secondaryArchSuffix = $portVersion compat >= 8.6
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libsqlite3$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
tcl${secondaryArchSuffix}_devel = $portVersion compat >= 8.6
|
|
devel:libtclstub8.6$secondaryArchSuffix = $portVersion compat >= 8.6
|
|
"
|
|
REQUIRES_devel="
|
|
tcl$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libsqlite3$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoconf
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:grep
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
defineDebugInfoPackage tcl$secondaryArchSuffix \
|
|
"$libDir"/libtcl8.6.so
|
|
|
|
BUILD()
|
|
{
|
|
local _64bit="--enable-64bit"
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
_64bit="--disable-64bit"
|
|
fi
|
|
|
|
export CFLAGS="-USQLITE_API -USQLITE_EXTERN"
|
|
cd unix
|
|
autoconf -f
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir \
|
|
--enable-man-symlinks \
|
|
--with-system-sqlite \
|
|
$_64bit
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd unix
|
|
make install install-private-headers
|
|
|
|
ln -s tclsh8.6 "${commandBinDir}/tclsh"
|
|
|
|
sed -i -e "s#${sourceDir}/unix#${developLibDir}#" \
|
|
-e "s#${sourceDir}#${includeDir}#" \
|
|
${libDir}/tclConfig.sh
|
|
|
|
rm $commandBinDir/sqlite3_analyzer
|
|
|
|
prepareInstalledDevelLib libtclstub8.6
|
|
fixPkgconfig
|
|
|
|
mv $libDir/tclConfig.sh $developLibDir
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd unix
|
|
make test
|
|
}
|