summaryrefslogtreecommitdiff
path: root/repo/core/tcl.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-13 19:49:37 +0000
committerdavidovski <david@davidovski.xyz>2022-01-13 19:49:37 +0000
commit2e534f6dcdbca6700bc18354925986b054330725 (patch)
tree39e6233e6e0c9fb737ce5c1987039c3a10df193c /repo/core/tcl.xibuild
parent31741d5c284261ef59b0ce8839b47ff44a2f6bf7 (diff)
fixed issues with headers
cleaned other packages to fit better with lfs
Diffstat (limited to 'repo/core/tcl.xibuild')
-rw-r--r--repo/core/tcl.xibuild24
1 files changed, 22 insertions, 2 deletions
diff --git a/repo/core/tcl.xibuild b/repo/core/tcl.xibuild
index f7f1c57..f9bebaa 100644
--- a/repo/core/tcl.xibuild
+++ b/repo/core/tcl.xibuild
@@ -11,16 +11,36 @@ build () {
cd unix
./configure --prefix=/usr --mandir=/usr/share/man $([ "$(uname -m)" = x86_64 ] && echo --enable-64bit)
+ make
+
+ sed -e "s|$SRCDIR/unix|/usr/lib|" \
+ -e "s|$SRCDIR|/usr/include|" \
+ -i tclConfig.sh
+
+ sed -e "s|$SRCDIR/unix/pkgs/tdbc1.1.2|/usr/lib/tdbc1.1.2|" \
+ -e "s|$SRCDIR/pkgs/tdbc1.1.2/generic|/usr/include|" \
+ -e "s|$SRCDIR/pkgs/tdbc1.1.2/library|/usr/lib/tcl8.6|" \
+ -e "s|$SRCDIR/pkgs/tdbc1.1.2|/usr/include|" \
+ -i pkgs/tdbc1.1.2/tdbcConfig.sh
+
+ sed -e "s|$SRCDIR/unix/pkgs/itcl4.2.1|/usr/lib/itcl4.2.1|" \
+ -e "s|$SRCDIR/pkgs/itcl4.2.1/generic|/usr/include|" \
+ -e "s|$SRCDIR/pkgs/itcl4.2.1|/usr/include|" \
+ -i pkgs/itcl4.2.1/itclConfig.sh
+
+ unset SRCDIR
+
make test
+}
+
+package () {
make DESTDIR=$PKG_DEST install
chmod -v u+w $PKG_DEST/usr/lib/libtcl8.6.so
make DESTDIR=$PKG_DEST install-private-headers
-}
-package () {
ln $PKG_DEST/usr/bin/tclsh* $PKG_DEST/usr/bin/tclsh
cp -f tclsh9 $PKG_DEST/usr/bin/tclsh
mv $PKG_DEST/usr/share/man/man3/{Thread,Tcl_Thread}.3