contrib/tcl/Pkgfile

52 lines
1.5 KiB
Plaintext
Raw Normal View History

2015-05-23 14:35:15 +10:00
# Description: The Tcl scripting language.
2020-06-07 22:09:41 +10:00
# URL: https://www.tcl.tk/
2014-11-10 23:28:07 +11:00
# Maintainer: Danny Rawlins, crux at romster dot me
2007-04-30 16:26:18 +10:00
name=tcl
2021-01-09 17:27:18 +11:00
version=8.6.11
2011-01-14 02:38:36 +11:00
release=1
2020-06-07 22:09:41 +10:00
source=(https://downloads.sourceforge.net/project/$name/Tcl/$version/$name$version-src.tar.gz)
2007-04-30 16:26:18 +10:00
build() {
2008-07-01 20:02:11 +10:00
cd $name$version/unix
2007-12-22 14:37:50 +11:00
2015-05-23 14:35:15 +10:00
./configure \
--prefix=/usr \
2016-08-07 17:09:46 +10:00
--mandir=/usr/share/man \
2020-06-07 22:09:41 +10:00
--enable-threads \
2015-05-23 14:35:15 +10:00
--enable-64bit
2007-04-30 16:26:18 +10:00
make
2015-05-23 14:35:15 +10:00
make INSTALL_ROOT=$PKG install install-private-headers
2007-04-30 16:26:18 +10:00
2010-12-07 13:02:58 +11: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 16:26:18 +10:00
2008-07-25 17:39:58 +10:00
ln -s tclsh${version%.*} $PKG/usr/bin/tclsh
ln -s libtcl${version%.*}.so $PKG/usr/lib/libtcl.so
2010-12-07 13:02:58 +11:00
ln -s libtclstub${version%.*}.a $PKG/usr/lib/libtclstub.a
2015-05-23 14:35:15 +10: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
2021-01-09 17:27:18 +11:00
local tdbcver=tdbc1.1.2
2015-05-23 14:35:15 +10: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
2021-01-09 17:27:18 +11:00
local itclver=itcl4.2.1
2015-05-23 14:35:15 +10: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 16:26:18 +10:00
}