0
0
Fork 0
haikuports/dev-lang/tcl/tcl-8.6.11.recipe

90 lines
2.0 KiB
Bash
Raw Permalink Normal View History

2014-01-02 21:40:56 +00:00
SUMMARY="A very powerful but easy to learn dynamic programming language"
2013-10-16 22:16:26 +00:00
DESCRIPTION="
2014-01-02 21:40:56 +00:00
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 \
2016-02-26 15:33:51 +00:00
is truly cross platform, easily deployed and highly extensible."
HOMEPAGE="http://www.tcl.tk"
2020-04-11 19:14:10 +00:00
COPYRIGHT="Regents of the University of California, Sun Microsystems, Inc., Scriptics Corporation, and other parties"
2016-02-17 19:26:37 +00:00
LICENSE="BSD (2-clause)"
2021-04-02 17:04:02 +00:00
REVISION="1"
SOURCE_URI="https://sourceforge.net/projects/tcl/files/Tcl/$portVersion/tcl$portVersion-src.tar.gz"
CHECKSUM_SHA256="8c0486668586672c5693d7d95817cb05a18c5ecca2f40e2836b9578064088258"
2020-04-11 19:14:10 +00:00
SOURCE_DIR="tcl$portVersion"
PATCHES="tcl-$portVersion.patchset"
2013-10-16 22:16:26 +00:00
ARCHITECTURES="all"
2016-02-17 19:26:37 +00:00
2013-10-16 22:16:26 +00:00
PROVIDES="
2020-04-11 19:14:10 +00:00
tcl = $portVersion compat >= 8.6
cmd:tclsh = $portVersion compat >= 8.6
cmd:tclsh8.6 = $portVersion compat >= 8.6
lib:libtcl8.6 = $portVersion compat >= 8.6
2013-10-16 22:16:26 +00:00
"
REQUIRES="
haiku
2020-04-11 19:14:10 +00:00
lib:libsqlite3
2013-10-16 22:16:26 +00:00
"
2016-02-17 19:26:37 +00:00
PROVIDES_devel="
tcl_devel = $portVersion
2020-04-11 19:14:10 +00:00
devel:libtclstub8.6 = $portVersion
2016-02-17 19:26:37 +00:00
"
REQUIRES_devel="
tcl == $portVersion
"
2013-10-16 22:16:26 +00:00
BUILD_REQUIRES="
2020-04-11 19:14:10 +00:00
devel:libsqlite3
2016-02-29 01:17:42 +00:00
"
2013-10-16 22:16:26 +00:00
BUILD_PREREQUIRES="
haiku_devel
2013-10-16 22:16:26 +00:00
cmd:autoconf
2018-08-08 14:18:18 +00:00
cmd:find
2013-10-16 22:16:26 +00:00
cmd:gcc
2018-08-08 14:18:18 +00:00
cmd:grep
2013-10-16 22:16:26 +00:00
cmd:ld
2018-08-08 14:18:18 +00:00
cmd:make
2013-10-16 22:16:26 +00:00
cmd:sed
"
2020-04-11 19:14:10 +00:00
defineDebugInfoPackage tcl \
"$libDir"/libtcl8.6.so
BUILD()
{
export CFLAGS="-USQLITE_API -USQLITE_EXTERN"
2013-10-16 22:16:26 +00:00
cd unix
2013-03-29 14:04:07 +00:00
autoconf -f
2013-10-16 22:16:26 +00:00
runConfigure ./configure \
2020-04-11 19:14:10 +00:00
--enable-man-symlinks \
--with-system-sqlite
2013-03-29 14:04:07 +00:00
make
}
INSTALL()
{
2013-10-16 22:16:26 +00:00
cd unix
2020-04-11 19:14:10 +00:00
make install install-private-headers
ln -s tclsh8.6 "${binDir}/tclsh"
sed -i -e "s#${sourceDir}/unix#${developLibDir}#" \
-e "s#${sourceDir}#${includeDir}#" \
${libDir}/tclConfig.sh
2013-10-16 22:16:26 +00:00
2020-04-11 19:14:10 +00:00
rm $binDir/sqlite3_analyzer
2013-10-16 22:16:26 +00:00
2020-04-11 19:14:10 +00:00
prepareInstalledDevelLibs libtclstub8.6
fixPkgconfig
mv $libDir/tclConfig.sh $developLibDir
2013-10-16 22:16:26 +00:00
packageEntries devel $developDir
2013-03-29 14:04:07 +00:00
}
TEST()
{
2013-10-16 22:16:26 +00:00
cd unix
2013-03-29 14:04:07 +00:00
make test
}