2015-05-23 06:35:15 +02:00
|
|
|
# Description: The Tcl scripting language.
|
2020-06-07 14:09:41 +02:00
|
|
|
# URL: https://www.tcl.tk/
|
2014-11-10 13:28:07 +01:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2007-04-30 08:26:18 +02:00
|
|
|
|
|
|
|
name=tcl
|
2020-06-07 14:09:41 +02:00
|
|
|
version=8.6.10
|
2011-01-13 16:38:36 +01:00
|
|
|
release=1
|
2020-06-07 14:09:41 +02:00
|
|
|
source=(https://downloads.sourceforge.net/project/$name/Tcl/$version/$name$version-src.tar.gz)
|
2007-04-30 08:26:18 +02:00
|
|
|
|
|
|
|
build() {
|
2008-07-01 12:02:11 +02:00
|
|
|
cd $name$version/unix
|
2007-12-22 04:37:50 +01:00
|
|
|
|
2015-05-23 06:35:15 +02:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2016-08-07 09:09:46 +02:00
|
|
|
--mandir=/usr/share/man \
|
2020-06-07 14:09:41 +02:00
|
|
|
--enable-threads \
|
2015-05-23 06:35:15 +02:00
|
|
|
--enable-64bit
|
|
|
|
|
2007-04-30 08:26:18 +02:00
|
|
|
make
|
2015-05-23 06:35:15 +02:00
|
|
|
make INSTALL_ROOT=$PKG install install-private-headers
|
2007-04-30 08:26:18 +02:00
|
|
|
|
2010-12-07 03:02:58 +01:00
|
|
|
install -d $PKG/usr/include/tcl/{generic,unix,compat}
|
|
|
|
cp ../generic/*.h $PKG/usr/include/tcl/generic
|
|
|
|
cp ../unix/*.h $PKG/usr/include/tcl/unix
|
|
|
|
cp ../compat/*.h $PKG/usr/include/tcl/compat
|
2007-04-30 08:26:18 +02:00
|
|
|
|
2008-07-25 09:39:58 +02:00
|
|
|
ln -s tclsh${version%.*} $PKG/usr/bin/tclsh
|
2009-08-18 15:59:21 +02:00
|
|
|
ln -s libtcl${version%.*}.so $PKG/usr/lib/libtcl.so
|
2010-12-07 03:02:58 +01:00
|
|
|
ln -s libtclstub${version%.*}.a $PKG/usr/lib/libtclstub.a
|
2015-05-23 06:35:15 +02:00
|
|
|
|
|
|
|
# remove $SRC traces
|
|
|
|
sed \
|
|
|
|
-e "s|$SRC/tcl$version/unix|/usr/lib|g" \
|
|
|
|
-e "s|$SRC/tcl$version|/usr/include|g" \
|
|
|
|
-i $PKG/usr/lib/tclConfig.sh
|
|
|
|
|
2020-06-07 14:09:41 +02:00
|
|
|
local tdbcver=tdbc1.1.1
|
2015-05-23 06:35:15 +02:00
|
|
|
sed \
|
|
|
|
-e "s|$SRC/tcl$version/unix/pkgs/$tdbcver|/usr/lib/$tdbcver|g" \
|
|
|
|
-e "s|$SRC/tcl$version/pkgs/$tdbcver/generic|/usr/include|g" \
|
|
|
|
-e "s|$SRC/tcl$version/pkgs/$tdbcver/library|/usr/lib/tcl${version%.*}|g" \
|
|
|
|
-e "s|$SRC/tcl$version/pkgs/$tdbcver|/usr/include|g" \
|
|
|
|
-i $PKG/usr/lib/$tdbcver/tdbcConfig.sh
|
|
|
|
|
2020-06-07 14:09:41 +02:00
|
|
|
local itclver=itcl4.2.0
|
2015-05-23 06:35:15 +02:00
|
|
|
sed \
|
|
|
|
-e "s|$SRC/tcl$version/unix/pkgs/$itclver|/usr/lib/$itclver|g" \
|
|
|
|
-e "s|$SRC/tcl$version/pkgs/$itclver/generic|/usr/include|g" \
|
|
|
|
-e "s|$SRC/tcl$version/pkgs/$itclver|/usr/include|g" \
|
|
|
|
-i $PKG/usr/lib/$itclver/itclConfig.sh
|
2007-04-30 08:26:18 +02:00
|
|
|
}
|