milis/talimatname/genel/t/tcl/talimat

41 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-04-18 12:55:16 +02:00
# Description: Tcl betik dili
2016-02-24 01:27:23 +01:00
# URL: http://www.tcl.tk/
2016-05-15 22:49:23 +02:00
# Packager: milisarge
2016-02-24 01:27:23 +01:00
# Depends on:
name=tcl
version=8.6.4
release=1
source=( http://downloads.sourceforge.net/$name/$name$version-src.tar.gz)
build() {
# build package
cd $name$version/unix
if [ "$CARCH" = "x86_64" ]; then
./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --enable-64bit
else
./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --disable-64bit
fi
make
sed -e "s#$SRCDIR/unix#/usr/lib#" \
-e "s#$SRCDIR#/usr/include#" \
-i tclConfig.sh
sed -e "s#$SRCDIR/unix/pkgs/tdbc1.0.3#/usr/lib/tdbc1.0.3#" \
-e "s#$SRCDIR/pkgs/tdbc1.0.3/generic#/usr/include#" \
-e "s#$SRCDIR/pkgs/tdbc1.0.3/library#/usr/lib/tcl8.6#" \
-e "s#$SRCDIR/pkgs/tdbc1.0.3#/usr/include#" \
-i pkgs/tdbc1.0.3/tdbcConfig.sh
sed -e "s#$SRCDIR/unix/pkgs/itcl4.0.3#/usr/lib/itcl4.0.3#" \
-e "s#$SRCDIR/pkgs/itcl4.0.3/generic#/usr/include#" \
-e "s#$SRCDIR/pkgs/itcl4.0.3#/usr/include#" \
-i pkgs/itcl4.0.3/itclConfig.sh
unset SRCDIR
make DESTDIR=$PKG install
make DESTDIR=$PKG install-private-headers
ln -svf tclsh8.6 $PKG/usr/bin/tclsh
chmod -v 755 $PKG/usr/lib/libtcl8.6.so
}