forked from ports/contrib
30 lines
761 B
Plaintext
30 lines
761 B
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.2
|
|
release=1
|
|
source=(http://dl.sourceforge.net/sourceforge/tcl/tcl$version-src.tar.gz)
|
|
|
|
build() {
|
|
cd tcl$version/unix
|
|
|
|
./configure --prefix=/usr
|
|
make
|
|
make install MKLINKS_FLAGS="-s" INSTALL_ROOT=$PKG
|
|
|
|
cp ../generic/*.h $PKG/usr/include/
|
|
cp tclUnixPort.h $PKG/usr/include/tclPort.h
|
|
cp tclUnixThrd.h $PKG/usr/include/tclThrd.h
|
|
|
|
sed -i -e "s|$SRC/tcl$version/unix|/usr/lib|" $PKG/usr/lib/tclConfig.sh
|
|
|
|
rm $PKG/usr/include/regex.h
|
|
|
|
ln -sf tclsh${version%.*} $PKG/usr/bin/tclsh
|
|
chmod -R u+w $PKG/usr/man
|
|
}
|
|
|