35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
# Description: A portable scripting environment for Unix, Windows, and Macintosh.
|
|
# URL: http://tcl.sourceforge.net/
|
|
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
|
# Packager: Sven Dahl, dahl at c64 dot org
|
|
|
|
name=tcl
|
|
version=8.5.8
|
|
release=2
|
|
source=(http://downloads.sourceforge.net/project/$name/Tcl/$version/$name$version-src.tar.gz)
|
|
|
|
build() {
|
|
cd $name$version/unix
|
|
|
|
./configure --prefix=/usr
|
|
make
|
|
make install install-private-headers INSTALL_ROOT=$PKG
|
|
|
|
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
|
|
|
|
sed -i \
|
|
-e "s|^TCL_BUILD_LIB_SPEC='-L.*/unix|TCL_BUILD_LIB_SPEC='-L/usr/lib|" \
|
|
-e "s|^TCL_SRC_DIR='.*'|TCL_SRC_DIR='/usr/include/tcl'|" \
|
|
-e "s|^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix|TCL_BUILD_STUB_LIB_SPEC='-L/usr/lib|" \
|
|
-e "s|^TCL_BUILD_STUB_LIB_PATH='.*/unix|TCL_BUILD_STUB_LIB_PATH='/usr/lib|" \
|
|
$PKG/usr/lib/tclConfig.sh
|
|
|
|
ln -s tclsh${version%.*} $PKG/usr/bin/tclsh
|
|
ln -s libtcl${version%.*}.so $PKG/usr/lib/libtcl.so
|
|
ln -s libtclstub${version%.*}.a $PKG/usr/lib/libtclstub.a
|
|
chmod -R u+w $PKG/usr/man
|
|
}
|