2015-08-30 23:48:15 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.tcl.tk/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Powerful but easy to learn dynamic programming language"
|
2019-11-17 15:48:18 +01:00
|
|
|
TERMUX_PKG_LICENSE="custom"
|
|
|
|
TERMUX_PKG_LICENSE_FILE="license.terms"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-01-17 21:22:36 +01:00
|
|
|
TERMUX_PKG_VERSION=8.6.11
|
2022-03-21 10:53:43 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2017-09-06 16:18:19 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/tcl/Tcl/${TERMUX_PKG_VERSION}/tcl${TERMUX_PKG_VERSION}-src.tar.gz
|
2021-01-17 21:22:36 +01:00
|
|
|
TERMUX_PKG_SHA256=8c0486668586672c5693d7d95817cb05a18c5ecca2f40e2836b9578064088258
|
|
|
|
TERMUX_PKG_DEPENDS="zlib"
|
2019-08-14 18:13:58 +02:00
|
|
|
TERMUX_PKG_BREAKS="tcl-dev, tcl-static"
|
|
|
|
TERMUX_PKG_REPLACES="tcl-dev, tcl-static"
|
|
|
|
TERMUX_PKG_NO_STATICSPLIT=true
|
|
|
|
|
2017-09-06 16:18:19 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
ac_cv_func_memcmp_working=yes
|
|
|
|
ac_cv_func_memcmp=yes
|
|
|
|
ac_cv_func_strtod=yes
|
|
|
|
ac_cv_func_strtoul=yes
|
|
|
|
tcl_cv_strstr_unbroken=ok
|
|
|
|
tcl_cv_strtod_buggy=ok
|
|
|
|
tcl_cv_strtod_unbroken=ok
|
|
|
|
tcl_cv_strtoul_unbroken=ok
|
|
|
|
--disable-rpath
|
|
|
|
--enable-man-symlinks
|
|
|
|
--mandir=$TERMUX_PREFIX/share/man
|
|
|
|
"
|
2015-08-30 23:48:15 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_pre_configure() {
|
2021-01-17 21:22:36 +01:00
|
|
|
rm -rf $TERMUX_PKG_SRCDIR/pkgs/sqlite3* # libsqlite-tcl is a separate package
|
2015-08-30 23:48:15 +02:00
|
|
|
TERMUX_PKG_SRCDIR=$TERMUX_PKG_SRCDIR/unix
|
2018-05-30 01:08:28 +02:00
|
|
|
CFLAGS+=" -DBIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD"
|
2015-08-30 23:48:15 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_post_make_install() {
|
2017-09-12 19:11:14 +02:00
|
|
|
# expect needs private headers
|
2017-09-12 19:41:22 +02:00
|
|
|
make install-private-headers
|
2017-09-06 16:18:19 +02:00
|
|
|
local _MAJOR_VERSION=${TERMUX_PKG_VERSION:0:3}
|
2015-08-30 23:48:15 +02:00
|
|
|
cd $TERMUX_PREFIX/bin
|
|
|
|
ln -f -s tclsh$_MAJOR_VERSION tclsh
|
2016-08-30 23:21:31 +02:00
|
|
|
|
2019-11-17 16:26:01 +01:00
|
|
|
# Needed to install $TERMUX_PKG_LICENSE_FILE.
|
|
|
|
TERMUX_PKG_SRCDIR=$(dirname "$TERMUX_PKG_SRCDIR")
|
2019-11-24 22:26:09 +01:00
|
|
|
|
|
|
|
#avoid conflict with perl
|
|
|
|
mv $TERMUX_PREFIX/share/man/man3/Thread.3 $TERMUX_PREFIX/share/man/man3/Tcl_Thread.3
|
2015-08-30 23:48:15 +02:00
|
|
|
}
|