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-01-21 15:00:12 +01:00
|
|
|
TERMUX_PKG_LICENSE="BSD"
|
2016-04-18 06:36:29 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libsqlite"
|
2018-11-18 00:41:22 +01:00
|
|
|
TERMUX_PKG_VERSION=8.6.9
|
2019-01-16 22:42:38 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2018-11-18 00:41:22 +01:00
|
|
|
TERMUX_PKG_SHA256=ad0cd2de2c87b9ba8086b43957a0de3eb2eb565c7159d5f53ccbba3feb915f4e
|
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
|
|
|
|
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
|
|
|
|
"
|
2019-01-16 22:42:38 +01:00
|
|
|
TERMUX_PKG_KEEP_STATIC_LIBRARIES=yes
|
|
|
|
TERMUX_PKG_INCLUDE_IN_DEVPACKAGE="lib/*.a lib/itcl*/*.a lib/tdbc*/libtdbcstub*.a"
|
2015-08-30 23:48:15 +02:00
|
|
|
|
|
|
|
termux_step_pre_configure () {
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
# Hack to use system libsqlite (https://www.sqlite.org/howtocompile.html#tcl)
|
|
|
|
# since --with-system-sqlite fails to build:
|
|
|
|
local NEW_LIBDIR=$TERMUX_PREFIX/lib/tcl$_MAJOR_VERSION/sqlite
|
|
|
|
mkdir -p $NEW_LIBDIR
|
|
|
|
$CC $CFLAGS $CPPFLAGS $LDFLAGS \
|
|
|
|
-DUSE_SYSTEM_SQLITE=1 \
|
|
|
|
-o $NEW_LIBDIR/libtclsqlite3.so \
|
|
|
|
-shared \
|
2017-08-17 05:55:28 +02:00
|
|
|
$TERMUX_PREFIX/src/libsqlite/tclsqlite3.c \
|
2016-08-30 23:21:31 +02:00
|
|
|
-ltcl$_MAJOR_VERSION -lsqlite3
|
|
|
|
local LIBSQLITE_VERSION=`$PKG_CONFIG --modversion sqlite3`
|
|
|
|
echo "package ifneeded sqlite3 $LIBSQLITE_VERSION [list load [file join \$dir libtclsqlite3.so] Sqlite3]" > \
|
|
|
|
$NEW_LIBDIR/pkgIndex.tcl
|
2015-08-30 23:48:15 +02:00
|
|
|
}
|